- You are given 100 log files each of size 1GB. in a few minutes how would you search through the log file for error code 500.
Expected unix commands as answer
-
Top k largest elements : You are given a root directory and value k, the root directory has files and sub directories. Each file has one number on each line. Find the k largest elements from all the files in the root directory. (Not most frequent elements)
Gave a solution of parsing through sub directories in BFS style and adding elements to heap maintaing its size k
- Create a interfaces and classes for Deck of Cards
Comments (3)


