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.
This, to me, is what places like this should be all about - clear code which works, but also which points out features that others (like me) may not know about - the index method is really useful, and I'd not seen it before. My code did something similar, but used more code to do the same thing. Thanks for posting it and the comment.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Migratory Birds
You are viewing a single comment's thread. Return to all comments →
This, to me, is what places like this should be all about - clear code which works, but also which points out features that others (like me) may not know about - the index method is really useful, and I'd not seen it before. My code did something similar, but used more code to do the same thing. Thanks for posting it and the comment.