摘要: 题目:Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.... 阅读全文
posted @ 2015-10-25 09:21 JSRGFJZ6 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spir... 阅读全文
posted @ 2015-10-25 09:15 JSRGFJZ6 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array S of n integers, find three integers in S such that the sum is closest to a give... 阅读全文
posted @ 2015-10-25 09:10 JSRGFJZ6 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a sorted array and a target value, return the index if the target is found. If not, retur... 阅读全文
posted @ 2015-10-25 09:08 JSRGFJZ6 阅读(98) 评论(0) 推荐(0) 编辑