push et swap fonctionnent
This commit is contained in:
14
srcs/algo.c
14
srcs/algo.c
@@ -1,11 +1,17 @@
|
||||
|
||||
#include "push_swap.h"
|
||||
|
||||
void hugo_sort(t_stack **a, t_stack **b, t_list **solution)
|
||||
void hugo_sort(t_stack **a, t_stack **b, t_list *solution)
|
||||
{
|
||||
(void)b;
|
||||
sa(a, solution);
|
||||
pb(b, a, solution);
|
||||
sb(a, solution);
|
||||
|
||||
sa(a, &solution);
|
||||
pb(b, a, &solution);
|
||||
pb(b, a, &solution);
|
||||
pb(b, a, &solution);
|
||||
pa(a, b, &solution);
|
||||
sa(a, &solution);
|
||||
sb(b, &solution);
|
||||
sa(a, &solution);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user