shubham
BAN USER
Comments (3)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
To read you have to go through the file at least once till the word is not found.
So Let's start reading the file line by line. Maintain a queue of size k. Just Keep popping from the queue and keep inserting into queue till the word has reached.
Once the word is found just print the content of queue followed by the word.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
}
- shubham August 10, 2019