PUSH_SWAP

this code has a problem when we test "./push_swap 42".

need to fix first "if" phrase at the main.

it shouldn't run algorithm function.

other things, all works well.

i referred to two sites.

1 for 3 arguments, 5 arguments.

2 for 100 arguments, 500 arguments.

Good Luck!


This subject is from 42. This code is evaluated at 115.

Introduction The Push_swap project is a very simple and highly effective algorithm project: data will need to be sorted. You have at your disposal a set of int values, 2 stacks and a set of instructions to manipulate both stacks. Your goal ? Write a program in C called push_swap which calculates and displays on the standard output the smallest program using Push_swap instruction language that sorts the integer arguments received.