yossev / leetcode

My LeetCode Solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Leetcode solutions categorized by topics.

LeetCode Topics

Stack

0143-reorder-list
0150-evaluate-reverse-polish-notation
0155-min-stack
2470-removing-stars-from-a-string

Design

0155-min-stack

Linked List

0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0141-linked-list-cycle
0143-reorder-list
0206-reverse-linked-list
0328-odd-even-linked-list
2216-delete-the-middle-node-of-a-linked-list

Recursion

0021-merge-two-sorted-lists
0143-reorder-list
0206-reverse-linked-list

Two Pointers

0011-container-with-most-water
0019-remove-nth-node-from-end-of-list
0141-linked-list-cycle
0143-reorder-list
0151-reverse-words-in-a-string
0283-move-zeroes
0392-is-subsequence
1798-max-number-of-k-sum-pairs
2216-delete-the-middle-node-of-a-linked-list

Array

0011-container-with-most-water
0036-valid-sudoku
0046-permutations
0049-group-anagrams
0128-longest-consecutive-sequence
0150-evaluate-reverse-polish-notation
0238-product-of-array-except-self
0283-move-zeroes
0347-top-k-frequent-elements
0605-can-place-flowers
0948-sort-an-array
1319-unique-number-of-occurrences
1329-minimum-cost-to-move-chips-to-the-same-position
1333-sort-the-jumbled-numbers
1392-find-the-difference-of-two-arrays
1496-lucky-numbers-in-a-matrix
1556-make-two-arrays-equal-by-reversing-subarrays
1741-sort-array-by-increasing-frequency
1798-max-number-of-k-sum-pairs
1833-find-the-highest-altitude
2502-sort-the-people
2727-number-of-senior-citizens

Hash Table

0036-valid-sudoku
0049-group-anagrams
0128-longest-consecutive-sequence
0141-linked-list-cycle
0347-top-k-frequent-elements
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
1556-make-two-arrays-equal-by-reversing-subarrays
1741-sort-array-by-increasing-frequency
1798-max-number-of-k-sum-pairs
2502-sort-the-people

String

0049-group-anagrams
0058-length-of-last-word
0151-reverse-words-in-a-string
0392-is-subsequence
1341-split-a-string-in-balanced-strings
2470-removing-stars-from-a-string
2502-sort-the-people
2727-number-of-senior-citizens

Sorting

0049-group-anagrams
0347-top-k-frequent-elements
0948-sort-an-array
1333-sort-the-jumbled-numbers
1556-make-two-arrays-equal-by-reversing-subarrays
1741-sort-array-by-increasing-frequency
1798-max-number-of-k-sum-pairs
2502-sort-the-people

Divide and Conquer

0347-top-k-frequent-elements
0948-sort-an-array

Heap (Priority Queue)

0347-top-k-frequent-elements
0948-sort-an-array

Bucket Sort

0347-top-k-frequent-elements
0948-sort-an-array

Counting

0347-top-k-frequent-elements
1341-split-a-string-in-balanced-strings

Quickselect

0347-top-k-frequent-elements

Math

0150-evaluate-reverse-polish-notation
1329-minimum-cost-to-move-chips-to-the-same-position
1362-airplane-seat-assignment-probability

Tree

0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0226-invert-binary-tree
0572-subtree-of-another-tree
0783-search-in-a-binary-search-tree
0904-leaf-similar-trees
1544-count-good-nodes-in-binary-tree
2493-reverse-odd-levels-of-binary-tree

Depth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0226-invert-binary-tree
0572-subtree-of-another-tree
0904-leaf-similar-trees
1544-count-good-nodes-in-binary-tree
2493-reverse-odd-levels-of-binary-tree

Breadth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
1544-count-good-nodes-in-binary-tree
2493-reverse-odd-levels-of-binary-tree

Binary Tree

0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0226-invert-binary-tree
0572-subtree-of-another-tree
0783-search-in-a-binary-search-tree
0904-leaf-similar-trees
1544-count-good-nodes-in-binary-tree
2493-reverse-odd-levels-of-binary-tree

Matrix

0036-valid-sudoku
1496-lucky-numbers-in-a-matrix

Greedy

0011-container-with-most-water
0605-can-place-flowers
1329-minimum-cost-to-move-chips-to-the-same-position
1341-split-a-string-in-balanced-strings

Prefix Sum

0238-product-of-array-except-self
1833-find-the-highest-altitude

Union Find

0128-longest-consecutive-sequence

Merge Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Dynamic Programming

0392-is-subsequence
1362-airplane-seat-assignment-probability

Binary Search Tree

0783-search-in-a-binary-search-tree

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Simulation

2470-removing-stars-from-a-string

Backtracking

0046-permutations

Brainteaser

1362-airplane-seat-assignment-probability

Probability and Statistics

1362-airplane-seat-assignment-probability

About

My LeetCode Solutions


Languages

Language:Python 100.0%