上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: Given an absolute path for a file (Unix-style), simplify it. Or in other words, convert it to the canonical path.In a UNIX-style file system, a period 阅读全文
posted @ 2019-04-25 21:17 GoodRnne 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Given two binary strings, return their sum (also a binary string).The input strings are both non-empty and contains only characters 1 or 0. Example 1: 阅读全文
posted @ 2019-04-25 20:59 GoodRnne 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty array of digits representing a non-negative integer, plus one to the integer.The digits are stored such that the most significant di 阅读全文
posted @ 2019-04-24 17:08 GoodRnne 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2019-04-24 17:01 GoodRnne 阅读(342) 评论(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 any po 阅读全文
posted @ 2019-04-22 14:23 GoodRnne 阅读(299) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Example 2:Input: 0->1->2->NULL, k = 4 Output: 2->0- 阅读全文
posted @ 2019-04-22 11:51 GoodRnne 阅读(201) 评论(0) 推荐(0) 编辑
摘要: The set [1,2,3,...,n] contains a total of n! unique permutations.By listing and labeling all of the permutations in order, we get the following sequen 阅读全文
posted @ 2019-04-21 19:07 GoodRnne 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word 阅读全文
posted @ 2019-04-21 18:33 GoodRnne 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 思路 这道题我当时看到之后想的的办法就是将nums中第一个添加进结果集中,然后从nums的第一个开始遍历和和res结果集中进 阅读全文
posted @ 2019-04-20 13:21 GoodRnne 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: 阅读全文
posted @ 2019-04-20 13:05 GoodRnne 阅读(89) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页