Sort Big List Dates Problem Statement
Mary is an enthusiastic party-goer who struggles with remembering event dates. Help Mary by sorting a given list of event dates in an ascending order.
Example:
Input:
dates = [ [13,6,2007] , [2,6,2001] , [10,8,2019] , [1,6,2007] ]
Output:
dates = [ [2,6,2001] , [1,6,2007] , [13,6,2007] , [10,8,2019] ]
Explanation:
The list of dates is sorted in ascending order based on year, then month, and finally day.
Constraints:
1 <= T <= 10
1 <= N <= 106
1 <= dates[i][0] <= 31
1 <= dates[i][1] <= 12
2000 <= dates[i][2] <= 2099
- Time limit: 1 second
Be the first one to answer
Add answer anonymously...
Top Morgan Stanley Software Developer interview questions & answers
Popular interview questions of Software Developer
Top HR questions asked in Morgan Stanley Software Developer
>
Morgan Stanley Software Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app