Given an input string (s) and a pattern (p), implement […]
Given a non-negative index k where k ≤ 33, return the k […]
Given a non-negative integer numRows, generate the firs […]
Given inorder and postorder traversal of a tree, constr […]
Given preorder and inorder traversal of a tree, constru […]
Given a collection of integers that might contain dupli […]
Given two sorted integer arrays nums1 and nums2, merge […]
Given a 2D binary matrix filled with 0’s and 1 […]
Given n non-negative integers representing the histogra […]
Suppose an array sorted in ascending order is rotated a […]
Given a 2D board and a word, find if the word exists in […]
Given a set of distinct integers, nums, return all poss […]
Given an array with n objects colored red, white or blu […]
Write an efficient algorithm that searches for a value […]
Given a m x n matrix, if an element is 0, set its entir […]