You are viewing a single comment's thread. Return to all comments →
You don't need to handle if (n<2) as n is bounded by 1 and using integer division then 1/2->0 as it's truncated when implicit casting.
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Handshake
You are viewing a single comment's thread. Return to all comments →
You don't need to handle if (n<2) as n is bounded by 1 and using integer division then 1/2->0 as it's truncated when implicit casting.