K Smallest In Unsorted Array
Clarification & Assumption:
Input & Output (signature):
i. input: int[] array, int k
ii. output: int[], k smallest in ascending order
For all the possible cases:
input not sorted
k >=0, k <= input.length
array not null
corner case: array == [], k == 0 → return empty array