上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". Given an input string, rever 阅读全文
posted @ 2016-06-02 22:07 YuriFLAG 阅读(117) 评论(0) 推荐(0)
摘要: Given an integer array, find the top k largest numbers in it. Example Given [3,10,1000,-99,4,100] and k = 3.Return [1000, 100, 10]. Given [3,10,1000,- 阅读全文
posted @ 2016-05-29 19:40 YuriFLAG 阅读(378) 评论(0) 推荐(0)
摘要: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. 要求在O(n) 的时间复杂完成。 阅读全文
posted @ 2016-05-28 19:42 YuriFLAG 阅读(129) 评论(0) 推荐(0)
摘要: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 注意:进位。 Similar Problem : LeetCode 2. Add T 阅读全文
posted @ 2016-05-15 15:19 YuriFLAG 阅读(144) 评论(0) 推荐(0)
摘要: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled wit 阅读全文
posted @ 2016-05-13 09:36 YuriFLAG 阅读(123) 评论(0) 推荐(0)
摘要: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below 阅读全文
posted @ 2016-05-13 08:41 YuriFLAG 阅读(116) 评论(0) 推荐(0)
摘要: Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? 阅读全文
posted @ 2016-05-12 16:55 YuriFLAG 阅读(155) 评论(0) 推荐(0)
摘要: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
posted @ 2016-05-11 08:08 YuriFLAG 阅读(117) 评论(0) 推荐(0)
摘要: mplement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front 阅读全文
posted @ 2016-05-09 20:16 YuriFLAG 阅读(148) 评论(0) 推荐(0)
摘要: Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example:Given num = 16, return true. Given num = 5, return fa 阅读全文
posted @ 2016-05-09 19:54 YuriFLAG 阅读(135) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页