← All tasks
Data Processing·MediumOURS
JSON Diet Data (Toptal round-4, redone)
The exact task type you faced at Toptal: read a JSON array of meals, then filter / group-by / top-N. Data in `daily-practice/day-01-json-diet/data/calories.json`. Code it in your Java starter (has Jackson). Timer ~40 min, no AI.
- Read and parse the JSON file.
- Find the meal with the highest protein consumed on 2022-11-01. Output: name.
- For each month, count users whose total calories > 30000. Output: "YYYY-MM: <count>".
- Find the 3 cheapest meals + their consumers. Output: "<name>, <price>, <user_id>".