Leetcode leetcode solutions with Javascript and Go Coding style standardjs pep8 gofmt Solutions # Problems Solutions Difficulty 001 two-sum javascript python Easy 002 add-two-numbers javascript python Medium 003 longest-substring-without-repeating-characters javascript Medium 004 median-of-two-sorted-arrays javascript Hard 005 longest-palindromic-substring javascript Medium 007 reverse-integer javascript Easy 009 palindrome-number javascript python Easy 011 container-with-most-water python Medium 013 roman-to-integer javascript Easy 014 longest-common-prefix javascript Easy 015 3sum python Medium 017 letter-combinations-of-a-phone-number javascript python Medium 019 remove-nth-node-from-end-of-list javascript Medium 020 valid-parentheses javascript python Easy 021 merge-two-sorted-lists javascript python Easy 022 generate-parentheses javascript python Medium 023 merge-k-sorted-lists python Hard 024 swap-nodes-in-pairs javascript Medium 026 remove-duplicates-from-sorted-array javascript Easy 027 remove-element javascript python Easy 028 implement-strstr javascript Easy 035 search-insert-position javascript python Easy 036 valid-sudoku javascript python Medium 039 combination-sum javascript python Medium 040 combination-sum-ii javascript Medium 045 jump-game-ii javascript Hard 046 permutations javascript python Medium 047 permutations-ii javascript python Medium 048 rotate-image javascript python Medium 049 group-anagrams javascript python Medium 053 maximum-subarray javascript python Easy 055 jump-game javascript Medium 056 merge-intervals javascript python Medium 058 length-of-last-word javascript Easy 062 unique-paths javascript python Medium 066 plus-one javascript python Easy 070 climbing-stairs javascript python Easy 075 sort-colors javascript python Medium 077 combinations javascript python Medium 078 subsets javascript python Medium 083 remove-duplicates-from-sorted-list javascript Easy 086 partition-list python Medium 088 merge-sorted-array python Easy 090 subsets-ii javascript python Medium 092 reverse-linked-list-ii python Medium 093 restore-ip-addresses python Medium 094 binary-tree-inorder-traversal python Medium 098 validate-binary-search-tree python Medium 100 same-tree javascript python Easy 101 symmetric-tree javascript python Easy 102 binary-tree-level-order-traversal javascript Medium 103 binary-tree-zigzag-level-order-traversal javascript Medium 104 maximum-depth-of-binary-tree javascript python Easy 107 binary-tree-level-order-traversal-ii javascript Easy 108 convert-sorted-array-to-binary-search-tree python Easy 109 convert-sorted-list-to-binary-search-tree python Medium 110 balanced-binary-tree javascript python Easy 111 minimum-depth-of-binary-tree javascript python Easy 112 path-sum javascript python Easy 113 path-sum-ii javascript python Medium 118 pascals-triangle javascript python Easy 119 pascals-triangle-ii javascript python Easy 120 triangle python Medium 121 best-time-to-buy-and-sell-stock javascript python Easy 122 best-time-to-buy-and-sell-stock-ii javascript python Easy 123 best-time-to-buy-and-sell-stock-iii javascript Hard 125 valid-palindrome javascript python Easy 129 sum-root-to-leaf-numbers javascript python Medium 131 palindrome-partitioning javascript Medium 136 single-number go javascript python Easy 137 single-number-ii javascript Medium 139 word-break python Medium 141 linked-list-cycle javascript python Easy 144 binary-tree-preorder-traversal javascript python Medium 145 binary-tree-postorder-traversal python Hard 151 reverse-words-in-a-string python Medium 152 maximum-product-subarray javascript Medium 153 find-minimum-in-rotated-sorted-array javascript python Medium 155 min-stack javascript python Easy 160 intersection-of-two-linked-lists javascript Easy 162 find-peak-element javascript python Medium 167 two-sum-ii-input-array-is-sorted javascript python Easy 169 majority-element javascript python Easy 170 two-sum-iii-data-structure-design javascript Easy 171 excel-sheet-column-number javascript Easy 172 factorial-trailing-zeroes javascript Easy 173 binary-search-tree-iterator python Medium 189 rotate-array javascript Easy 191 number-of-1-bits javascript Easy 198 house-robber javascript python Easy 199 binary-tree-right-side-view javascript Medium 200 number-of-islands javascript python Medium 202 happy-number javascript python Easy 203 remove-linked-list-elements javascript python Easy 204 count-primes javascript python Easy 205 isomorphic-strings javascript python Easy 206 reverse-linked-list go javascript python Easy 207 course-schedule javascript Medium 215 kth-largest-element-in-an-array python Medium 216 combination-sum-iii javascript python Medium 217 contains-duplicate javascript Easy 219 contains-duplicate-ii javascript Easy 225 implement-stack-using-queues javascript Easy 226 invert-binary-tree javascript python Easy 228 summary-ranges javascript Medium 229 majority-element-ii python Medium 230 kth-smallest-element-in-a-bst javascript python Medium 231 power-of-two javascript Easy 232 implement-queue-using-stacks javascript Easy 234 palindrome-linked-list javascript python Easy 235 lowest-common-ancestor-of-a-binary-search-tree javascript python Easy 236 lowest-common-ancestor-of-a-binary-tree python Medium 237 delete-node-in-a-linked-list javascript Easy 238 product-of-array-except-self javascript Medium 239 sliding-window-maximum python Hard 241 different-ways-to-add-parentheses javascript Medium 242 valid-anagram javascript python Easy 243 shortest-word-distance python Easy 244 shortest-word-distance-ii python Medium 245 shortest-word-distance-iii python Medium 246 strobogrammatic-number javascript Easy 252 meeting-rooms javascript python Easy 253 meeting-rooms-ii javascript python Medium 254 factor-combinations javascript Medium 257 binary-tree-paths javascript Easy 258 add-digits javascript python Easy 260 single-number-iii javascript Medium 263 ugly-number javascript python Easy 264 ugly-number-ii javascript python Medium 266 palindrome-permutation javascript Easy 267 palindrome-permutation-ii javascript Medium 268 missing-number javascript python Easy 270 closest-binary-search-tree-value javascript python Easy 278 first-bad-version javascript python Easy 279 perfect-squares javascript python Medium 280 wiggle-sort javascript Medium 283 move-zeroes go javascript python Easy 287 find-the-duplicate-number javascript Medium 289 game-of-life python Medium 290 word-pattern javascript Easy 298 binary-tree-longest-consecutive-sequence go javascript Medium 300 longest-increasing-subsequence javascript python Medium 316 remove-duplicate-letters javascript Hard 322 coin-change python Medium 326 power-of-three javascript Easy 338 counting-bits javascript Medium 340 longest-substring-with-at-most-k-distinct-characters javascript Hard 342 power-of-four javascript Easy 343 integer-break javascript Medium 344 reverse-string javascript python Easy 345 reverse-vowels-of-a-string javascript Easy 346 moving-average-from-data-stream javascript python Easy 347 top-k-frequent-elements javascript python Medium 349 intersection-of-two-arrays javascript python Easy 350 intersection-of-two-arrays-ii javascript python Easy 351 android-unlock-patterns javascript Medium 359 logger-rate-limiter javascript Easy 360 sort-transformed-array javascript Medium 367 valid-perfect-square javascript python Easy 369 plus-one-linked-list javascript Medium 371 sum-of-two-integers javascript Easy 377 combination-sum-iv javascript python Medium 378 kth-smallest-element-in-a-sorted-matrix javascript Medium 383 ransom-note javascript Easy 384 shuffle-an-array javascript Medium 387 first-unique-character-in-a-string javascript go Easy 389 find-the-difference javascript Easy 392 is-subsequence javascript Medium 394 decode-string javascript python Medium 399 evaluate-division javascript Medium 401 binary-watch javascript Easy 404 sum-of-left-leaves javascript Easy 406 queue-reconstruction-by-height javascript Medium 409 longest-palindrome javascript Easy 412 fizz-buzz javascript python Easy 414 third-maximum-number javascript Easy 415 add-strings javascript Easy 437 path-sum-iii javascript Easy 438 find-all-anagrams-in-a-string javascript Easy 442 find-all-duplicates-in-an-array javascript Medium 445 add-two-numbers-ii javascript Medium 448 find-all-numbers-disappeared-in-an-array javascript Easy 461 hamming-distance javascript Easy 463 island-perimeter javascript Easy 476 number-complement javascript Easy 481 magical-string javascript Medium 482 license-key-formatting javascript python Easy 485 max-consecutive-ones javascript python Easy 486 predict-the-winner javascript Medium 487 max-consecutive-ones-ii python Medium 492 construct-the-rectangle javascript Easy 494 target-sum javascript Medium 500 keyboard-row javascript Easy 504 base-7 javascript Easy 506 relative-ranks javascript Easy 516 longest-palindromic-subsequence javascript Medium 520 detect-capital javascript Easy 521 longest-uncommon-subsequence-i javascript Easy 526 beautiful-arrangement javascript Medium 528 random-pick-with-weight python Medium 547 friend-circles javascript Medium 551 student-attendance-record-i javascript Easy 557 reverse-words-in-a-string-iii javascript Easy 561 array-partition-i javascript Easy 565 array-nesting javascript Medium 566 reshape-the-matrix javascript Easy 572 subtree-of-another-tree javascript Easy 575 distribute-candies javascript Easy 582 kill-process javascript Medium 598 range-addition-ii javascript Easy 599 minimum-index-sum-of-two-lists javascript Easy 616 add-bold-tag-in-string javascript Medium 617 merge-two-binary-trees javascript Easy 633 sum-of-square-numbers javascript Easy 637 average-of-levels-in-binary-tree javascript Easy 645 set-mismatch javascript Easy 647 palindromic-substrings javascript python Medium 653 two-sum-iv-input-is-a-bst javascript python Easy 657 judge-route-circle javascript Easy 660 remove-9 javascript Hard 669 trim-a-binary-search-tree javascript Easy 671 second-minimum-node-in-a-binary-tree python Easy 674 longest-continuous-increasing-subsequence javascript Easy 686 repeated-string-match javascript Easy 687 longest-univalue-path javascript Easy 692 top-k-frequent-words javascript python Medium 695 max-area-of-island python Medium 704 binary-search python Easy 729 my-calendar-i javascript Medium 739 daily-temperatures python Medium 771 jewels-and-stones python Easy 819 most-common-word python Easy 832 flipping-an-image python Easy 844 backspace-string-compare python Easy 852 peak-index-in-a-mountain-array python Easy 876 middle-of-the-linked-list python Easy 904 fruit-into-baskets python Medium 929 unique-email-addresses python Easy License MIT © Song Wang