随笔分类 -  LeetCode

上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要:Symmetric TreeTotal Accepted:84678Total Submissions:259420Difficulty:EasyGiven a binary tree, check whether it is a mirror of itself (ie, symmetric ar... 阅读全文
posted @ 2015-12-17 10:45 zengzy 阅读(138) 评论(0) 推荐(0)
摘要:Binary Tree Level Order TraversalTotal Accepted:79463Total Submissions:259292Difficulty:EasyGiven a binary tree, return thelevel ordertraversal of its... 阅读全文
posted @ 2015-12-17 10:00 zengzy 阅读(414) 评论(0) 推荐(0)
摘要:Minimum Depth of Binary TreeTotal Accepted:84038Total Submissions:283068Difficulty:EasyGiven a binary tree, find its minimum depth.The minimum depth i... 阅读全文
posted @ 2015-12-17 09:40 zengzy 阅读(155) 评论(0) 推荐(0)
摘要:Maximum Depth of Binary TreeTotal Accepted:107337Total Submissions:231121Difficulty:EasyGiven a binary tree, find its maximum depth.The maximum depth ... 阅读全文
posted @ 2015-12-17 09:30 zengzy 阅读(127) 评论(0) 推荐(0)
摘要:Balanced Binary TreeTotal Accepted:86508Total Submissions:263690Difficulty:EasyGiven a binary tree, determine if it is height-balanced.For this proble... 阅读全文
posted @ 2015-12-17 09:25 zengzy 阅读(167) 评论(0) 推荐(0)
摘要:Bitwise AND of Numbers RangeTotal Accepted:24968Total Submissions:89204Difficulty:MediumGiven a range [m, n] where 0 >= 1 ; n >>= 1 ; ... 阅读全文
posted @ 2015-12-16 23:34 zengzy 阅读(134) 评论(0) 推荐(0)
摘要:Maximum Product of Word LengthsTotal Accepted:750Total Submissions:2060Difficulty:MediumGiven a string arraywords, find the maximum value oflength(wor... 阅读全文
posted @ 2015-12-16 21:38 zengzy 阅读(310) 评论(0) 推荐(0)
摘要:Power of TwoTotal Accepted:43421Total Submissions:130315Difficulty:EasyGiven an integer, write a function to determine if it is a power of two.class S... 阅读全文
posted @ 2015-12-16 21:01 zengzy 阅读(125) 评论(0) 推荐(0)
摘要:Reverse BitsTotal Accepted:45982Total Submissions:157761Difficulty:EasyReverse bits of a given 32 bits unsigned integer.For example, given input 43261... 阅读全文
posted @ 2015-12-16 20:53 zengzy 阅读(133) 评论(0) 推荐(0)
摘要:Number of 1 BitsTotal Accepted:64907Total Submissions:171590Difficulty:EasyWrite a function that takes an unsigned integer and returns the number of ’... 阅读全文
posted @ 2015-12-16 20:42 zengzy 阅读(119) 评论(0) 推荐(0)
摘要:Single NumberTotal Accepted:103745Total Submissions:218647Difficulty:MediumGiven an array of integers, every element appearstwiceexcept for one. Find ... 阅读全文
posted @ 2015-12-16 19:40 zengzy 阅读(241) 评论(0) 推荐(0)
摘要:Total Accepted:32259Total Submissions:142733Difficulty:MediumAll DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example... 阅读全文
posted @ 2015-12-16 19:36 zengzy 阅读(152) 评论(0) 推荐(0)
摘要:Total Accepted:23332Total Submissions:166240Difficulty:MediumGiven two integers representing the numerator and denominator of a fraction, return the f... 阅读全文
posted @ 2015-12-16 19:14 zengzy 阅读(214) 评论(0) 推荐(0)
摘要:Total Accepted:38651Total Submissions:141668Difficulty:EasyGiven two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the ... 阅读全文
posted @ 2015-12-16 17:20 zengzy 阅读(189) 评论(0) 推荐(0)
摘要:Total Accepted:57185Total Submissions:199536Difficulty:EasyDetermine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board co... 阅读全文
posted @ 2015-12-16 16:57 zengzy 阅读(148) 评论(0) 推荐(0)
摘要:Total Accepted:11158Total Submissions:42823Difficulty:EasyYou are playing the followingBulls and Cowsgame with your friend: You write down a number an... 阅读全文
posted @ 2015-12-16 13:27 zengzy 阅读(286) 评论(0) 推荐(0)
摘要:Total Accepted:18003Total Submissions:66490Difficulty:EasyGiven apatternand a stringstr, find ifstrfollows the same pattern.Herefollowmeans a full mat... 阅读全文
posted @ 2015-12-16 12:58 zengzy 阅读(273) 评论(0) 推荐(0)
摘要:Total Accepted:49916Total Submissions:365731Difficulty:HardGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight... 阅读全文
posted @ 2015-12-16 11:38 zengzy 阅读(149) 评论(0) 推荐(0)
摘要:Total Accepted:26010Total Submissions:102064Difficulty:HardGiven an unsorted array, find the maximum difference between the successive elements in its... 阅读全文
posted @ 2015-12-15 21:01 zengzy 阅读(207) 评论(0) 推荐(1)
摘要:Total Accepted:28176Total Submissions:82688Difficulty:MediumGiven a binary search tree, write a functionkthSmallestto find thekth smallest element in ... 阅读全文
posted @ 2015-12-15 15:57 zengzy 阅读(122) 评论(0) 推荐(1)

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