Code Monkey home page Code Monkey logo

leetcodes's Introduction

LeetCodes and LintCode

Just my solutions and thoughts about LeetCode.Some of the problems I also give some brief explanations. Feel free to give solutions in other language or better algorithms.

62 solved.

* Title Difficulty
1 TwoSum easy
7 ReverseInteger easy
8 StringtoInteger easy
9 PalindromeNumber easy
13 RomantoInteger easy
14 LongestCommonPrefix easy
20 ValidParentheses easy
21 MergeTwoSortedLists easy
24 SwapNodesinPairs easy
26 RemoveDuplicatesfromSortedArray easy
27 RemoveElement easy
36 ValidSudoku easy
58 LengthofLastWord easy
66 PlusOne easy
67 AddBinary easy
70 ClimbingStairs easy
83 RemoveDuplicatesfromSortedList easy
88 MergeSortedArray easy
100 SameTree easy
101 SymmetricTree easy
102 BinaryTreeLevelOrderTraversal easy
104 MaximumDepthofBinaryTree easy
107 BinaryTreeLevelOrderTraversalII easy
110 BalancedBinaryTree easy
111 MinimumDepthofBinaryTree easy
112 PathSum easy
118 PascalsTriangle easy
119 PascalsTriangleII easy
121 BestTimetoBuyandSellStock easy
122 BestTimetoBuyandSellStockII easy
125 ValidPalindrome easy
136 SingleNumber easy
141 LinkedListCycle easy
153 FindMinimuminRotatedSortedArray easy
155 MinStack easy
160 IntersectionofTwoLinkedLists easy
167 TwoSumII easy
169 MajorityElement easy
171 ExcelSheetColumnNumber easy
172 FactorialTrailingZeroes easy
191 Numberof1Bits easy
198 HouseRobber easy
202 HappyNumber easy
203 RemoveLinkedListElements easy
205 IsomorphicStrings easy
206 ReverseLinkedList easy
217 ContainsDuplicate easy
226 InvertBinaryTree easy
231 PowerofTwo easy
232 ImplementQueueusingStacks easy
235 LowestCommonAncestorofaBinarySearchTree easy
237 DeleteNodeinaLinkedList easy
242 ValidAnagram easy
243 ShortestWordDistance easy
246 StrobogrammaticNumber easy
249 GroupShiftedStrings easy
252 MeetingRooms easy
257 BinaryTreePaths easy
258 AddDigits easy
263 UglyNumber easy
266 PalindromePermutation easy
270 ClosestBinarySearchTreeValue easy
276 PaintFence easy
278 FirstBadVersion easy
283 MoveZeroes easy
290 WordPattern easy
292 NimGame easy
293 FlipGame easy
299 BullsandCows easy
326 PowerofThree easy
328 [OddEvenLinkedList](https://github.com/Byelaney/LeetCodes/blob/master/easy/328. OddEvenLinkedList(easy).cpp) easy
339 [NestedListWeightSum](https://github.com/Byelaney/LeetCodes/blob/master/easy/339. NestedListWeightSum(easy).cpp) easy
342 PowerofFour easy
344 ReverseString easy
345 ReverseVowelsofaString easy
346 MovingAveragefromDataStream easy
349 IntersectionofTwoArrays easy
350 IntersectionofTwoArraysII easy
359 LoggerRateLimiter easy
371 SumofTwoIntegers easy
374 GuessNumberHigherorLower easy
383 RansomNote easy
387 FirstUniqueCharacterinaString easy
389 FindtheDifference easy
397 IntegerReplacement easy
401 BinaryWatch easy
404 SumofLeftLeaves easy
405 ConvertaNumbertoHexadecimal easy
409 LongestPalindrome easy
412 FizzBuzz easy
415 AddStrings easy
1 TwoSum medium
2 AddTwoNumbers medium
5 LongestPalindromicSubstring medium
35 SearchInsertPosition medium
53 MaximumSubarray medium
62 UniquePaths medium
77 Combinations medium
94 BinaryTreeInorderTraversal medium
108 ConvertSortedArraytoBinarySearchTree medium
122 BestTimetoBuyandSellStockII medium
136 SingleNumber medium
137 SingleNumberII medium
141 LinkedListCycle medium
144 BinaryTreePreorderTraversal medium
145 BinaryTreePostorderTraversal medium
153 FindMinimuminRotatedSortedArray medium
238 ProductofArrayExceptSelf medium
260 SingleNumberIII medium
268 MissingNumber medium
319 BulbSwitcher medium
328 OddEvenLinkedList medium
338 CountingBits medium
392 IsSubsequence medium
42 TrappingRainWater hard
145 BinaryTreePostorderTraversal hard
146 LRUCache hard
287 FindtheDuplicateNumber hard

For Chinese version, LintCode:

* 题目 难度
1 add2num easy
2 TrailingZeros easy
6 MergeTwoSortedArrays easy
8 RotateString easy
9 FizzBuzz easy
11 SearchRangeinBinarySearchTree medium
12 MinStack medium
75 FindPeakElement medium
82 singleNumber easy
97 MaximumDepthofBinaryTree easy
102 LinkedListCycle medium
134 LRU hard
150 BestTimetoBuyandSellStockII medium
375 CloneBinaryTree easy
2 binarylevel medium
3 binlevel medium
4 bst1 easy
5 bst2 easy
6 bstinterval easy
7 Cfib easy
8 charUpperLow easy
9 commonAncestor easy
10 cycleList medium
11 divby8 easy
12 divdlist easy
13 findMissing easy
14 hasRoute easy
15 heapify medium
16 hello-world easy
17 houserobber medium
18 interleaveMP easy
19 isPalindrome easy
20 jumpgame easy
21 jumpgameII medium
22 KefAndPark easy
23 levenshtein hard
24 levenshtein2 hard
25 longestIncSeq easy
27 median easy
28 mergesortII medium
29 mergesortlist easy
30 npow easy
31 numIsland medium
32 overloadcpp easy
33 paintroof medium
34 partiAry easy
35 proexclude easy
36 quicksort medium
37 recoverRotate easy
38 ringlist medium
39 rotamin easy
40 scalaIndex medium
41 segTreeBuild medium
42 segTreeModify medium
43 setZeroMatrix medium
44 smallestdiff easy
45 sortColor medium
46 stackqueue easy
47 subtree easy
48 sumsubary easy
49 swapListNode easy
50 threeSum medium
51 twolistIsect easy
52 twopower easy
53 twoSum easy
54 uniquepath easy
55 uniquepathII medium
56 wigglesort medium
57 longestCommonSubsequence medium
58 trapRainWater hard
59 combine medium
60 generateParenthesis medium

leetcodes's People

Watchers

PetrGuan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.