#two-pointers

Read more stories on Hashnode

Articles with this tag

Problem Description Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn...

Problem Description The problem 3Sum is given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and...

Problem Description Leetcode problem Valid Palindrome asks you to determine if a given string is a valid palindrome or not. A palindrome is a word,...