Amazon | Phone screen | Find k largest file
Anonymous User
1807

Find the kth largest file in the given a path of a directory.

For example, if the given path is /home/Documents , it can contains multiple files and directories inside. Say abc.txt, directory1, file2.txt...
You have to traverse each directory and return the kth largest file.

Comments (3)