https://github.com/aint/leetcode
🎓 My polyglot solutions of Leetcode problems. Scala, Java, Golang, Python, C++ etc.
https://github.com/aint/leetcode
algorithms cpp golang java leetcode python rust scala
Last synced: 2 months ago
JSON representation
🎓 My polyglot solutions of Leetcode problems. Scala, Java, Golang, Python, C++ etc.
- Host: GitHub
- URL: https://github.com/aint/leetcode
- Owner: aint
- Created: 2018-09-04T20:19:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-20T20:30:14.000Z (11 months ago)
- Last Synced: 2025-04-20T21:26:37.703Z (11 months ago)
- Topics: algorithms, cpp, golang, java, leetcode, python, rust, scala
- Language: Go
- Homepage:
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leetcode
[](https://leetcard.jacoblin.cool/aint)
| # | Title | Solution | Topics |
| --- | ----- | -------- | ------ |
|1| [Two sum](https://leetcode.com/problems/two-sum/description/) | [Java](./array/TwoSum.java) |
|2| [Add Two Numbers](https://leetcode.com/problems/add-two-numbers/) | [Golang](./linkedList/AddTwoNumbers.go) |
|3| [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/) | [Scala](./string/LongestSubstringWithoutRepeatingCharacters.scala) |
|5| [Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring/) | [Java](./string/LongestPalindromicSubstring.java) |
|7| [Reverse Integer](https://leetcode.com/problems/reverse-integer/) | [C++](./math/reverse_integer.cpp) |
|9| [Palindrome Number](https://leetcode.com/problems/palindrome-number/description/) | [Golang](./math/PalindromeNumber.go) |
|11| [Container With Most Water](https://leetcode.com/problems/container-with-most-water/) | [Python](./python/11_container_with_most_water.py) | two pointers |
|14| [Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix/description/) | [Golang](./go/14_longest_common_prefix.go) ||
|21| [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/description/) | [Golang](./go/21_merge_two_sorted_lists.go.go) | dummy head |
|26| [Remove Duplicates from Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array/) | [Kotlin](./kotlin/26_remove_duplicates_from_sorted_array.kt) | two pointers |
|27| [Remove Element](https://leetcode.com/problems/remove-element/) | [Golang](./array/RemoveElement.go) |
|35| [Search Insert Position](https://leetcode.com/problems/search-insert-position/) | [Golang](./go/35_search_insert_position.go) | binary search |
|43| [Multiply Strings](https://leetcode.com/problems/multiply-strings/) | [Golang](./math/MultiplyStrings.go) |
|62| [Rotate List](https://leetcode.com/problems/rotate-list/) | [Scala](./scala/62_rotate_list.scala) | linked list |
|88| [Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array/) | [Python](./python/88_merge_sorted_array.py) | two pointers |
|121| [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/) | [Python](./python/121_best_time_to_buy_sell.py) | two pointers |
|125| [Valid Palindrome](https://leetcode.com/problems/valid-palindrome/) | [Kotlin](./kotlin/125_valid_palindrome.kt) | two pointers |
|129| [Sum Root to Leaf Numbers](https://leetcode.com/problems/sum-root-to-leaf-numbers/) | [Golang](./tree/SumRootToLeafNumbers.go) |
|201| [Contains Duplicate II](https://leetcode.com/problems/contains-duplicate-ii/) | [Golang](./array/ContainsDuplicate2.go) |
|203| [Remove Linked List Elements](https://leetcode.com/problems/remove-linked-list-elements/description/) | [Python](./linkedList/RemoveLinkedListElements.py) |
|205| [Isomorphic Strings](https://leetcode.com/problems/isomorphic-strings/description/) | [Golang](./go/205_isomorphic_strings.go) |
|206| [Reverse Linked List](https://leetcode.com/problems/reverse-linked-list/description/) | [Scala](./linkedList/ReverseLinkedList.scala) |
|225| [Implement Stack using Queues](https://leetcode.com/problems/implement-stack-using-queues/) | [Golang](./go/225_implement_stack_using_queues.go) | stack |
|237| [Delete Node in a Linked List](https://leetcode.com/problems/delete-node-in-a-linked-list/description/) | [Python](./linkedList/DeleteNodeInLinkedList.py) |
|242| [Valid Anagram](https://leetcode.com/problems/valid-anagram/) | [Golang](./string/ValidAnagram.go) |
|258| [Add digits](https://leetcode.com/problems/add-digits/) | [Python](./python/258_add_digits.py) | recursion |
|268| [Missing Number](https://leetcode.com/problems/missing-number/) | [Python](./python/268_missing_number.py) | math |
|278| [First Bad Version](https://leetcode.com/problems/first-bad-version/) | [Python](./python/278_first_bad_version.py) | binary search |
|283| [Move Zeroes](https://leetcode.com/problems/move-zeroes/) | [Kotlin](./kotlin/283_move_zeroes.kt) | two pointers |
|344| [Reverse String](https://leetcode.com/problems/reverse-string/description/) | [Scala](./string/ReverseString.scala) |
|345| [Reverse Vowels of a String](https://leetcode.com/problems/reverse-vowels-of-a-string) | [Python](./python/345_reverse_vowels_of_string.py) | two pointers |
|347| [Top K Frequent Elements](https://leetcode.com/problems/top-k-frequent-elements/) | [Kotlin](./array/TopKFrequentElements.kt) |
|349| [Intersection of Two Arrays](https://leetcode.com/problems/intersection-of-two-arrays/) | [JavaScript](./array/IntersectionOfTwoArrays.js) |
|374| [Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower/) | [Python](./python/374_guess_number_higher_or_lower.py) | binary search |
|430| [Flatten a Multilevel Doubly Linked List](https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list/) | [Java](./linkedList/FlattenMultilevelDoublyLinkedList.java) |
|438| [Find All Anagrams in a String](https://leetcode.com/problems/find-all-anagrams-in-a-string/) | [Golang](./string/FindAllAnagramsInString.go) |
|567| [Permutation in String](https://leetcode.com/problems/permutation-in-string/) | [Golang](./string/PermutationInString.go) |
|653| [Two Sum IV - Input is a BST](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/) | [Golang](./tree/TwoSumIV.go) |
|724| [Find Pivot Index](https://leetcode.com/problems/find-pivot-index/) | [TypeScript](./array/FindPivotIndex.ts) |
|832| [Flipping an Image](https://leetcode.com/problems/flipping-an-image/) | [Golang](./array/FlippingImage.go) |
|905| [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/) | [Kotlin](./kotlin/905_sort_array_by_parity.kt) | two pointers |
|917| [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) | [Golang](./string/ReverseOnlyLetters.go) |
|922| [Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii/) | [Kotlin](./kotlin/922_sort_array_by_parity_ii.kt) | two pointers |
|977| [Squares of a Sorted Array](https://leetcode.com/problems/squares-of-a-sorted-array/) | [Python](./python/977_squares_of_sorted_array.py) | two pointers |
|988| [Smallest String Starting From Leaf](https://leetcode.com/problems/smallest-string-starting-from-leaf/) | [Golang](./tree/SmallestStringStartingFromLeaf.go) |
|1302| [Deepest Leaves Sum](https://leetcode.com/problems/deepest-leaves-sum/) | [Golang](./tree/DeepestLeavesSum.go) |
|1309| [Decrypt String from Alphabet to Integer Mapping](https://leetcode.com/problems/decrypt-string-from-alphabet-to-integer-mapping/) | [Rust](./string/DecryptStringFromAlphabetToIntegerMapping.rs) |
|1436| [Destination City](https://leetcode.com/problems/destination-city/) | [Golang](./string/DestinationCity.go) |
|1448| [Count Good Nodes in Binary Tree](https://leetcode.com/problems/count-good-nodes-in-binary-tree/) | [Golang](./tree/CountGoodNodesInBinaryTree.go) |
|1470| [Shuffle the Array](https://leetcode.com/problems/shuffle-the-array/) | [Python](./array/ShuffleArray.py) |
|1491| [Average Salary Excluding the Minimum and Maximum Salary](https://leetcode.com/problems/average-salary-excluding-the-minimum-and-maximum-salary/) | [Golang](./array/AverageSalaryExcludingMinAndMaxSalary.go) |
|1588| [Sum of All Odd Length Subarrays](https://leetcode.com/problems/sum-of-all-odd-length-subarrays/) | [Golang](./array/SumOfAllOddLengthSubarrays.go) |
|1769| [Minimum Number of Operations to Move All Balls to Each Box](https://leetcode.com/problems/minimum-number-of-operations-to-move-all-balls-to-each-box/) | [Golang](./array/MinNumberOperationsToMoveAllBallsToEachBox.go) |
|1827| [Minimum Operations to Make the Array Increasing](https://leetcode.com/problems/minimum-operations-to-make-the-array-increasing/) | [Python](./python/1827_minimum_operations_to_make_array_increasing.py) | greedy |
|2260| [Minimum Consecutive Cards to Pick Up](https://leetcode.com/problems/minimum-consecutive-cards-to-pick-up/) | [Golang](./array/MinConsecutiveCardsToPickUp.go) |
|2461| [Maximum Sum of Distinct Subarrays With Length K](https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k/) | [Python](./python/2461_max_sum_of_distinct_subarrays_with_length_k.py) | Sliding Window |