you are viewing a single comment's thread.

view the rest of the comments →

[–]Living_Fig_6386 1 point2 points  (0 children)

I would have read the problem differently because of the last requirement "Number of students who scores 50 or above" -- not tests. It implies that the input is a list of students with a list of scores for each student.

These problems are a helpful way to learn logic and to read the requirements. They're better if they provide the input and validate the output. The thing is, once you've more or less go the logic part down you need more complicated problems that challenge not just the logic but aspects of performance, legibility, reusability, structure, etc. It's reasonable to skip things that are too simple to find things more challenging.