public class Solution { public int[] GetLeastNumbers_Solution(int [] arr, int k) { if(k < 1 || k > arr.length){ return arr; } int[] kHeap = new int[k]; for(int i = 0;i != k;i++){ heapInsert(kHeap, arr[i], i); } for(int...