摘要:
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?解题思路:将每个[i, j]对应旋转对... 阅读全文
posted @ 2015-11-13 13:08
茜茜的技术空间
阅读(232)
评论(0)
推荐(0)
摘要:
According to theWikipedia's article: "TheGame of Life, also known simply asLife, is a cellular automaton devised by the British mathematician John Hor... 阅读全文
posted @ 2015-11-13 04:52
茜茜的技术空间
阅读(308)
评论(0)
推荐(0)
摘要:
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s... 阅读全文
posted @ 2015-11-13 03:48
茜茜的技术空间
阅读(209)
评论(0)
推荐(0)
摘要:
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Note:Do not modify the linked list.Follow up:Can you sol... 阅读全文
posted @ 2015-11-13 02:54
茜茜的技术空间
阅读(150)
评论(0)
推荐(0)
摘要:
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?解题思路:If we have 2 pointers - fast and slow... 阅读全文
posted @ 2015-11-13 02:16
茜茜的技术空间
阅读(136)
评论(0)
推荐(0)

浙公网安备 33010602011771号