How zaarakhan-dev/leetcode-solutions works
This repository is a collection of independent Python LeetCode solutions, not a shared application: each problem has its own Solution method and algorithm. The principal workflow is a platform-supplied input invoking a problem-specific method and receiving its answer. The README highlights array/hash, two-pointer, and sliding-window patterns; those branches are represented below. The solutions do not call one another. The platform interaction is documented, but the runtime harness is not included in the sampled source.
Main entry points: contains-duplicate.py Contains Duplicate · valid-anagram.py Valid Anagram · two-sum.py Two Sum · group-anagrams.py Group Anagrams
Components 16
Arrays and Hashing
- Contains Duplicate
217-contains-duplicate/contains-duplicate.py - Valid Anagram
242-valid-anagram/valid-anagram.py - Two Sum
1-two-sum/two-sum.py - Group Anagrams
49-group-anagrams/group-anagrams.py - Top K Frequent
347-top-k-frequent-elements/top-k-frequent-elements.py - Product Except Self
238-product-of-array-except-self/product-of-array-except-self.py
Two Pointers
- Valid Palindrome
125-valid-palindrome/valid-palindrome.py - Sorted Two Sum
167-two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py - Reverse String
344-reverse-string/reverse-string.py - Move Zeroes
283-move-zeroes/move-zeroes.py - Remove Element
27-remove-element/remove-element.py - Remove Duplicates
26-remove-duplicates-from-sorted-array/remove-duplicates-from-sorted-array.py - Sorted Squares
1019-squares-of-a-sorted-array/squares-of-a-sorted-array.py
Sliding Windows
- Maximum Average
643-maximum-average-subarray-i/maximum-average-subarray-i.py - Minimum Subarray Length
209-minimum-size-subarray-sum/minimum-size-subarray-sum.py
Other components
- LeetCode judge
Connections 15
- LeetCode judge → Contains Duplicate: invokes
README.md - LeetCode judge → Valid Anagram: invokes
README.md - LeetCode judge → Two Sum: invokes
README.md - LeetCode judge → Group Anagrams: invokes
README.md - LeetCode judge → Top K Frequent: invokes
README.md - LeetCode judge → Product Except Self: invokes
README.md - LeetCode judge → Valid Palindrome: invokes
README.md - LeetCode judge → Sorted Two Sum: invokes
README.md - LeetCode judge → Reverse String: invokes
README.md - LeetCode judge → Move Zeroes: invokes
README.md - LeetCode judge → Remove Element: invokes
README.md - LeetCode judge → Remove Duplicates: invokes
README.md - LeetCode judge → Sorted Squares: invokes
README.md - LeetCode judge → Maximum Average: invokes
README.md - LeetCode judge → Minimum Subarray Length: invokes
README.md