Tag:Clever

  • 61. Rotating list

    Time:2020-3-21

    Given a list, rotate the list, and move each node of the list to the right by K positions, where k is a non negative number. Example 1: Input: 1 – > 2 – > 3 – > 4 – > 5 – > null, k = 2Output: 4 – > 5 – > 1 […]