摘要:
【题目】 Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 【题意】 给出一个string,返回符合要求的IP地址的集 阅读全文
摘要:
【题目】 In a array A of size 2N, there are N+1unique elements, and exactly one of these elements is repeated N times. Return the element repeated N times 阅读全文
摘要:
【题目】 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at 阅读全文
摘要:
【题目】 An array is monotonic if it is either monotone increasing or monotone decreasing. An array A is monotone increasing if for all i <= j, A[i] <= A[ 阅读全文
摘要:
【题目】 Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever 阅读全文
摘要:
【题目】 Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You m 阅读全文
摘要:
【题目】 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed 阅读全文