You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The coding style is good and has consistent style. I would try to make use of comments to it is easier to understand what the program is doing.
You could replace many while loops with if-else statements. For example, these lines can most likely be changed to if/if-else statements and still have the same results. #L19, #L28, #L41, etc
It looks like if we simply change our logic from while(numOfTries > 1) to while(numOfTries > 0) on #L15 then we can remove all of this duplicated code.
This would be a good place to use an if statement - #L208-210
The text was updated successfully, but these errors were encountered:
while(numOfTries > 1)
towhile(numOfTries > 0)
on #L15 then we can remove all of this duplicated code.The text was updated successfully, but these errors were encountered: