摘要: 【题目】 Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 【题意】 给出一个string,返回符合要求的IP地址的集 阅读全文
posted @ 2019-01-25 00:09 xxxinn 阅读(93) 评论(0) 推荐(0)
摘要: 【题目】 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 阅读全文
posted @ 2019-01-24 23:31 xxxinn 阅读(106) 评论(0) 推荐(0)
摘要: 【题目】 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 阅读全文
posted @ 2019-01-24 00:31 xxxinn 阅读(98) 评论(0) 推荐(0)
摘要: 【题目】 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[ 阅读全文
posted @ 2019-01-23 18:23 xxxinn 阅读(132) 评论(0) 推荐(0)
摘要: 【题目】 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  阅读全文
posted @ 2019-01-23 17:57 xxxinn 阅读(121) 评论(0) 推荐(0)
摘要: 【题目】 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 阅读全文
posted @ 2019-01-23 17:47 xxxinn 阅读(146) 评论(0) 推荐(0)
摘要: 【题目】 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 阅读全文
posted @ 2019-01-23 17:35 xxxinn 阅读(148) 评论(0) 推荐(0)