https://oj.leetcode.com/problems/rotate-list/
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
'풀어본 Algorithm 문제 정리' 카테고리의 다른 글
[OJ.leetcode] remove-nth-node-from-end-of-list (0) | 2014.07.15 |
---|---|
[OJ.leetcode] largest-rectangle-in-histogram (0) | 2014.07.14 |
[OJ.leetcode] best-time-to-buy-and-sell-stock (0) | 2014.07.08 |
[OJ.leetcode] single-number (0) | 2014.07.08 |
[OJ.leetcode] reverse-integer (1) | 2014.07.06 |