mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
Change simple algo for adaptive requierement to 02 max + norminette
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "medium_headers.h"
|
||||
#include "push_swap.h"
|
||||
#include <stdio.h>
|
||||
|
||||
static int is_border_a(int value, t_stacks *stacks)
|
||||
{
|
||||
t_stack *tmp;
|
||||
@@ -22,7 +22,7 @@ static int is_border_a(int value, t_stacks *stacks)
|
||||
tmp = assign_stack(stacks, 'a');
|
||||
if ((value < tmp->index && check_order(tmp))
|
||||
|| (value > tmp->index && value > tmp->previous->index
|
||||
&& check_order(stacks->a)))
|
||||
&& check_order(stacks->a)))
|
||||
return (1);
|
||||
return (0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user