摘要:
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: You s 阅读全文
posted @ 2016-11-27 14:08
微微程序媛
阅读(169)
评论(0)
推荐(0)
摘要:
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example,Given 1->2 阅读全文
posted @ 2016-11-27 13:44
微微程序媛
阅读(138)
评论(0)
推荐(0)
摘要:
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice? For example,Given sorted array nums = [1,1,1,2,2,3], Your function sho 阅读全文
posted @ 2016-11-27 13:38
微微程序媛
阅读(95)
评论(0)
推荐(0)
摘要:
Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a 阅读全文
posted @ 2016-11-27 11:49
微微程序媛
阅读(265)
评论(0)
推荐(0)
摘要:
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up:Could you do this in-place? The idea was 阅读全文
posted @ 2016-11-27 11:11
微微程序媛
阅读(105)
评论(0)
推荐(0)
摘要:
Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a 阅读全文
posted @ 2016-11-27 08:00
微微程序媛
阅读(745)
评论(0)
推荐(0)
摘要:
Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c" click to show co 阅读全文
posted @ 2016-11-27 06:57
微微程序媛
阅读(248)
评论(0)
推荐(0)
摘要:
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num 阅读全文
posted @ 2016-11-27 05:43
微微程序媛
阅读(167)
评论(0)
推荐(0)

浙公网安备 33010602011771号