2018年11月30日

549. Binary Tree Longest Consecutive Sequence II

摘要: Given a binary tree, you need to find the length of Longest Consecutive Path in Binary Tree. Especially, this path can be either increasing or decreasing. For example, [1,2,3,4] and [4,3,2,1] are bot... 阅读全文

posted @ 2018-11-30 13:45 猪猪🐷 阅读(203) 评论(0) 推荐(0)

718. Maximum Length of Repeated Subarray

摘要: Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Since a common subarray of A and B 阅读全文

posted @ 2018-11-30 08:15 猪猪🐷 阅读(122) 评论(0) 推荐(0)

662. Maximum Width of Binary Tree

摘要: Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binar 阅读全文

posted @ 2018-11-30 07:32 猪猪🐷 阅读(117) 评论(0) 推荐(0)

导航