Patterns
two pointers

40 problems

#

Title

Acceptance

Difficulty

1

Reverse Vowels (easy)
string
array
two pointers

44.3%

easy

2

string
array
two pointers
+1 more

22.6%

easy

3

array
string
two pointers
+1 more

27.9%

easy

4

two pointers
array
binary search
+1 more

42.4%

easy

5

array
sorting
two pointers
+1 more

42.5%

easy

6

array
sorting
two pointers
+3 more

35.6%

easy

7

sorting
two pointers
array
+3 more

22.2%

Med.

8

sorting
two pointers
array
+1 more

22.7%

Med.

9

array
sorting
two pointers
+1 more

29.6%

Med.

10

17.3%

Med.

11

16.8%

Med.

12

12.7%

Med.

13

linked list
two pointers
linked list reversal

59.9%

easy

14

28.9%

Med.

15

56.3%

Med.

16

17.3%

hard

17

sliding window
array
two pointers
+2 more

19.7%

easy

18

sliding window
two pointers
array
+1 more

39.5%

Med.

19

sliding window
two pointers
array
+1 more

48.8%

hard

20

29.0%

hard

21

merge intervals
two pointers
array

48.0%

Med.

22

array
cyclic sort
two pointers
+1 more

67.2%

easy

23

linked list
linked list reversal
two pointers
+1 more

31.4%

Med.

24

linked list
linked list reversal
recursion
+1 more

41.9%

easy

25

0.0%

easy

26

58.3%

hard

27

31.4%

hard

28

string
recursion
backtracking
+3 more

33.1%

easy

29

string
greedy algorithm
stack
+3 more

18.0%

Med.

30

21.8%

Med.

31

graph
graph algorithms
two pointers

45.5%

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

hash map
two pointers
array
+1 more

65.9%

easy

36

array
two pointers
greedy algorithm
+1 more

51.3%

easy

37

stack
monotonic stack
array
+2 more

49.7%

Med.

38

array
prefix sum
two pointers

64.3%

Med.

39

two pointers
array
greedy algorithm
+1 more

64.3%

Med.

40

linked list
two pointers
recursion
+1 more

30.0%

Med.