Skip to content

startFromHere/AlgorithmPracticesInPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlgorithmPracticesByPython

LeetCode Topics

Stack

0020-valid-parentheses
0042-trapping-rain-water
0225-implement-stack-using-queues
0682-baseball-game

Design

0225-implement-stack-using-queues
0380-insert-delete-getrandom-o1

Queue

0225-implement-stack-using-queues

Array

0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0031-next-permutation
0035-search-insert-position
0036-valid-sudoku
0042-trapping-rain-water
0045-jump-game-ii
0048-rotate-image
0049-group-anagrams
0054-spiral-matrix
0055-jump-game
0056-merge-intervals
0066-plus-one
0073-set-matrix-zeroes
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0108-convert-sorted-array-to-binary-search-tree
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0128-longest-consecutive-sequence
0134-gas-station
0135-candy
0136-single-number
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0209-minimum-size-subarray-sum
0215-kth-largest-element-in-an-array
0219-contains-duplicate-ii
0228-summary-ranges
0238-product-of-array-except-self
0274-h-index
0380-insert-delete-getrandom-o1
0682-baseball-game
1786-count-the-number-of-consistent-strings
2727-number-of-senior-citizens

Simulation

0054-spiral-matrix
0067-add-binary
0682-baseball-game

Two Pointers

0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0031-next-permutation
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

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0088-merge-sorted-array
0169-majority-element
0215-kth-largest-element-in-an-array
0242-valid-anagram
0274-h-index

String

0003-longest-substring-without-repeating-characters
0006-zigzag-conversion
0008-string-to-integer-atoi
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
0067-add-binary
0125-valid-palindrome
0151-reverse-words-in-a-string
0205-isomorphic-strings
0242-valid-anagram
0290-word-pattern
0383-ransom-note
1786-count-the-number-of-consistent-strings
2727-number-of-senior-citizens

Hash Table

0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0036-valid-sudoku
0049-group-anagrams
0073-set-matrix-zeroes
0128-longest-consecutive-sequence
0141-linked-list-cycle
0169-majority-element
0202-happy-number
0205-isomorphic-strings
0219-contains-duplicate-ii
0242-valid-anagram
0290-word-pattern
0380-insert-delete-getrandom-o1
0383-ransom-note
1786-count-the-number-of-consistent-strings

Divide and Conquer

0108-convert-sorted-array-to-binary-search-tree
0169-majority-element
0190-reverse-bits
0191-number-of-1-bits
0215-kth-largest-element-in-an-array

Counting

0169-majority-element
0383-ransom-note
1786-count-the-number-of-consistent-strings

Binary Search

0035-search-insert-position
0069-sqrtx
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0222-count-complete-tree-nodes

Math

0002-add-two-numbers
0009-palindrome-number
0012-integer-to-roman
0013-roman-to-integer
0048-rotate-image
0066-plus-one
0067-add-binary
0069-sqrtx
0070-climbing-stairs
0172-factorial-trailing-zeroes
0189-rotate-array
0202-happy-number
0380-insert-delete-getrandom-o1

Dynamic Programming

0042-trapping-rain-water
0045-jump-game-ii
0055-jump-game
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0135-candy

String Matching

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

Counting Sort

0274-h-index

Randomized

0380-insert-delete-getrandom-o1

Prefix Sum

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

Trie

0014-longest-common-prefix

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists
0141-linked-list-cycle
0206-reverse-linked-list

Sliding Window

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

Tree

0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0112-path-sum
0222-count-complete-tree-nodes
0226-invert-binary-tree
0637-average-of-levels-in-binary-tree

Depth-First Search

0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0112-path-sum
0226-invert-binary-tree
0637-average-of-levels-in-binary-tree

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0112-path-sum
0226-invert-binary-tree
0637-average-of-levels-in-binary-tree

Binary Tree

0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0112-path-sum
0222-count-complete-tree-nodes
0226-invert-binary-tree
0637-average-of-levels-in-binary-tree

Memoization

0070-climbing-stairs

Bit Manipulation

0067-add-binary
0136-single-number
0190-reverse-bits
0191-number-of-1-bits
0222-count-complete-tree-nodes
1786-count-the-number-of-consistent-strings

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0206-reverse-linked-list

Monotonic Stack

0042-trapping-rain-water

Matrix

0036-valid-sudoku
0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes

Union Find

0128-longest-consecutive-sequence

Binary Search Tree

0108-convert-sorted-array-to-binary-search-tree

Heap (Priority Queue)

0215-kth-largest-element-in-an-array

Quickselect

0215-kth-largest-element-in-an-array

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages