Problem Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?...
题目 Given a string S and a string T, find the minimum window in S which will contain all...
题目 Given an array with n objects colored red, white or blue, sort them so that objects ...
题目 Write an efficient algorithm that searches for a value in an m x n matrix. This matr...
题目 Given a mxn matrix, if an element is 0, set its entire row and column to 0. Do it in...
题目 Given two words word1 and word2, find the minimum number of steps required to conver...
题目 Given a triangle, find the minimum path sum from top to bottom. Each step you may mo...
题目 Given an absolute path for a file (Unix-style), simplify it.For example,path = "/hom...
题目 You are climbing a stair case. It takes n steps to reach to the top. Each time you c...
题目 Implement int sqrt(int x). Compute and return the square root of x. 分析 主要思想很简单,就用二分法...
题目 Given an array of words and a length L, format the text such that each line has exac...
题目 Given two binary strings, return their sum (also a binary string). For example,a = "...
题目 Given a non-negative integer represented as a non-empty array of digits, plus one to...
题目 Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc"...
题目 Given a m x n grid filled with non-negative numbers, find a path from top left to bo...
题目 Follow up for "Unique Paths": Now consider if some obstacles are added to the grids....
题目 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the dia...
题目 Given a list, rotate the list to the right by k places, where k is non-negative. For...