摘要: 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 阅读(130) 评论(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 阅读(301) 评论(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 阅读(120) 评论(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 阅读(128) 评论(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 阅读(116) 评论(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 阅读(233) 评论(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 阅读(146) 评论(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 阅读(201) 评论(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 阅读(185) 评论(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 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Total Accepted:43534Total Submissions:196140Difficulty:EasyDescription:Count the number of prime numbers less than a non-negative number,n.class Solut... 阅读全文
posted @ 2015-12-16 15:32 zengzy 阅读(127) 评论(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 阅读(277) 评论(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 阅读(267) 评论(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 阅读(145) 评论(0) 推荐(0) 编辑
levels of contents