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.
Hi All. After sleeping on it & debugging my I/O code, I prepended each result to a List, but forgot to call .reverse before printing! So my output was in the wrong order.
For anyone looking for "what is a valid function", this is a good reference:
https://en.wikipedia.org/wiki/Function_(mathematics)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Functions or Not?
You are viewing a single comment's thread. Return to all comments →
Hi All. After sleeping on it & debugging my I/O code, I prepended each result to a List, but forgot to call
.reverse
before printing! So my output was in the wrong order. For anyone looking for "what is a valid function", this is a good reference: https://en.wikipedia.org/wiki/Function_(mathematics)