Skip to content

JYZ2018/leetcodeJY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

Leetcode

# Title Solution Runtime
1 Two Sum Java 3 ms
2 Add Two Numbers Java 3 ms
3 Longest Substring Without Repeating Characters Java 8 ms
5 Longest Palindromic Substring Java 23 ms
12 Integer to Roman Java 7 ms
15 3Sum Java 20 ms
20 Valid Parentheses Python3 36 ms
21 Merge Two Sorted Lists Java 0 ms
26 Remove Duplicates from Sorted Array Java 1 ms
28 Implement strStr() Python3 56 ms
33 Search in Rotated Sorted Array Python3 66 ms
34 Find First and Last Position of Element in Sorted Array Python3 131 ms
35 Search Insert Position Python3 52 ms
42 Trapping Rain Water Python3 135 ms
49 Group Anagrams Java 24 ms
53 Maximum Subarray Java 1 ms
56 Merge Intervals Python3 163 ms
70 Climbing Stairs Java 0 ms
75 Sort Colors Java 0 ms
76 Minimum Window Substring Python3 84 ms
81 Search in Rotated Sorted Array II Python3 67 ms
86 Partition List Python3 49 ms
88 Merge Sorted Array Python3 61 ms
94 Binary Tree Inorder Traversal Python3 28 ms
100 Same Tree Java 0 ms
102 Binary Tree Level Order Traversal Java 36 ms
103 Binary Tree Zigzag Level Order Traversal Java 1 ms
104 Maximum Depth of Binary Tree Java 2 ms
105 Construct Binary Tree from Preorder and Inorder Traversal Java 19 ms
108 Convert Sorted Array to Binary Search Tree Java 0 ms
121 Best Time to Buy and Sell Stock Java 2 ms
122 Best Time to Buy and Sell Stock II Python3 69 ms
125 Valid Palindrome Python3 59 ms
130 Surrounded Regions Python3 180 ms
141 Linked List Cycle Java 0 ms
142 Linked List Cycle II Python3 80 ms
143 Reorder List Python3 169 ms
145 Binary Tree Postorder Traversal Java 0 ms
147 Insertion Sort List Java 23 ms
152 Maximum Product Subarray Python3 94 ms
154 Find Minimum in Rotated Sorted Array II Python3 78 ms
155 Min Stack Java 7 ms
160 Intersection of Two Linked Lists Python3 247 ms
167 Two Sum II - Input Array Is Sorted Python3 192 ms
189 Rotate Array Python3 222 ms
200 Number of Islands Python3 746 ms
202 Happy Number Java 3 ms
203 Remove Linked List Elements Python3 76 ms
206 Reverse Linked List Java 0 ms
208 Implement Trie (Prefix Tree) Java 66 ms
209 Minimum Size Subarray Sum Python3 93 ms
215 Kth Largest Element in an Array Python3 128 ms
217 Contains Duplicate Java 9 ms
219 Contains Duplicate II Python3 1092 ms
225 Implement Stack using Queues Java 0 ms
232 Implement Queue using Stacks Java 0 ms
234 Palindrome Linked List Python3 1117 ms
236 Lowest Common Ancestor of a Binary Tree Python3 N/A
237 Delete Node in a Linked List Python3 58 ms
238 Product of Array Except Self Python3 276 ms
268 Missing Number Python3 144 ms
278 First Bad Version Java 15 ms
283 Move Zeroes Python3 156 ms
287 Find the Duplicate Number Python3 775 ms
328 Odd Even Linked List Python3 68 ms
344 Reverse String Java 0 ms
345 Reverse Vowels of a String Python3 102 ms
349 Intersection of Two Arrays Java 5 ms
350 Intersection of Two Arrays II Python3 44 ms
383 Ransom Note Python3 63 ms
387 First Unique Character in a String Java 51 ms
392 Is Subsequence Java 2 ms
438 Find All Anagrams in a String Python3 278 ms
496 Next Greater Element I Java 4 ms
509 Fibonacci Number Java 0 ms
560 Subarray Sum Equals K Java 17 ms
566 Reshape the Matrix Python3 100 ms
572 Subtree of Another Tree Java 4 ms
680 Valid Palindrome II Python3 339 ms
695 Max Area of Island Python3 225 ms
704 Binary Search Java 0 ms
713 Subarray Product Less Than K Python3 927 ms
733 Flood Fill Python3 140 ms
852 Peak Index in a Mountain Array Python3 72 ms
863 All Nodes Distance K in Binary Tree Java 12 ms
875 Koko Eating Bananas Python3 672 ms
876 Middle of the Linked List Python3 0 ms
912 Sort an Array Python3 833 ms
969 Pancake Sorting Python3 46 ms
977 Squares of a Sorted Array Java 1 ms
986 Interval List Intersections Python3 199 ms
994 Rotting Oranges Python3 90 ms
997 Find the Town Judge Python3 1247 ms
999 Available Captures for Rook Python3 53 ms
1009 Complement of Base 10 Integer Python3 43 ms
1026 Maximum Difference Between Node and Ancestor Python3 70 ms
1305 All Elements in Two Binary Search Trees Python3 703 ms
1971 Find if Path Exists in Graph Java 269 ms

About

my leetcode notes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published