Problem Link:
Setter: Misha Chorniy
Tester: Ke Bi
Editorialist: Rashad Mammadov
Difficulty:
CAKEWALK
Prerequisites:
Loops, Conditional statements
Problem:
You are given the results of each contestant for 5 problems, either 1 or 0 - which means the contestant has solved it or not correspondingly, and wants you to find his/her level(“Beginner”, “Junior Developer”, “Middle Developer”,“Senior Developer”,“Hacker”, or Jeff Dean).
Explanation:
It is just a straight-forward problem. The solution is to sum the results for each row and output the corresponding skill given in the problem statement using " if " conditions. Preferably you may use " switch - case " to make your code seem elegant.
Time Complexity:
O(N)
Space Complexity:
O(N) or O(1)