摘要:
Power of TwoTotal Accepted:43421Total Submissions:130315Difficulty:EasyGiven an integer, write a function to determine if it is a power of two.class S... 阅读全文
摘要:
Reverse BitsTotal Accepted:45982Total Submissions:157761Difficulty:EasyReverse bits of a given 32 bits unsigned integer.For example, given input 43261... 阅读全文
摘要:
Number of 1 BitsTotal Accepted:64907Total Submissions:171590Difficulty:EasyWrite a function that takes an unsigned integer and returns the number of ’... 阅读全文
摘要:
Single NumberTotal Accepted:103745Total Submissions:218647Difficulty:MediumGiven an array of integers, every element appearstwiceexcept for one. Find ... 阅读全文
摘要:
Total Accepted:32259Total Submissions:142733Difficulty:MediumAll DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example... 阅读全文
摘要:
Total Accepted:23332Total Submissions:166240Difficulty:MediumGiven two integers representing the numerator and denominator of a fraction, return the f... 阅读全文
摘要:
Total Accepted:38651Total Submissions:141668Difficulty:EasyGiven two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the ... 阅读全文
摘要:
Total Accepted:57185Total Submissions:199536Difficulty:EasyDetermine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board co... 阅读全文
摘要:
Total Accepted:43534Total Submissions:196140Difficulty:EasyDescription:Count the number of prime numbers less than a non-negative number,n.class Solut... 阅读全文
摘要:
Total Accepted:11158Total Submissions:42823Difficulty:EasyYou are playing the followingBulls and Cowsgame with your friend: You write down a number an... 阅读全文