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.
checks for t>0 in the first iteration, By the time, loop runs for the next time, the value of t changes to t-1 before comparison. This is called Post auto decrement.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Angry Professor
You are viewing a single comment's thread. Return to all comments →
checks for t>0 in the first iteration, By the time, loop runs for the next time, the value of t changes to t-1 before comparison. This is called Post auto decrement.