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.
i think its related to priority
x>=-128 && x<=127
we havent write it as
x>=-128 && x<=128-1
the reason is <= operator has greater priority then -(minus)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Datatypes
You are viewing a single comment's thread. Return to all comments →
i think its related to priority x>=-128 && x<=127 we havent write it as x>=-128 && x<=128-1 the reason is <= operator has greater priority then -(minus)