Skip to content

This repository serves as a personal archive of my progress and learning journey through solving algorithmic and data structure problems on LeetCode.

Notifications You must be signed in to change notification settings

ZaneBrackley/LeetCode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions 📚

Welcome to my LeetCode Solutions repository! Here, I store my solutions to various LeetCode problems using the LeetHub v2 Chrome extension, which automatically syncs my submissions to GitHub.

🚀 About

This repository serves as a personal archive of my progress and learning journey through solving algorithmic and data structure problems on LeetCode.

🏗 Structure

LeetHub v2 organizes solutions in the following format:

📂 LeetCode-Solutions
 ┣ 📂 problem-name
 ┃ ┣ 📜 solution.extension  (e.g., solution.py, solution.java)
 ┃ ┣ 📜 README.md  (auto-generated problem description)
 ┗ 📜 README.md

Each solution includes:

  • Problem description (auto-generated by LeetHub)
  • Code implementation
  • Time and space complexity analysis

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0015-3sum
0016-3sum-closest
0026-remove-duplicates-from-sorted-array
0027-remove-element
0036-valid-sudoku
0042-trapping-rain-water
0045-jump-game-ii
0049-group-anagrams
0053-maximum-subarray
0055-jump-game
0066-plus-one
0068-text-justification
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0139-word-break
0150-evaluate-reverse-polish-notation
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0198-house-robber
0204-count-primes
0209-minimum-size-subarray-sum
0213-house-robber-ii
0217-contains-duplicate
0228-summary-ranges
0238-product-of-array-except-self
0274-h-index
0289-game-of-life
0322-coin-change
0407-trapping-rain-water-ii

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0016-3sum-closest
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0042-trapping-rain-water
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0202-happy-number
0295-find-median-from-data-stream
0443-string-compression

Sorting

0015-3sum
0016-3sum-closest
0049-group-anagrams
0088-merge-sorted-array
0169-majority-element
0217-contains-duplicate
0242-valid-anagram
0274-h-index
0295-find-median-from-data-stream

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0049-group-anagrams
0058-length-of-last-word
0068-text-justification
0125-valid-palindrome
0139-word-break
0151-reverse-words-in-a-string
0224-basic-calculator
0227-basic-calculator-ii
0242-valid-anagram
0273-integer-to-english-words
0290-word-pattern
0394-decode-string
0409-longest-palindrome
0443-string-compression

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0012-integer-to-roman
0013-roman-to-integer
0066-plus-one
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
0189-rotate-array
0202-happy-number
0204-count-primes
0224-basic-calculator
0227-basic-calculator-ii
0273-integer-to-english-words

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0036-valid-sudoku
0049-group-anagrams
0073-set-matrix-zeroes
0138-copy-list-with-random-pointer
0139-word-break
0141-linked-list-cycle
0169-majority-element
0202-happy-number
0217-contains-duplicate
0242-valid-anagram
0290-word-pattern
0409-longest-palindrome

Divide and Conquer

0004-median-of-two-sorted-arrays
0023-merge-k-sorted-lists
0053-maximum-subarray
0169-majority-element

Counting

0169-majority-element

Dynamic Programming

0005-longest-palindromic-substring
0042-trapping-rain-water
0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0124-binary-tree-maximum-path-sum
0139-word-break
0198-house-robber
0213-house-robber-ii
0322-coin-change
0337-house-robber-iii

Tree

0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0337-house-robber-iii

Depth-First Search

0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0337-house-robber-iii

Binary Tree

0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0337-house-robber-iii

Breadth-First Search

0226-invert-binary-tree
0322-coin-change
0407-trapping-rain-water-ii

Binary Search

0004-median-of-two-sorted-arrays
0074-search-a-2d-matrix
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum

Matrix

0036-valid-sudoku
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0289-game-of-life
0407-trapping-rain-water-ii

Stack

0020-valid-parentheses
0042-trapping-rain-water
0150-evaluate-reverse-polish-notation
0155-min-stack
0224-basic-calculator
0227-basic-calculator-ii
0394-decode-string

Monotonic Stack

0042-trapping-rain-water

Heap (Priority Queue)

0023-merge-k-sorted-lists
0295-find-median-from-data-stream
0407-trapping-rain-water-ii

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Recursion

0002-add-two-numbers
0206-reverse-linked-list
0224-basic-calculator
0273-integer-to-english-words
0394-decode-string

Simulation

0068-text-justification
0289-game-of-life

Database

0175-combine-two-tables
0577-employee-bonus

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0409-longest-palindrome

Sliding Window

0003-longest-substring-without-repeating-characters
0209-minimum-size-subarray-sum

Prefix Sum

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

Counting Sort

0274-h-index

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0023-merge-k-sorted-lists
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0206-reverse-linked-list

Merge Sort

0023-merge-k-sorted-lists

Trie

0014-longest-common-prefix
0139-word-break

Design

0155-min-stack
0295-find-median-from-data-stream

Memoization

0070-climbing-stairs
0139-word-break

Data Stream

0295-find-median-from-data-stream

Enumeration

0204-count-primes

Number Theory

0204-count-primes

About

This repository serves as a personal archive of my progress and learning journey through solving algorithmic and data structure problems on LeetCode.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published