mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
fix algo
This commit is contained in:
@@ -19,7 +19,6 @@ void simple(t_stacks *stacks)
|
||||
int len;
|
||||
|
||||
len = stack_a_len(stacks);
|
||||
stacks->algo = 1;
|
||||
insertion(stacks, len);
|
||||
}
|
||||
|
||||
@@ -29,7 +28,6 @@ void medium(t_stacks *stacks)
|
||||
int range;
|
||||
int len;
|
||||
|
||||
stacks->algo = 2;
|
||||
len = stack_a_len(stacks);
|
||||
if (len == 2)
|
||||
sort_two(stacks);
|
||||
@@ -45,7 +43,6 @@ void medium(t_stacks *stacks)
|
||||
|
||||
void complex(t_stacks *stacks)
|
||||
{
|
||||
stacks->algo = 3;
|
||||
radix(stacks);
|
||||
}
|
||||
|
||||
@@ -55,6 +52,7 @@ void adaptive(t_stacks *stacks, char **tab)
|
||||
float disorder;
|
||||
|
||||
i = 0;
|
||||
stacks->algo = 4;
|
||||
while (!ft_isdigit(tab[i][0]) && tab[i])
|
||||
i++;
|
||||
disorder = stacks->disorder;
|
||||
|
||||
Reference in New Issue
Block a user