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...