Why can not accept these code?


  • 0
    S

    var rotate = function(nums, k) {
    nums = nums.slice(nums.length - k, nums.length).concat(nums.slice(0, nums.length - k));
    };


Log in to reply
 

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