Technical Interview My first solution was to hash the frequency of the entire array in array h and then print hk. 이 경우 시간 및 공간 복잡성이 모두 켜져 있습니다. The interviewer asked me to improve the space complexity.