[] 0 is a test case!

  • 0

    Even though it's said in the description that 'You may assume k is always valid, ie: 1 ≤ k ≤ input array's size for non-empty array.', [] 0 is a test case. Please consider this corner case.

Log in to reply

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