Skip to content

yinizhizhu/leetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetCode

Trying some OJ.

412 Fizz Buzz 57.8% Easy 344 Reverse String 57.3% Easy 292 Nim Game 54.4% Easy 136 Single Number 52.2% Easy 371 Sum of Two Integers 51.6% Easy 104 Maximum Depth of Binary Tree 50.1% Easy 389 Find the Difference 49.9% Easy 258 Add Digits 49.9% Easy 226 Invert Binary Tree 48.9% Easy 283 Move Zeroes 46.9% Easy 404 Sum of Left Leaves 45.5% Easy 383 Ransom Note 45.4% Easy 237 Delete Node in a Linked List 45.0% Easy 349 Intersection of Two Arrays 45.0% Easy 100 Same Tree 44.8% Easy 171 Excel Sheet Column Number 44.5% Easy 387 First Unique Character in a String 44.4% Easy 242 Valid Anagram 44.2% Easy 409 Longest Palindrome 44.1% Easy 169 Majority Element 44.0% Easy 217 Contains Duplicate 43.0% Easy 401 Binary Watch 42.9% Easy 350 Intersection of Two Arrays II 42.8% Easy 13 Roman to Integer 42.6% Easy 206 Reverse Linked List 42.6% Easy 415 Add Strings 41.6% Easy 405 Convert a Number to Hexadecimal 41.1% Easy 441 Arranging Coins 40.5% Easy 326 Power of Three 38.8% Easy 231 Power of Two 38.8% Easy 202 Happy Number 38.6% Easy 83 Remove Duplicates from Sorted List 38.4% Easy 121 Best Time to Buy and Sell Stock 38.3% Easy 70 Climbing Stairs 38.2% Easy 191 Number of 1 Bits 38.2% Easy 263 Ugly Number 38.1% Easy 235 Lowest Common Ancestor of a Binary Search Tree 37.8% Easy 437 Path Sum III 37.5% Easy 21 Merge Two Sorted Lists 37.4% Easy 107 Binary Tree Level Order Traversal II 36.8% Easy 342 Power of Four 36.8% Easy 198 House Robber 36.8% Easy 24 Swap Nodes in Pairs 36.8% Easy 345 Reverse Vowels of a String 36.7% Easy 101 Symmetric Tree 36.2% Easy 27 Remove Element 36.2% Easy 66 Plus One 36.2% Easy 141 Linked List Cycle 36.1% Easy 118 Pascal's Triangle 35.9% Easy 102 Binary Tree Level Order Traversal 35.9% Easy 110 Balanced Binary Tree 35.8% Easy 26 Remove Duplicates from Sorted Array 35.0% Easy 232 Implement Queue using Stacks 34.8% Easy 172 Factorial Trailing Zeroes 34.4% Easy 119 Pascal's Triangle II 34.4% Easy 9 Palindrome Number 33.6% Easy 438 Find All Anagrams in a String 33.3% Easy 257 Binary Tree Paths 33.3% Easy 36 Valid Sudoku 33.1% Easy 374 Guess Number Higher or Lower 32.7% Easy 299 Bulls and Cows 32.5% Easy 112 Path Sum 32.5% Easy 111 Minimum Depth of Binary Tree 31.9% Easy 205 Isomorphic Strings 31.9% Easy 38 Count and Say 31.7% Easy 19 Remove Nth Node From End of List 31.6% Easy 223 Rectangle Area 31.5% Easy 290 Word Pattern 31.4% Easy 20 Valid Parentheses 31.4% Easy 219 Contains Duplicate II 31.1% Easy 88 Merge Sorted Array 31.1% Easy 225 Implement Stack using Queues 31.0% Easy 234 Palindrome Linked List 30.9% Easy 58 Length of Last Word 30.7% Easy 203 Remove Linked List Elements 30.5% Easy 160 Intersection of Two Linked Lists 30.3% Easy 400 Nth Digit 30.1% Easy 14 Longest Common Prefix 30.1% Easy 67 Add Binary 29.7% Easy 190 Reverse Bits 29.5% Easy 396 Rotate Function 29.3% Easy 1 Two Sum 28.1% Easy 414 Third Maximum Number 26.5% Easy 28 Implement strStr() 26.5% Easy 303 Range Sum Query - Immutable 26.0% Easy 204 Count Primes 25.8% Easy 6 ZigZag Conversion 25.5% Easy 155 Min Stack 25.3% Easy 125 Valid Palindrome 24.9% Easy 278 First Bad Version 23.9% Easy 168 Excel Sheet Column Title 23.8% Easy 7 Reverse Integer 23.7% Easy 189 Rotate Array 23.0% Easy 165 Compare Version Numbers 18.9% Easy 8 String to Integer (atoi) 13.8% Easy 338 Counting Bits 58.9% Medium 406 Queue Reconstruction by Height 53.7% Medium 413 Arithmetic Slices 53.5% Medium 260 Single Number III 48.1% Medium 167 Two Sum II - Input array is sorted 48.0% Medium 238 Product of Array Except Self 46.0% Medium 382 Linked List Random Node 45.6% Medium 347 Top K Frequent Elements 44.8% Medium 122 Best Time to Buy and Sell Stock II 44.8% Medium 357 Count Numbers with Unique Digits 44.4% Medium 384 Shuffle an Array 44.4% Medium 343 Integer Break 44.2% Medium 392 Is Subsequence 43.7% Medium 268 Missing Number 42.8% Medium 94 Binary Tree Inorder Traversal 42.8% Medium 378 Kth Smallest Element in a Sorted Matrix 42.4% Medium 144 Binary Tree Preorder Traversal 42.4% Medium 12 Integer to Roman 42.0% Medium 319 Bulb Switcher 41.6% Medium 318 Maximum Product of Word Lengths 41.6% Medium 328 Odd Even Linked List 41.2% Medium 230 Kth Smallest Element in a BST 41.1% Medium 377 Combination Sum IV 40.9% Medium 22 Generate Parentheses 40.7% Medium 337 House Robber III 40.7% Medium 216 Combination Sum III 40.6% Medium 423 Reconstruct Original Digits from English 40.2% Medium 241 Different Ways to Add Parentheses 40.0% Medium 108 Convert Sorted Array to Binary Search Tree 39.7% Medium 137 Single Number II 39.6% Medium 394 Decode String 39.6% Medium 96 Unique Binary Search Trees 39.3% Medium 46 Permutations 39.2% Medium 309 Best Time to Buy and Sell Stock with Cooldown 39.2% Medium 89 Gray Code 38.7% Medium 35 Search Insert Position 38.6% Medium 62 Unique Paths 38.5% Medium 53 Maximum Subarray 38.2% Medium 153 Find Minimum in Rotated Sorted Array 38.1% Medium 173 Binary Search Tree Iterator 37.9% Medium 199 Binary Tree Right Side View 37.8% Medium 399 Evaluate Division 37.7% Medium 424 Longest Repeating Character Replacement 37.6% Medium 59 Spiral Matrix II 37.4% Medium 386 Lexicographical Numbers 37.3% Medium 240 Search a 2D Matrix II 37.1% Medium 77 Combinations 37.1% Medium 334 Increasing Triplet Subsequence 37.1% Medium 436 Find Right Interval 36.9% Medium 367 Valid Perfect Square 36.8% Medium 416 Partition Equal Subset Sum 36.8% Medium 116 Populating Next Right Pointers in Each Node 36.7% Medium 64 Minimum Path Sum 36.7% Medium 341 Flatten Nested List Iterator 36.7% Medium 300 Longest Increasing Subsequence 36.7% Medium 398 Random Pick Index 36.6% Medium 48 Rotate Image 36.5% Medium 215 Kth Largest Element in an Array 36.4% Medium 313 Super Ugly Number 36.4% Medium 75 Sort Colors 36.2% Medium 289 Game of Life 36.0% Medium 11 Container With Most Water 35.8% Medium 74 Search a 2D Matrix 35.3% Medium 78 Subsets 35.3% Medium 162 Find Peak Element 35.1% Medium 393 UTF-8 Validation 34.8% Medium 284 Peeking Iterator 34.8% Medium 73 Set Matrix Zeroes 34.8% Medium 129 Sum Root to Leaf Numbers 34.6% Medium 39 Combination Sum 34.6% Medium 390 Elimination Game 34.6% Medium 421 Maximum XOR of Two Numbers in an Array 34.6% Medium 279 Perfect Squares 34.4% Medium 80 Remove Duplicates from Sorted Array II 34.4% Medium 331 Verify Preorder Serialization of a Binary Tree 34.3% Medium 395 Longest Substring with At Least K Repeating Characters 34.3% Medium 376 Wiggle Subsequence 34.2% Medium 375 Guess Number Higher or Lower II 33.6% Medium 275 H-Index II 33.3% Medium 90 Subsets II 33.0% Medium 114 Flatten Binary Tree to Linked List 33.0% Medium 201 Bitwise AND of Numbers Range 32.7% Medium 81 Search in Rotated Sorted Array II 32.7% Medium 213 House Robber II 32.6% Medium 109 Convert Sorted List to Binary Search Tree 32.2% Medium 120 Triangle 31.9% Medium 17 Letter Combinations of a Phone Number 31.5% Medium 274 H-Index 31.5% Medium 142 Linked List Cycle II 31.2% Medium 264 Ugly Number II 30.9% Medium 63 Unique Paths II 30.6% Medium 40 Combination Sum II 30.4% Medium 16 3Sum Closest 30.3% Medium 92 Reverse Linked List II 29.4% Medium 236 Lowest Common Ancestor of a Binary Tree 29.2% Medium 435 Non-overlapping Intervals 29.1% Medium 397 Integer Replacement 28.4% Medium 227 Basic Calculator II 27.5% Medium 228 Summary Ranges 27.1% Medium 208 Implement Trie (Prefix Tree) 25.6% Medium 2 Add Two Numbers 25.6% Medium 150 Evaluate Reverse Polish Notation 25.3% Medium 18 4Sum 25.2% Medium 54 Spiral Matrix 24.1% Medium 152 Maximum Product Subarray 23.9% Medium 3 Longest Substring Without Repeating Characters 23.4% Medium 15 3Sum 20.4% Medium 211 Add and Search Word - Data structure design 20.1% Medium 130 Surrounded Regions 17.1% Medium 29 Divide Two Integers 15.9% Medium 151 Reverse Words in a String 15.7% Medium 52 N-Queens II 42.0% Hard 287 Find the Duplicate Number 41.1% Hard 42 Trapping Rain Water 34.5% Hard 117 Populating Next Right Pointers in Each Node II 33.2% Hard 33 Search in Rotated Sorted Array 31.5% Hard 51 N-Queens 28.3% Hard 123 Best Time to Buy and Sell Stock III 27.8% Hard 224 Basic Calculator 24.7% Hard 124 Binary Tree Maximum Path Sum 24.6% Hard 188 Best Time to Buy and Sell Stock IV 23.5% Hard 336 Palindrome Pairs 23.5% Hard 32 Longest Valid Parentheses 22.9% Hard 391 Perfect Rectangle 21.0% Hard 4 Median of Two Sorted Arrays 20.3% Hard 146 LRU Cache 15.9% Hard 149 Max Points on a Line 15.2% Hard 65 Valid Number 12.5% Hard

About

Trying some OJ.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages