- 博客(36)
- 资源 (7)
- 收藏
- 关注
原创 <LeetCode OJ> 217./219. Contains Duplicate (I / II)
217. Contains DuplicateMy SubmissionsQuestionTotal Accepted: 58633 Total Submissions: 149186 Difficulty: EasyGiven an array of integers, find if the array contains any duplicat
2015-12-31 22:18:56 1534
原创 <LeetCode OJ> 232. Implement Queue using Stacks
232. Implement Queue using StacksMy SubmissionsQuestionTotal Accepted: 28236 Total Submissions: 83455 Difficulty: EasyImplement the following operations of a queue using stacks
2015-12-31 21:30:07 1105
原创 <LeetCode OJ> 172. Factorial Trailing Zeroes
172. Factorial Trailing ZeroesMy SubmissionsQuestionTotal Accepted: 45801 Total Submissions: 147715 Difficulty: EasyGiven an integer n, return the number of trailing zeroes in
2015-12-31 17:51:01 926
原创 <LeetCode OJ> 203. Remove Linked List Elements
203. Remove Linked List ElementsMy SubmissionsQuestionTotal Accepted: 45239 Total Submissions: 166811 Difficulty: EasyRemove all elements from a linked list of integers that ha
2015-12-31 11:18:57 1012
原创 <LeetCode OJ> 155. Min Stack
155. Min StackMy SubmissionsQuestionTotal Accepted: 55516 Total Submissions: 263927 Difficulty: EasyDesign a stack that supports push, pop, top, and retrieving the minimum elem
2015-12-30 19:17:47 1639
原创 <LeetCode OJ> 237. Delete Node in a Linked List
237. Delete Node in a Linked ListMy SubmissionsQuestionTotal Accepted: 51534 Total Submissions: 117498 Difficulty: EasyWrite a function to delete a node (except the tail) in a
2015-12-30 17:38:07 1332
原创 <LeetCode OJ> 292. Nim Game
292. Nim GameMy SubmissionsQuestionTotal Accepted: 30675 Total Submissions: 61031 Difficulty: EasyYou are playing the following Nim Game with your friend: There is a heap of st
2015-12-30 15:56:10 3392 6
原创 <LeetCode OJ> 88. Merge Sorted Array
88. Merge Sorted ArrayMy SubmissionsQuestionTotal Accepted: 80830 Total Submissions: 274120 Difficulty: EasyGiven two sorted integer arrays nums1 and nums2, merge nums2 into nu
2015-12-30 09:58:32 1627
原创 <LeetCode OJ> 153. Find Minimum in Rotated Sorted Array
153. Find Minimum in Rotated Sorted ArrayMy SubmissionsQuestionTotal Accepted: 73048 Total Submissions: 209952 Difficulty: MediumSuppose a sorted array is rotated at some pivot
2015-12-29 11:19:15 1315
原创 <LeetCode OJ> 300. Longest Increasing Subsequence
300. Longest Increasing SubsequenceMy SubmissionsQuestionTotal Accepted: 11127 Total Submissions: 34521 Difficulty: MediumGiven an unsorted array of integers, find the length o
2015-12-29 09:59:09 1281
原创 <LeetCode OJ> 53. Maximum Subarray
53. Maximum SubarrayMy SubmissionsQuestionTotal Accepted: 89899 Total Submissions: 253014 Difficulty: MediumFind the contiguous subarray within an array (containing at least on
2015-12-28 23:08:13 3628
原创 <LeetCode OJ> 226. Invert Binary Tree
226. Invert Binary TreeMy SubmissionsQuestionTotal Accepted: 57653 Total Submissions: 136144 Difficulty: EasyInvert a binary tree. 4 / \ 2 7 / \ / \1 3 6
2015-12-28 20:01:28 1913
原创 <LeetCode OJ> 100. Same Tree
100. Same TreeMy SubmissionsQuestionTotal Accepted: 100129 Total Submissions: 236623 Difficulty: EasyGiven two binary trees, write a function to check if they are equal or not.
2015-12-28 16:32:54 2712
原创 <LeetCode OJ> 202. Happy Number
202. Happy NumberMy SubmissionsQuestionTotal Accepted: 46878 Total Submissions: 134944 Difficulty: EasyWrite an algorithm to determine if a number is "happy".A happy number i
2015-12-28 10:59:39 1883
原创 <LeetCode OJ> 258. Add Digits
258. Add DigitsMy SubmissionsQuestionTotal Accepted: 54029 Total Submissions: 113401 Difficulty: EasyGiven a non-negative integer num, repeatedly add all its digits until the
2015-12-28 10:22:12 1182
原创 <LeetCode OJ> 26 / 264 / 313 Ugly Number (I / II / III)
263. Ugly NumberMy SubmissionsQuestionTotal Accepted: 33755 Total Submissions: 96873 Difficulty: EasyWrite a program to check whether a given number is an ugly number.Ugly nu
2015-12-26 16:06:18 1363
原创 <LeetCode OJ> 283. Move Zeroes
283. Move ZeroesMy SubmissionsQuestionTotal Accepted: 40008 Total Submissions: 94323 Difficulty: EasyGiven an array nums, write a function to move all 0's to the end of it wh
2015-12-23 09:45:18 1214
原创 <LeetCode OJ> 20. Valid Parentheses
20. Valid ParenthesesMy SubmissionsQuestionTotal Accepted: 83451 Total Submissions: 299995 Difficulty: EasyGiven a string containing just the characters '(', ')', '{', '}', '['
2015-12-22 16:30:11 1191
原创 <LeetCode OJ> 50. Pow(x, n)
50. Pow(x, n)My SubmissionsQuestionTotal Accepted: 74611 Total Submissions: 271855 Difficulty: MediumImplement pow(x, n).Subscribe to see which companies asked this quest
2015-12-21 14:09:59 1109
原创 <LeetCode OJ> 19. Remove Nth Node From End of List
19. Remove Nth Node From End of ListMy SubmissionsQuestionTotal Accepted: 85357 Total Submissions: 305369 Difficulty: EasyGiven a linked list, remove the nth node from the end
2015-12-21 10:10:23 1144 1
原创 <LeetCode OJ> 9. Palindrome Number
9. Palindrome Number My Submissions QuestionTotal Accepted: 95847 Total Submissions: 319494 Difficulty: EasyDetermine whether an integer is a palindrome. Do this without extra space.click to
2015-12-20 21:17:39 1241
原创 <LeetCode OJ> 191. Number of 1 Bits
191. Number of 1 BitsMy SubmissionsQuestionTotal Accepted: 65438 Total Submissions: 172909 Difficulty: EasyWrite a function that takes an unsigned integer and returns the numbe
2015-12-20 16:57:04 1299
原创 <LeetCode OJ> 231 / 342 Power of (Two / Four)
231. Power of TwoMy SubmissionsQuestionTotal Accepted: 43958 Total Submissions: 131591 Difficulty: EasyGiven an integer, write a function to determine if it is a power of two.
2015-12-20 16:39:19 1227
原创 <LeetCode OJ> 66. Plus One
66. Plus OneMy SubmissionsQuestionTotal Accepted: 77253 Total Submissions: 242942 Difficulty: EasyGiven a non-negative number represented as an array of digits, plus one to the
2015-12-20 15:19:17 1119
原创 <LeetCode OJ> 21. Merge Two Sorted Lists
21. Merge Two Sorted ListsMy SubmissionsQuestionTotal Accepted: 96394 Total Submissions: 285151 Difficulty: EasyMerge two sorted linked lists and return it as a new list. The n
2015-12-19 14:21:51 1017
原创 <LeetCode OJ> 13 / 12 Roman to Integer & Integer to Roman
Roman to IntegerMy SubmissionsQuestionTotal Accepted: 64343 Total Submissions: 175540 Difficulty: EasyGiven a roman numeral, convert it to an integer.Input is guaranteed to b
2015-12-18 23:01:00 996
原创 <LeetCode OJ> 7. Reverse Integer
Reverse IntegerMy SubmissionsQuestionTotal Accepted: 112034 Total Submissions: 477710 Difficulty: EasyReverse digits of an integer.Example1: x = 123, return 321Example2: x
2015-12-18 22:22:37 1081
原创 <LeetCode OJ> 303. Range Sum Query - Immutable
Range Sum Query - ImmutableMy SubmissionsQuestionTotal Accepted: 10457 Total Submissions: 43960 Difficulty: EasyGiven an integer array nums, find the sum of the elements betwee
2015-12-18 20:30:40 1209
原创 <LeetCode OJ> (198 / 213) House Robber(I / II)
House RobberMy SubmissionsQuestionTotal Accepted: 45702 Total Submissions: 142460 Difficulty: EasyYou are a professional robber planning to rob houses along a street. Each hous
2015-12-18 19:42:30 1315
原创 <LeetCode OJ> 8. String to Integer (atoi)
String to Integer (atoi)My SubmissionsQuestionTotal Accepted: 78606 Total Submissions: 601284 Difficulty: EasyImplement atoi to convert a string to an integer.Hint: Carefully
2015-12-18 11:12:04 1052
原创 <LeetCode OJ> 148. Sort List
Sort ListMy SubmissionsQuestionTotal Accepted: 59768 Total Submissions: 254524 Difficulty: MediumSort a linked list in O(n log n) time using constant space complexity.Sub
2015-12-18 09:47:12 879
原创 <LeetCode OJ> 67. Add Binary
Add BinaryMy SubmissionsQuestionTotal Accepted: 66367 Total Submissions: 258095 Difficulty: EasyGiven two binary strings, return their sum (also a binary string).For example,
2015-12-17 23:10:39 837
原创 <LeetCode OJ> (104 / 111) Maximum & Minimum Depth of Binary Tree
Maximum Depth of Binary TreeMy SubmissionsQuestionTotal Accepted: 107329 Total Submissions: 231104 Difficulty: EasyGiven a binary tree, find its maximum depth.The max
2015-12-17 08:47:33 998
原创 <LeetCode OJ> 70. Climbing Stairs
Climbing StairsTotal Accepted: 84073 Total Submissions: 236731 Difficulty: EasyYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb
2015-12-16 20:46:26 1507
原创 <LeetCode OJ> (1 / 15 / 16 / 18) NSum问题集合
Two SumMy SubmissionsQuestionTotal Accepted: 164289 Total Submissions: 833770 Difficulty: MediumGiven an array of integers, find two numbers such that they add up to a specific
2015-12-15 20:45:56 2003
原创 <九度 OJ>题目1019:简单计算器
题目描述: 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。输入: 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。
2015-12-10 15:04:57 866
使用NSIS制作的多功能工具,有利于定位问题,辅助解决问题
2022-03-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人