Grading student hackerrank solution with explanation, first lets see what the problem is :
Grading Students Hacker Rank Problem:
Grading students Hackerrank solution Python:
Grading students Hackerrank solution C#:
Explanation of Code:
- First, we need to find whether grade is less greater than 38 or not.
- Then we need to find if the number on diving by 5 gives a number less than 3 or not using given line 5 – grade[i] % 5 and made it equal to some temp variable.
- If both conditions satisfied then add the temp variable to grades else return the original grades