Virtual Functions

  • + 6 comments

    Horribly posed problem. Seriously, HackerRank? The "geniuses" who write these things don't know how to give basic information.

    Look at the input format. It doesn't even tell us what the first input is! And the instructions don't even tell us that a 1 means professor and a 2 means student. I guess "This is left as an exercise to the student". Even though the given code handles that, it's too confusing.

    And the student class array of marks? Array of WHAT TYPE? We have to deduce what should be given!

    The biggest issue is: How do I read a line of a variable number of integers?? This was never covered and there is remarkly little useful information on the web to cover this scenario. I wasted sooo much time just on this issue!!

    Absolutely horrible.