Practice
Resources
Contests
Online IDE
New
Free Mock
Events New Scaler
Practice
Improve your coding skills with our resources
Contests
Compete in popular contests with top coders
logo
Events
Attend free live masterclass hosted by top tech professionals
New
Scaler
Explore Offerings by SCALER

Max registrations they asked?

Problem Description

You're given a record of students with their registration dates from 01/01/2011 to 01/05/2021. You're also given with the marks scored by each of the students in Physics, Chemistry, and Mathematics. You need to find out the month that observed the maximum registrations. Then return the average marks scored in each subject. In case of a tie, select the month that comes later.

Input Format
Total five lines, each element in a line is space-separated. First line contains the Registration dates, followed by Registration IDs, and marks scores in Physics, Chemistry and Mathematics respectively in the next lines. You need to take STDIN and make use of Pandas library to return the answer.

Output Format
Output will be one single line containing the name of the month in abbreviations followed by the number of registrations and average marks in each subjects.

Sample Input
2015-12-06 2011-12-27 2015-09-07 2012-12-21 2020-02-13 2015-06-09 2013-03-21 2012-09-22 2013-06-19 2016-03-05 2017-08-27 2012-06-24 2018-11-20 2018-05-24 2019-08-17 2018-08-22 2021-02-07 2016-09-01 2015-03-11 2011-06-30 2019-11-15 2016-11-30 2019-05-19 2012-03-26 2020-08-11 2014-09-12 2014-12-11 2013-12-16 2017-02-28 2011-04-01 2011-01-01 2017-11-25 2014-03-16 2014-06-14 2013-09-17 2020-05-13 2018-02-23 2019-02-18 2011-09-28 2016-06-03 2020-11-09 2017-05-29

498 721 375 464 813 853 918 422 380 403 445 665 43 281 730 39 63 560 56 901 802 3 247 863 223 510 89 813 940 800 292 289 429 241 745 796 529 9 909 495 373 397

22 45 1 65 22 17 12 51 37 40 36 58 0 53 33 13 39 53 18 46 68 30 37 56 3 63 40 18 40 25 36 12 39 8 32 69 21 43 10 9 31 56

52 56 32 50 24 61 17 0 28 39 56 33 19 10 38 14 41 7 59 1 50 8 6 10 20 19 68 46 13 1 54 2 40 66 14 39 6 51 23 20 11 68

63 37 68 62 43 42 56 36 50 7 20 21 44 55 10 4 18 24 27 67 59 56 17 56 45 66 21 10 27 39 64 32 8 3 1 8 1 50 33 19 6 41

Sample Output
SEP 6 35.0 15.83 38.0

Notes

  • Round up to 2 decimal points.
  • Refer to 3-letter abbreviations for each month, i.e. JAN for January, FEB for February, and so on.



Start solving Max registrations they asked? on Interview Code Editor
Hints
  • Hint 1

Discussion


Loading...
Click here to start solving coding interview questions
Free Mock Assessment
Fill up the details for personalised experience.
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Graduation Year *
Graduation Year *
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
*Enter the expected year of graduation if you're student
Current Employer
Company Name
College you graduated from
College/University Name
Job Title
Job Title
Engineering Leadership
Software Development Engineer (Backend)
Software Development Engineer (Frontend)
Software Development Engineer (Full Stack)
Data Scientist
Android Engineer
iOS Engineer
Devops Engineer
Support Engineer
Research Engineer
Engineering Intern
QA Engineer
Co-founder
SDET
Product Manager
Product Designer
Backend Architect
Program Manager
Release Engineer
Security Leadership
Database Administrator
Data Analyst
Data Engineer
Non Coder
Other
Please verify your phone number
Edit
Resend OTP
By clicking on Start Test, I agree to be contacted by Scaler in the future.
Already have an account? Log in
Free Mock Assessment
Instructions from Interviewbit
Start Test