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.
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.
Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target.
Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace character.
You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the...
A permutation of an array of integers is an arrangement of its members into a sequence or linear order.
Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.
Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.
Given an array of integers nums and an integer k, return the number of contiguous subarrays where the product of all the elements in the subarray is strictly less than k.
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers.