1. Write a parser which takes java file as input and give count of uncommented lines as output. I wrote code with regular expressions, but I think he was expecting some state transition sort of approach.
2. Given a large file in which one no. occurs in strict majority(>50%). Find that no.
1. Mostly discussed written round questions.
2. Secondary sort with map reduce.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.