Snapdeal Interview Question for Senior Software Development Engineers
- 0of 0 votes
A file is given which consists of 3 columns : date, city and temperature. For ex:- Priyanka December 01, 2015 in India
Date City Temperature
09-11-2015 Delhi 45
09-11-2015 Bangalore 24
09-11-2015 Ranchi 28
and it should support following type of queries:
1) What is the temperature of Bangalore on 9th November?
2) Give 5 hottest/coldest cities name on 9th November
You can preprocess the data and keep it in way that above query can be done in minimal time.
Which data structure will you use and how will you store the data?
| Report Duplicate | Flag | PURGE
Snapdeal Senior Software Development Engineer Network
Interview Type: In-Person
Open Chat in New Window