Problem library

Two Pointers

All problems that are about two pointers.

31 / 31 problems
Problem Solved
Find the celebrity
two-pointers
Jan 17, 2023
Most profit assigning work
greedy two-pointers
Jan 6, 2023
Minimum number of moves to make palindrome
two-pointers
Dec 25, 2022
Take k of each character from left and right
array-and-hashmap two-pointers
Dec 25, 2022
Longest mountain in array
two-pointers
Dec 20, 2022
Valid palindrome IV
array-and-hashmap two-pointers
Dec 10, 2022
Longest subarray of 1s after deleting one element
two-pointers
Nov 29, 2022
Boats to save people
two-pointers
Nov 22, 2022
Sort colors
two-pointers array-and-hashmap
Nov 22, 2022
Camelcase matching
two-pointers queue
Nov 21, 2022
Shortest subarray to be removed to make array sorted
two-pointers
Nov 16, 2022
Number of subarrays with bounded maximum
two-pointers
Nov 13, 2022
Array with elements not equal to average of neighbors
two-pointers
Nov 7, 2022
Number of subsequences that satisfy the given sum condition
two-pointers
Nov 7, 2022
Is subsequence
two-pointers
Oct 6, 2022
Length of last word
two-pointers
Oct 6, 2022
Move zeroes
two-pointers
Oct 2, 2022
Rotate array
two-pointers
Oct 2, 2022
Merge sorted array
two-pointers
Oct 1, 2022
Reverse string
two-pointers
Oct 1, 2022
Valid palindrome II
two-pointers
Oct 1, 2022
Push dominoes
two-pointers
Sep 27, 2022
Reverse string II
two-pointers
Sep 27, 2022
Bag of tokens
two-pointers
Sep 12, 2022
Build an array with stack operations
two-pointers
Sep 8, 2022
Compare version numbers
two-pointers
Aug 25, 2022
Trapping rain water
two-pointers
Jul 25, 2022
3Sum
two-pointers
Jul 23, 2022
Container with most water
two-pointers
Jul 15, 2022
Two sum II - input array is sorted
two-pointers
Jul 14, 2022
Valid palindrome
two-pointers
Jul 13, 2022