上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 119 下一页
摘要: I: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the following matrix: Yo 阅读全文
posted @ 2018-09-13 00:03 鸭子船长 阅读(259) 评论(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 sequence 阅读全文
posted @ 2018-09-12 23:41 鸭子船长 阅读(154) 评论(0) 推荐(0)
摘要: Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given1->2->3->4->5->NULLand k =2,return4->5->1->2->3->NUL 阅读全文
posted @ 2018-09-12 23:16 鸭子船长 阅读(131) 评论(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 p 阅读全文
posted @ 2018-09-12 23:03 鸭子船长 阅读(178) 评论(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 @ 2018-09-12 21:54 鸭子船长 阅读(120) 评论(0) 推荐(0)
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 合并两个有序链表 阅读全文
posted @ 2018-09-11 23:48 鸭子船长 阅读(166) 评论(0) 推荐(0)
摘要: Given two binary strings, return their sum (also a binary string). For example,a ="11"b ="1"Return"100". 阅读全文
posted @ 2018-09-11 23:12 鸭子船长 阅读(451) 评论(0) 推荐(0)
摘要: Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true Note: It is intended for the 阅读全文
posted @ 2018-09-11 23:01 鸭子船长 阅读(610) 评论(0) 推荐(0)
摘要: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a 阅读全文
posted @ 2018-09-11 22:40 鸭子船长 阅读(152) 评论(0) 推荐(0)
摘要: Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You shou 阅读全文
posted @ 2018-09-11 22:29 鸭子船长 阅读(217) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 119 下一页