Skip to content

InventedSarawak/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

319 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 LeetCode DSA Practice 📝

Welcome to my LeetCode DSA Practice repository! This repo serves as a personal catalog 📖 of my journey through LeetCode's Data Structures and Algorithms problems. Each solution is synced automatically via LeetHub to keep track of my progress and growth in DSA.

🌟 Highlights

  • 🌍 Wide Variety of Problems: Solutions span across a range of topics and difficulties on LeetCode.
  • ⚙️ Auto-Synced via LeetHub: Solutions are added seamlessly and stay up-to-date.
  • 💡 Clear & Efficient Code: Solutions are as efficient as my two brain cells can make them .

📂 Repository Structure

Files are organized as a flat list, with each problem saved as a separate file for easy browsing. 🗂️

Example:

two_sum.py
longest_palindromic_substring.py
reverse_linked_list.py
binary_tree_inorder_traversal.py
...

🚀 Quick Start

If you’d like to run a solution locally:

  1. Clone the repo:
    git clone https://github.com/InventedSarawak/Data-Structures-Algorithms.git
    cd leetcode-dsa-practice
  2. Run any file with Python:
    python3 two_sum.py

📈 Progress Tracking

This repository is my personal catalog of problems solved on LeetCode. Each file here represents a challenge tackled, a concept learned, and a skill improved. 🌱

🧩 Problem List

LeetCode Topics

Array

0001-two-sum
0015-3sum
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0036-valid-sudoku
0049-group-anagrams
0054-spiral-matrix
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0136-single-number
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0200-number-of-islands
0209-minimum-size-subarray-sum
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0219-contains-duplicate-ii
0238-product-of-array-except-self
0268-missing-number
0283-move-zeroes
0347-top-k-frequent-elements
0448-find-all-numbers-disappeared-in-an-array
0485-max-consecutive-ones
0704-binary-search
0845-longest-mountain-in-array
0875-koko-eating-bananas
0977-squares-of-a-sorted-array
1019-squares-of-a-sorted-array
1200-minimum-absolute-difference
1395-minimum-time-visiting-all-points
1482-how-many-numbers-are-smaller-than-the-current-number
1878-check-if-array-is-sorted-and-rotated
3861-minimum-capacity-box

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0036-valid-sudoku
0049-group-anagrams
0128-longest-consecutive-sequence
0217-contains-duplicate
0219-contains-duplicate-ii
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
0448-find-all-numbers-disappeared-in-an-array
0567-permutation-in-string
1482-how-many-numbers-are-smaller-than-the-current-number
1904-second-largest-digit-in-a-string

Math

0009-palindrome-number
0189-rotate-array
0268-missing-number
0326-power-of-three
0342-power-of-four
0509-fibonacci-number
1013-fibonacci-number
1395-minimum-time-visiting-all-points
1448-maximum-69-number

Two Pointers

0015-3sum
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0125-valid-palindrome
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0283-move-zeroes
0567-permutation-in-string
0845-longest-mountain-in-array
0977-squares-of-a-sorted-array
1019-squares-of-a-sorted-array

Dynamic Programming

0121-best-time-to-buy-and-sell-stock
0509-fibonacci-number
0845-longest-mountain-in-array
1013-fibonacci-number

Recursion

0326-power-of-three
0342-power-of-four
0509-fibonacci-number
1013-fibonacci-number

Memoization

0509-fibonacci-number
1013-fibonacci-number

String

0003-longest-substring-without-repeating-characters
0049-group-anagrams
0125-valid-palindrome
0242-valid-anagram
0567-permutation-in-string
1904-second-largest-digit-in-a-string
2264-largest-3-same-digit-number-in-string
2346-largest-3-same-digit-number-in-string

Binary Search

0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0268-missing-number
0704-binary-search
0875-koko-eating-bananas

Bit Manipulation

0136-single-number
0268-missing-number
0342-power-of-four

Sorting

0015-3sum
0049-group-anagrams
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
0977-squares-of-a-sorted-array
1019-squares-of-a-sorted-array
1200-minimum-absolute-difference
1482-how-many-numbers-are-smaller-than-the-current-number

Divide and Conquer

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Matrix

0036-valid-sudoku
0054-spiral-matrix
0200-number-of-islands

Simulation

0054-spiral-matrix

Geometry

1395-minimum-time-visiting-all-points

Counting Sort

0347-top-k-frequent-elements
1482-how-many-numbers-are-smaller-than-the-current-number

Depth-First Search

0200-number-of-islands

Breadth-First Search

0200-number-of-islands

Union Find

0128-longest-consecutive-sequence
0200-number-of-islands

Bucket Sort

0347-top-k-frequent-elements

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self

Greedy

1448-maximum-69-number

Enumeration

0845-longest-mountain-in-array

Sliding Window

0003-longest-substring-without-repeating-characters
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
0567-permutation-in-string

For a full list of problems, feel free to check out my LeetCode profile. 🔗 Let the DSA journey continue! 💪 Happy coding! 🖥️✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages