You are viewing a single comment's thread. Return to all comments →
Don't use a string to manipulate the data. Use the % and / operators to reverse the input.
Also you don't need to use the absolute value function when checking the difference's equality to 0 since 0 does not have a sign.
edit:
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Days at the Movies
You are viewing a single comment's thread. Return to all comments →
Don't use a string to manipulate the data. Use the % and / operators to reverse the input.
Also you don't need to use the absolute value function when checking the difference's equality to 0 since 0 does not have a sign.
edit: