You are viewing a single comment's thread. Return to all comments →
By the definition of the problem, x1 is always less than x2 - so no need to test for that in your first if statement. Otherwise it looks good.
Seems like cookies are disabled on this browser, please enable them to open this website
Number Line Jumps
You are viewing a single comment's thread. Return to all comments →
By the definition of the problem, x1 is always less than x2 - so no need to test for that in your first if statement. Otherwise it looks good.