Tag: two-pointers
All the problems with the tag "two-pointers".
-
Leetcode 42 - Trapping Rain Water
Given an elevation map, compute how much water it can trap after raining.
-
LeetCode 125 - Valid Palindrome
Determine if a given string is a palindrome, considering only alphanumeric characters and ignoring cases.
-
Leetcode 167 - Two Sum II - Input Array Is Sorted
Given a sorted array, find two numbers such that they add up to a specific target number, and return their indices.
-
Leetcode 11 - Container With Most Water
Given an array of integers representing the height of vertical lines, find the maximum amount of water a container formed by these lines can store.
-
Leetcode 15 - 3Sum
Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. The solution set must not contain duplicate triplets.
-
Leetcode 567 - Permutation in String
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
-
Leetcode 167 - Two Sum II
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.