Leet Code Triggers Flashcards

(12 cards)

1
Q

arrays / hashing

A

find pair
seen before
duplicates
frequency
count occurrences
first unique
group by

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

two pointers

A

sorted array
pair sum
palindrome
remove duplicates
partition
compare both ends

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

sliding window

A

substring
subarray
contiguous
longest
shortest
max/min window
at most k
exactly k

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

stack

A

next greater
next smaller
previous greater
histogram
temperature
stock span

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

heap / priority queues

A

top k
kth largest
kth smallest
stream
contiguously updating max/min
scheduling
merge sorted lists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

binary search

A

sorted
rotated sorted
search target
minimum feasible value
maximize minimum
minimize maximum
find first true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

linked list

A

reverse
remove nth
cycle
merge lists
reorder
in place
constant extra space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

trees

A

path
depth
level
traversal
ancestor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

graphs

A

dependencies
connectivity
shortest path
islands
scheduling
network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

intervals

A

meetings
overlapping times
ranges
scheduling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

backtracking

A

all subsets
combinations
choose k elements
reorder
all possible arrangements
every ordering
maze
path exists
word search
route generation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

dynamic programming

A

count ways
max/min path
choose or skip
subsequence
optimization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly