2015年5月3日
摘要: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted fr... 阅读全文
posted @ 2015-05-03 20:58 黄瓜小肥皂 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Given an integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order.For example,Given n = 3,You should return the followin... 阅读全文
posted @ 2015-05-03 20:04 黄瓜小肥皂 阅读(137) 评论(0) 推荐(0) 编辑