I was asked a following interview question of late, "You have 8 GB RAM and 16 GB file " how do you perform search on this file ?
Then i asked what type of file ,what language ?, he said any format,any language only to increase my confusion !
After a while he asked me to assume it is a text file !
Answer as per knowledge that I shared with the interviewer : EDIT : Use buffered streams with custom size and sort the data on the buffer to apply binary search on the buffered streams (if it's relevant) !
I believe interviewer was not convinced !!
I understand this question is vague !
I want to know what exactly was the point i missed to ask the interviewer , what is the probable solution ? Any guidance or advice on this is appreciated !
Thanks !