Leetcode solutions in C++
leetcode.com/subastral
-
https://leetcode.com/problems/valid-parentheses/submissions/921296960/
-
https://leetcode.com/problems/concatenation-of-array/submissions/922417932/
-
https://leetcode.com/problems/build-array-from-permutation/submissions/922431355/
-
https://leetcode.com/problems/merge-two-sorted-lists/submissions/927677205/
-
https://leetcode.com/problems/reverse-integer/submissions/948284040/
-
https://leetcode.com/problems/palindrome-number/submissions/948302498/
-
https://leetcode.com/problems/fibonacci-number/submissions/948539366/
-
https://leetcode.com/problems/remove-duplicates-from-sorted-array/submissions/1257511433/ https://leetcode.com/problems/remove-duplicates-from-sorted-array/submissions/1257506417/
-
https://leetcode.com/problems/move-zeroes/submissions/950878794/ https://leetcode.com/problems/move-zeroes/submissions/950888681/
-
https://leetcode.com/problems/missing-number/submissions/950903655/
-
https://leetcode.com/problems/max-consecutive-ones/submissions/951237162/
-
https://leetcode.com/problems/single-number/submissions/951266934/
-
https://leetcode.com/problems/two-sum/submissions/951367067/
-
https://leetcode.com/problems/sort-colors/submissions/951384090/ https://leetcode.com/problems/sort-colors/submissions/951385362/
-
https://leetcode.com/problems/majority-element/submissions/951434177/ https://leetcode.com/problems/majority-element/submissions/1256876284/
-
https://leetcode.com/problems/largest-odd-number-in-string/submissions/951594709/
-
https://leetcode.com/problems/reverse-linked-list/submissions/951981722/
-
https://leetcode.com/problems/middle-of-the-linked-list/submissions/951970476/
-
https://leetcode.com/problems/linked-list-cycle/submissions/951984419/
-
https://leetcode.com/problems/delete-node-in-a-linked-list/submissions/952006999/
-
https://leetcode.com/problems/palindrome-linked-list/submissions/952008936/
-
https://leetcode.com/problems/binary-search/submissions/952564341/
-
https://leetcode.com/problems/search-insert-position/submissions/952566248/
-
https://leetcode.com/problems/single-element-in-a-sorted-array/submissions/952632989/
-
https://leetcode.com/problems/power-of-two/submissions/962120535/
-
https://leetcode.com/problems/powx-n/submissions/953245702/ https://leetcode.com/problems/powx-n/submissions/1265633053/
-
https://leetcode.com/problems/linked-list-cycle-ii/submissions/953932132/
-
https://leetcode.com/problems/remove-nth-node-from-end-of-list/submissions/953959953/
-
https://leetcode.com/problems/delete-the-middle-node-of-a-linked-list/submissions/953969472/
-
https://leetcode.com/problems/plus-one/submissions/955606612/
-
https://leetcode.com/problems/length-of-last-word/submissions/955615098/
-
https://leetcode.com/problems/remove-duplicates-from-sorted-list/submissions/955721954/
-
https://leetcode.com/problems/add-binary/submissions/955760869/
-
https://leetcode.com/problems/add-to-array-form-of-integer/submissions/955787664/
-
https://leetcode.com/problems/add-strings/submissions/955799985/
-
https://leetcode.com/problems/number-of-1-bits/submissions/955827581/
-
https://leetcode.com/problems/counting-bits/submissions/955832138/
-
https://leetcode.com/problems/reverse-words-in-a-string/submissions/956246494/
-
https://leetcode.com/problems/valid-anagram/submissions/956392126/
-
https://leetcode.com/problems/contains-duplicate/submissions/958759521/
-
https://leetcode.com/problems/happy-number/submissions/958819940/
-
https://leetcode.com/problems/find-peak-element/submissions/959658564/
-
https://leetcode.com/problems/rotate-array/submissions/960729693/
-
https://leetcode.com/problems/search-a-2d-matrix/submissions/960740875/
-
https://leetcode.com/problems/intersection-of-two-linked-lists/submissions/960860752/
-
https://leetcode.com/problems/spiral-matrix/submissions/960914444/
-
https://leetcode.com/problems/add-digits/submissions/961776286/
-
https://leetcode.com/problems/ugly-number/submissions/961838224/ https://leetcode.com/problems/ugly-number/submissions/961840646/
-
https://leetcode.com/problems/reverse-vowels-of-a-string/submissions/961899206/
-
https://leetcode.com/problems/reverse-string/submissions/961901057/
-
https://leetcode.com/problems/power-of-four/submissions/961908240/
-
https://leetcode.com/problems/power-of-three/submissions/962126520/
-
https://leetcode.com/problems/first-bad-version/submissions/963469576/
-
https://leetcode.com/problems/valid-perfect-square/submissions/963474432/
-
https://leetcode.com/problems/find-the-difference/submissions/963477855/
-
https://leetcode.com/problems/sign-of-the-product-of-an-array/submissions/964148514/
-
https://leetcode.com/problems/prime-in-diagonal/submissions/964160392/
-
https://leetcode.com/problems/fizz-buzz/submissions/964665817/
-
https://leetcode.com/problems/same-tree/submissions/964891291/
-
https://leetcode.com/problems/search-in-a-binary-search-tree/submissions/964907117/
-
https://leetcode.com/problems/squares-of-a-sorted-array/submissions/965081329/
-
https://leetcode.com/problems/univalued-binary-tree/submissions/965085777/
-
https://leetcode.com/problems/range-sum-of-bst/submissions/965390439/
-
https://leetcode.com/problems/count-the-digits-that-divide-a-number/submissions/965418398/
-
https://leetcode.com/problems/perfect-number/submissions/966139539/
-
https://leetcode.com/problems/self-dividing-numbers/submissions/966144245/
-
https://leetcode.com/problems/binary-tree-preorder-traversal/submissions/966474479/
-
https://leetcode.com/problems/binary-tree-inorder-traversal/submissions/966476307/
-
https://leetcode.com/problems/binary-tree-postorder-traversal/submissions/966478029/
-
https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/submissions/966557709/
-
https://leetcode.com/problems/maximum-depth-of-binary-tree/submissions/967182945/
-
https://leetcode.com/problems/validate-binary-search-tree/submissions/967824561/
-
https://leetcode.com/problems/binary-tree-level-order-traversal/submissions/969323775/
-
https://leetcode.com/problems/minimum-depth-of-binary-tree/submissions/969331916/
-
https://leetcode.com/problems/rotate-image/submissions/969365212/
-
https://leetcode.com/problems/maximum-subarray/submissions/969432701/
-
https://leetcode.com/problems/best-time-to-buy-and-sell-stock/submissions/969566199/
-
https://leetcode.com/problems/subarray-sum-equals-k/submissions/970264270/
-
https://leetcode.com/problems/rearrange-array-elements-by-sign/submissions/970278263/
-
https://leetcode.com/problems/longest-consecutive-sequence/submissions/970895267/
-
https://leetcode.com/problems/climbing-stairs/submissions/970920823/
-
https://leetcode.com/problems/pascals-triangle/submissions/970940110/
-
https://leetcode.com/problems/majority-element-ii/submissions/971614730/
-
https://leetcode.com/problems/most-frequent-even-element/submissions/971641783/
-
https://leetcode.com/problems/merge-sorted-array/submissions/971701737/
-
https://leetcode.com/problems/search-in-rotated-sorted-array/submissions/972601659/
-
https://leetcode.com/problems/next-greater-element-i/submissions/973117541/
-
https://leetcode.com/problems/remove-element/submissions/973842375/
-
https://leetcode.com/problems/implement-stack-using-queues/submissions/974638338/
-
https://leetcode.com/problems/implement-queue-using-stacks/submissions/974681029/
-
https://leetcode.com/problems/min-stack/submissions/975333008/
-
https://leetcode.com/problems/binary-tree-right-side-view/submissions/975501490/
-
https://leetcode.com/problems/find-smallest-letter-greater-than-target/submissions/975507766/
-
https://leetcode.com/problems/lemonade-change/submissions/976271606/
-
https://leetcode.com/problems/search-in-rotated-sorted-array-ii/submissions/977033076/
-
https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/submissions/977036114/
-
https://leetcode.com/problems/group-anagrams/submissions/1242237786/
-
https://leetcode.com/problems/top-k-frequent-elements/submissions/1242480869/
-
https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/submissions/1257037433/
-
https://leetcode.com/problems/defanging-an-ip-address/submissions/1258660888/
-
https://leetcode.com/problems/convert-the-temperature/submissions/1258656385/
-
https://leetcode.com/problems/rotate-string/submissions/1258760369/
-
https://leetcode.com/problems/remove-outermost-parentheses/submissions/1259541379/
-
https://leetcode.com/problems/maximum-nesting-depth-of-the-parentheses/submissions/1259752671/
-
https://leetcode.com/problems/roman-to-integer/submissions/1259778482/
-
https://leetcode.com/problems/odd-even-linked-list/submissions/1260287608/
-
https://leetcode.com/problems/sort-list/submissions/1260321743/
-
https://leetcode.com/problems/add-two-numbers/submissions/1260437476/
-
https://leetcode.com/problems/rotate-list/submissions/1260472462/
-
https://leetcode.com/problems/valid-parenthesis-string/submissions/1267154568/
-
https://leetcode.com/problems/special-array-i/submissions/1267251293/
-
https://leetcode.com/problems/find-the-integer-added-to-array-i/submissions/1269280777/
-
https://leetcode.com/problems/divide-two-integers/submissions/1270278001/
-
https://leetcode.com/problems/find-if-digit-game-can-be-won/submissions/1357385183/
-
https://leetcode.com/problems/snake-in-matrix/submissions/1357411641/
-
https://leetcode.com/problems/convert-date-to-binary/submissions/1415030932/
-
https://leetcode.com/problems/find-indices-of-stable-mountains/submissions/1427534521/
-
https://leetcode.com/problems/find-the-key-of-the-numbers/submissions/1430212571/
-
https://leetcode.com/problems/the-two-sneaky-numbers-of-digitville/submissions/1432427424/
-
https://leetcode.com/problems/find-the-maximum-achievable-number/submissions/1435032351/
-
https://leetcode.com/problems/divisible-and-non-divisible-sums-difference/submissions/1435042075/
-
https://leetcode.com/problems/merge-nodes-in-between-zeros/submissions/1436181984/
-
https://leetcode.com/problems/check-balanced-string/submissions/1447463782/
-
https://leetcode.com/problems/alternating-groups-i/submissions/1447476379/
-
https://leetcode.com/problems/shuffle-the-array/submissions/1448427110/
-
https://leetcode.com/problems/maximum-number-of-words-found-in-sentences/submissions/1448439130/
-
https://leetcode.com/problems/reverse-prefix-of-word/submissions/1448548656/
-
https://leetcode.com/problems/sum-multiples/submissions/1448552812/
-
https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent/submissions/1448555182/
-
https://leetcode.com/problems/maximum-product-of-two-elements-in-an-array/submissions/1453320825/
-
https://leetcode.com/problems/maximum-product-difference-between-two-pairs/submissions/1453329140/
-
https://leetcode.com/problems/harshad-number/submissions/1453331776/
-
https://leetcode.com/problems/maximum-69-number/submissions/1453335129/
-
https://leetcode.com/problems/number-of-changing-keys/submissions/1456557559/
-
https://leetcode.com/problems/height-checker/submissions/1457315227/
-
https://leetcode.com/problems/rings-and-rods/submissions/1457333920/
-
https://leetcode.com/problems/minimum-number-of-chairs-in-a-waiting-room/submissions/1457346143/
-
https://leetcode.com/problems/balanced-binary-tree/submissions/1476388728/
-
https://leetcode.com/problems/diameter-of-binary-tree/submissions/1476450382/