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.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Virtual Functions
You are viewing a single comment's thread. Return to all 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.