What's wrong with my C code?


  • 0
    F

    Submission Details shows that :
    Input: [1,2] 0
    Output: [2,1]
    Expected: [1,2]
    but according to the description the right answer is [2,1],Please clarify this question.


  • 0
    D

    Rotate an array of n elements to the right by k steps. if k==0, rotate 0 steps.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.