ribana-b/push_swap

Number checking not working properly

SrVariable opened this issue · 0 comments

If push_swap is executed with 000000000002 1 for example, it won't work due to how MAX/MIN INT check is done. It is using the length of the string to check whether it is on the boundaries or not, but the case where there are 0's at the beginning is not contemplated.