Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cwjokaka/leetcode_for_fun

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

leetcode_for_fun

Some awesome solutions to the problems of leetcode🏃‍

An ordinary person solves problems in an ordinary way!😂

BinarySearch:

No Title Level Remarks Solution(s) Url
33 SearchInRotatedSortedArray M Java url

Recursion:

No Title Level Remarks Solution(s) Url
22 GenerateParentheses M Java url

Backtrack:

No Title Level Remarks Solution(s) Url
46 Permutations M A copy of the official answer😂 Java url
78 Subsets M NormalRecursion ✔
Backtrack ✔
Java url

DivideAndConquer :

No Title Level Remarks Solution(s) Url
148 SortList M Merge-And-Sort Java url

DynamicProgramming:

No Title Level Remarks Solution(s) Url
53 MaximumSubarray E Java url
62 UniquePaths M Backtrack 👎 Run timeout
DP 👌 To be optimized
Java url
70 ClimbingStairs E Java url

DoublePointer:

No Title Level Remarks Solution(s) Url
31 NextPermutation M Java url
11 ContainerWithMostWater M Java url
15 ThreeSum M Should I call it TriplePointer?🧐 Java url
16 ThreeSumClosest M Java url
26 RemoveDuplicatesFromSortedArray E Java url
88 MergeSortedArray E A copy of the official answer😂 Java url
141 LinkedListCycle E Java url

Hash:

No Title Level Remarks Solution(s) Url
1 TwoSum E Java url
142 LinkedListCycle_2 M Set ✔
Floyd ❌
Java url
169 MajorityElement E Hash Java url

LinkedHashMap:

No Title Level Remarks Solution(s) Url
146 LRUCache M Implement of Redis LRU Java url

LinkedList:

No Title Level Remarks Solution(s) Url
2 AddTwoNumbers M Java url
21 MergeTwoSortedLists E I use loops instead of recursion Java url
23 MergeKSortedLists H Solutions:
divide and conquer ✔
PriorityQueue ❌Not yet completed
Java url
61 RotateList M Solutions:
Stack ✔
Annular LinkList ✔
Java url
160 IntersectionOfTwoLinkedLists E Java url
206 ReverseLinkedList E Stack ✔
Loop ✔
Recursion 🤔 it's hard to figure out
Java url

SlidingWindow:

No Title Level Remarks Solution(s) Url
3 LongestSubstringWithoutRepeatingCharacters M To be optimized Java url

String:

No Title Level Remarks Solution(s) Url
5 LongestPalindromicSubstring M It's better to use "Manacher" method Java url
8 StringToIntegerAtoi M Only use the method that made from multiple "if"😂.Maybe using regular expression is the best solution! Java url
14 LongestCommonPrefix(LCP) E Java url
43 MultiplyStrings M Not yet completed ❌ Java url

Queue:

No Title Level Remarks Solution(s) Url
7 ReverseInteger E Java url
9 PalindromeNumber E Java url

Stack:

No Title Level Remarks Solution(s) Url
20 ValidParentheses E Java url
155 MinStack E impl a MinStack Java url

Array:

No Title Level Remarks Solution(s) Url
54 SpiralMatrix M That's fun! It reminds me of the time when I was making games Java url
59 SpiralMatrix_2 M Similar to the 👆 line Java url

BinaryTree:

No Title Level Remarks Solution(s) Url
100 SameTree E Recursive traversal Java url
101 SymmetricTree E Recursion✔
Queue✔
Java url
104 MaximumDepthOfBinaryTree E DFS✔
BFS ✔
Java url
124 BinaryTreeMaximumPathSum H DFS Java url

Other:

No Title Level Remarks Solution(s) Url
121 BestTimeToBuyAndSellStock E It's solved by using only one loop Java url
122 BestTimeToBuyAndSellStock_2 E Java url

XOR:

No Title Level Remarks Solution(s) Url
136 SingleNumber E Java url

Graph:

No Title Level Remarks Solution(s) Url
200 NumberOfIslands M BFS✔
DFS✔
Java url

About

Some awesome solutions to the problems of leetcode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.