We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Agreed, I'm not sure this should be labelled 'Easy', at least. Had to ensure that I split the string appropriately, convert them to formatted lists, and then use a dictionary to store the information efficiently.
And throughout, you have to ensure you're utilizing 'N' properly, and accounting for the fact that there might be more than 3 grades for a given student.
Calculating the mean was the only real 'Easy' part.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Finding the percentage
You are viewing a single comment's thread. Return to all comments →
Agreed, I'm not sure this should be labelled 'Easy', at least. Had to ensure that I split the string appropriately, convert them to formatted lists, and then use a dictionary to store the information efficiently.
And throughout, you have to ensure you're utilizing 'N' properly, and accounting for the fact that there might be more than 3 grades for a given student.
Calculating the mean was the only real 'Easy' part.