Examples:
linked lists:
- https://leetcode.com/problems/merge-k-sorted-lists/ (resolved)
- https://leetcode.com/problems/linked-list-cycle/ (resolved)
- https://leetcode.com/problems/add-two-numbers/ (resolved)
- https://leetcode.com/problems/reverse-linked-list/ (resolved)
binary search:
- https://leetcode.com/problems/binary-search/ (resolved)
- https://leetcode.com/problems/guess-number-higher-or-lower/ (resolved)
- https://leetcode.com/problems/search-a-2d-matrix/ (resolved)
- https://leetcode.com/problems/search-in-rotated-sorted-array/ (resolved)
- https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/ (resolved)
- https://leetcode.com/problems/search-in-rotated-sorted-array-ii/ (resolved)
hash table:
- https://leetcode.com/problems/single-number/ - O(1) по памяти (resolved)
- https://leetcode.com/problems/two-sum/ (resolved)
- https://leetcode.com/problems/4sum/ (resolved)
- https://leetcode.com/problems/group-anagrams/ (resolved)
- https://leetcode.com/problems/valid-anagram/ (resolved)
- https://leetcode.com/problems/find-all-anagrams-in-a-string/ (resolved)
queue/stack:
dfs/bfs:
- https://leetcode.com/problems/number-of-islands/ (resolved)
- https://leetcode.com/problems/remove-invalid-parentheses/ (resolved)
sort:
heap/hash:
- https://leetcode.com/problems/top-k-frequent-words/
- https://leetcode.com/problems/top-k-frequent-elements/
two pointers:
- https://leetcode.com/problems/container-with-most-water/
- https://leetcode.com/problems/partition-labels/
sliding window:
- https://leetcode.com/problems/sliding-window-median/
- https://leetcode.com/problems/sliding-window-maximum/
- https://leetcode.com/problems/longest-repeating-character-replacement/
tree:
- https://leetcode.com/problems/same-tree/
- https://leetcode.com/problems/symmetric-tree/
- https://leetcode.com/problems/balanced-binary-tree/
- https://leetcode.com/problems/path-sum-ii/
greedy problems: