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.
Not sure if you eventually figured it out, but I tried the same approach and was having issues too. What fixed it for me was replacing "... in range(s,t)" with greater than or equal to & less than or equal to statements. It must be something specific with in or range that is causing issues.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
Not sure if you eventually figured it out, but I tried the same approach and was having issues too. What fixed it for me was replacing "... in range(s,t)" with greater than or equal to & less than or equal to statements. It must be something specific with in or range that is causing issues.