Time Complexity: O(n+k) //k is the total numbers and k is total unique numbers Space Complexity: O(k) //we have to intialize an array to the number of unique numbers ...