2015年1月18日

摘要: 题目:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?代码:oj测试通过Runtime... 阅读全文
posted @ 2015-01-18 23:10 承续缘 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onl... 阅读全文
posted @ 2015-01-18 21:22 承续缘 阅读(325) 评论(0) 推荐(0) 编辑

导航