Patterns
two pointers

42 problems

#

Title

Acceptance

Difficulty

1

Reverse Vowels (easy)
string
two pointers
array
+2 more

44.2%

easy

2

string
two pointers

22.5%

easy

3

array
string
two pointers
+3 more

27.8%

easy

4

two pointers
array
binary search
+1 more

42.4%

easy

5

array
two pointers
sorting
+3 more

42.5%

easy

6

array
sorting
two pointers
+3 more

35.5%

easy

7

array
sorting
two pointers

22.2%

Med.

8

sorting
two pointers
array
+1 more

22.6%

Med.

9

two pointers
sorting
array
+1 more

29.5%

Med.

10

17.3%

Med.

11

16.8%

Med.

12

12.7%

Med.

13

linked list
fast and slow pointers
two pointers
+3 more

59.9%

easy

14

56.3%

Med.

15

array
graph algorithms
recursion
+1 more

17.2%

hard

16

sliding window
array
two pointers

19.7%

easy

17

sliding window
array
two pointers
+1 more

39.4%

Med.

18

48.7%

hard

19

string
hash map
two pointers
+2 more

23.2%

hard

20

29.0%

hard

21

merge intervals
two pointers
array

48.0%

Med.

22

array
sorting
two pointers
+2 more

49.1%

easy

23

array
stack
two pointers
+3 more

31.5%

easy

24

linked list
linked list reversal
recursion
+1 more

41.9%

easy

25

graph
breadth-first search
depth-first search
+2 more

42.8%

easy

26

sliding window
priority queue
array
+1 more

32.2%

hard

27

sorting
two pointers
greedy algorithm
+1 more

62.5%

hard

28

binary search
sorting
array
+1 more

26.6%

Med.

29

string
recursion
two pointers
+1 more

33.1%

easy

30

21.8%

Med.

31

string
trie
sorting
+3 more

36.8%

Med.

32

graph
breadth-first search
depth-first search
+2 more

37.5%

Med.

33

sliding window
two pointers
array
+1 more

33.6%

Med.

34

prefix sum
array
two pointers
+1 more

42.7%

easy

35

prefix sum
hash map
sliding window
+1 more

56.6%

Med.

36

73.9%

Med.

37

hash map
two pointers
array
+1 more

65.9%

easy

38

array
two pointers
greedy algorithm
+1 more

51.2%

easy

39

stack
monotonic stack
array
+2 more

49.6%

Med.

40

array
prefix sum
two pointers

64.3%

Med.

41

two pointers
array
greedy algorithm
+1 more

64.2%

Med.

42

linked list
two pointers
recursion
+1 more

30.1%

Med.