The question says:
You may assume k is always valid, ie: 1 ≤ k ≤ input array's size for non-empty array.
But I encountered such a Wrong Answer
Input:  0 Output:  Expected: 
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.