摘要:
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which 阅读全文
posted @ 2019-01-31 13:59
Schwifty
阅读(283)
评论(0)
推荐(0)
摘要:
Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Example 2: 另一种迭代,更好懂。cur一直等于prev的next,用prev来判断后面 阅读全文
posted @ 2019-01-31 13:37
Schwifty
阅读(161)
评论(0)
推荐(0)
摘要:
Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1, 阅读全文
posted @ 2019-01-31 13:03
Schwifty
阅读(172)
评论(0)
推荐(0)

浙公网安备 33010602011771号