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.
Don't subtract by '0' without documented need like a string to int parser. If you want to assume that 'X'>'9', use assert('X'>'9') at the top of the function.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cavity Map
You are viewing a single comment's thread. Return to all comments →
Don't subtract by
'0'
without documented need like a string to int parser. If you want to assume that'X'>'9'
, useassert('X'>'9')
at the top of the function.