mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
fix some bugs
This commit is contained in:
@@ -109,7 +109,5 @@ void bucket_algo(t_stacks *piles, t_tab *preset, int range)
|
||||
}
|
||||
while (piles->b)
|
||||
pa(piles);
|
||||
print_all_stack(piles->a, piles->a, 'A');
|
||||
print_all_stack(piles->b, piles->b, 'B');
|
||||
return ;
|
||||
}
|
||||
|
||||
@@ -31,8 +31,6 @@ void push_range_to_b(t_stacks *piles, t_tab *one_preset, int range)
|
||||
sort_little_pile(piles);
|
||||
one_preset->nb_in--;
|
||||
}
|
||||
print_all_stack(piles->a, piles->a, 'A');
|
||||
print_all_stack(piles->b, piles->b, 'B');
|
||||
}
|
||||
|
||||
int sort_path(t_stacks *piles, int value)
|
||||
|
||||
Reference in New Issue
Block a user