Patterns
two pointers

39 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.5%

easy

5

array
sorting
two pointers
+1 more

42.6%

easy

6

array
sorting
two pointers
+3 more

35.6%

easy

7

sorting
two pointers
array
+3 more

22.3%

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.8%

Med.

13

linked list
two pointers
linked list reversal

59.9%

easy

14

28.9%

Med.

15

56.2%

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.1%

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

42.0%

easy

25

58.3%

hard

26

31.4%

hard

27

string
recursion
backtracking
+3 more

33.1%

easy

28

string
greedy algorithm
stack
+3 more

18.0%

Med.

29

21.8%

Med.

30

graph
graph algorithms
two pointers

45.6%

Med.

31

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

37.5%

Med.

32

sliding window
two pointers
array
+1 more

33.6%

Med.

33

prefix sum
array
two pointers
+1 more

42.7%

easy

34

hash map
two pointers
array
+1 more

65.9%

easy

35

array
two pointers
greedy algorithm
+1 more

51.3%

easy

36

stack
monotonic stack
array
+2 more

49.7%

Med.

37

array
prefix sum
two pointers

64.4%

Med.

38

two pointers
array
greedy algorithm
+1 more

64.3%

Med.

39

linked list
two pointers
recursion
+1 more

30.1%

Med.