Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 169 Bytes

File metadata and controls

9 lines (6 loc) · 169 Bytes

Given a list, rotate the list to the right by k places, where k is non-negative.

Example:

Given 1->2->3->4->5->NULL and k = 2,

return 4->5->1->2->3->NULL.