You are viewing a single comment's thread. Return to all comments →
Dude, this is a complete solution.
But agreed, the goal of the task should be to design a function that can say if there's a 1-to-1 relation between input and output values, not struggling with I/O.
The most challenging part, at least for me, is reading the input and transforming it to something usable and then mapping the results to "YES" or "NO" strings.
Yes. I quitted HackerRank challenges because I usually spend too much time adjusting input and output instead of solving the problem itself.