摘要:
1.Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ... 阅读全文
posted @ 2015-04-11 15:58
微微程序媛
阅读(149)
评论(0)
推荐(0)
摘要:
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[−2,1,−3,4,−1,2,1,... 阅读全文
posted @ 2015-04-11 11:43
微微程序媛
阅读(245)
评论(0)
推荐(0)
摘要:
public class Solution { public static double Power(double x ,int n){ if(n==0){ return 1; } double v=Power(x,n/2); ... 阅读全文
posted @ 2015-04-11 07:11
微微程序媛
阅读(218)
评论(0)
推荐(0)
摘要:
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?solution:找规律 int[i]... 阅读全文
posted @ 2015-04-11 05:27
微微程序媛
阅读(111)
评论(0)
推荐(0)

浙公网安备 33010602011771号