Two Pointers (31)

These problems are related to two pointers.

Find the celebrity - January 17, 2023

Most profit assigning work - January 6, 2023

Take k of each character from left and right - December 25, 2022

Minimum number of moves to make palindrome - December 25, 2022

Longest mountain in array - December 20, 2022

Valid palindrome IV - December 10, 2022

Longest subarray of 1s after deleting one element - November 29, 2022

Boats to save people - November 22, 2022

Sort colors - November 22, 2022

Camelcase matching - November 21, 2022

Shortest subarray to be removed to make array sorted - November 16, 2022

Number of subarrays with bounded maximum - November 13, 2022

Number of subsequences that satisfy the given sum condition - November 7, 2022

Array with elements not equal to average of neighbors - November 7, 2022

Is subsequence - October 6, 2022

Length of last word - October 6, 2022

Move zeroes - October 2, 2022

Rotate array - October 2, 2022

Reverse string - October 1, 2022

Valid palindrome II - October 1, 2022

Merge sorted array - October 1, 2022

Push dominoes - September 27, 2022

Reverse string II - September 27, 2022

Bag of tokens - September 12, 2022

Build an array with stack operations - September 8, 2022

Compare version numbers - August 25, 2022

Trapping rain water - July 25, 2022

3Sum - July 23, 2022

Container with most water - July 15, 2022

Two sum II - input array is sorted - July 14, 2022

Valid palindrome - July 13, 2022