摘要:
【题目】Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a functio... 阅读全文
posted @ 2015-04-21 15:04
hwu_harry
阅读(114)
评论(0)
推荐(0)
摘要:
【题目】Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3, You should return the following ... 阅读全文
posted @ 2015-04-21 14:30
hwu_harry
阅读(94)
评论(0)
推荐(0)
摘要:
【题目】Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, ... 阅读全文
posted @ 2015-04-21 14:16
hwu_harry
阅读(112)
评论(0)
推荐(0)