풀어본 Algorithm 문제 정리
[OJ.leetcode] rotate-list
아이디정하는일이가장힘들다
2014. 7. 10. 16:56
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.