随笔分类 -  LeetCode

上一页 1 2 3 4 5 6 ··· 9 下一页
摘要:Excel Sheet Column NumberTotal Accepted:55771Total Submissions:142875Difficulty:EasyRelated to questionExcel Sheet Column TitleGiven a column title as... 阅读全文
posted @ 2015-12-18 17:03 zengzy 阅读(169) 评论(0) 推荐(1)
摘要:Palindrome NumberTotal Accepted:95552Total Submissions:318732Difficulty:EasyDetermine whether an integer is a palindrome. Do this without extra space.... 阅读全文
posted @ 2015-12-18 16:54 zengzy 阅读(133) 评论(0) 推荐(0)
摘要:Kth Largest Element in an ArrayTotal Accepted:32668Total Submissions:109273Difficulty:MediumFind thekth largest element in an unsorted array. Note tha... 阅读全文
posted @ 2015-12-18 16:39 zengzy 阅读(184) 评论(0) 推荐(0)
摘要:Flatten Binary Tree to Linked ListTotal Accepted:68105Total Submissions:228885Difficulty:MediumGiven a binary tree, flatten it to a linked list in-pla... 阅读全文
posted @ 2015-12-18 15:05 zengzy 阅读(180) 评论(0) 推荐(0)
摘要:Serialize and Deserialize Binary TreeTotal Accepted:6782Total Submissions:27834Difficulty:MediumSerialization is the process of converting a data stru... 阅读全文
posted @ 2015-12-18 14:35 zengzy 阅读(259) 评论(0) 推荐(0)
摘要:Binary Tree Maximum Path SumTotal Accepted:55016Total Submissions:246213Difficulty:HardGiven a binary tree, find the maximum path sum.For this problem... 阅读全文
posted @ 2015-12-18 13:30 zengzy 阅读(130) 评论(0) 推荐(0)
摘要:Binary Tree Postorder TraversalTotal Accepted:82814Total Submissions:244246Difficulty:HardGiven a binary tree, return thepostordertraversal of its nod... 阅读全文
posted @ 2015-12-18 10:28 zengzy 阅读(134) 评论(0) 推荐(0)
摘要:Convert Sorted Array to Binary Search TreeTotal Accepted:61516Total Submissions:173462Difficulty:MediumGiven an array where elements are sorted in asc... 阅读全文
posted @ 2015-12-18 10:08 zengzy 阅读(129) 评论(0) 推荐(0)
摘要:Binary Tree Zigzag Level Order TraversalTotal Accepted:49079Total Submissions:179977Difficulty:MediumGiven a binary tree, return thezigzag level order... 阅读全文
posted @ 2015-12-18 09:57 zengzy 阅读(157) 评论(0) 推荐(0)
摘要:Unique Binary Search TreesTotal Accepted:69271Total Submissions:191174Difficulty:MediumGivenn, how many structurally uniqueBST's(binary search trees) ... 阅读全文
posted @ 2015-12-17 22:10 zengzy 阅读(201) 评论(0) 推荐(0)
摘要:Validate Binary Search TreeTotal Accepted:73179Total Submissions:359616Difficulty:MediumGiven a binary tree, determine if it is a valid binary search ... 阅读全文
posted @ 2015-12-17 21:10 zengzy 阅读(165) 评论(0) 推荐(0)
摘要:Populating Next Right Pointers in Each NodeTotal Accepted:72323Total Submissions:199207Difficulty:MediumGiven a binary tree struct TreeLinkNode { ... 阅读全文
posted @ 2015-12-17 18:36 zengzy 阅读(244) 评论(0) 推荐(0)
摘要:Binary Tree Right Side ViewTotal Accepted:28755Total Submissions:92186Difficulty:MediumGiven a binary tree, imagine yourself standing on therightside ... 阅读全文
posted @ 2015-12-17 18:14 zengzy 阅读(147) 评论(0) 推荐(0)
摘要:Sum Root to Leaf NumbersTotal Accepted:63531Total Submissions:202910Difficulty:MediumGiven a binary tree containing digits from0-9only, each root-to-l... 阅读全文
posted @ 2015-12-17 17:11 zengzy 阅读(246) 评论(0) 推荐(0)
摘要:Binary Search Tree IteratorTotal Accepted:34935Total Submissions:109369Difficulty:MediumImplement an iterator over a binary search tree (BST). Your it... 阅读全文
posted @ 2015-12-17 17:03 zengzy 阅读(138) 评论(0) 推荐(0)
摘要:Binary Tree PathsTotal Accepted:26174Total Submissions:104545Difficulty:EasyGiven a binary tree, return all root-to-leaf paths.For example, given the ... 阅读全文
posted @ 2015-12-17 15:32 zengzy 阅读(185) 评论(0) 推荐(0)
摘要:1、Lowest Common Ancestor of a Binary Search Tree Total Accepted: 42225 Total Submissions: 111243 Difficulty: Easy Given a binary search tree (BST), fi 阅读全文
posted @ 2015-12-17 15:11 zengzy 阅读(186) 评论(0) 推荐(0)
摘要:Invert Binary TreeTotal Accepted:55757Total Submissions:132365Difficulty:EasyInvert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4... 阅读全文
posted @ 2015-12-17 11:44 zengzy 阅读(141) 评论(0) 推荐(0)
摘要:Path SumTotal Accepted:81706Total Submissions:269391Difficulty:EasyGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such t... 阅读全文
posted @ 2015-12-17 11:22 zengzy 阅读(222) 评论(0) 推荐(0)
摘要:Same TreeTotal Accepted:98221Total Submissions:232503Difficulty:EasyGiven two binary trees, write a function to check if they are equal or not.Two bin... 阅读全文
posted @ 2015-12-17 11:00 zengzy 阅读(144) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 9 下一页
levels of contents