mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
adding the flags
This commit is contained in:
42
flags/algorithms_sort.c
Normal file
42
flags/algorithms_sort.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* algorithms_sort.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/01/07 12:15:02 by mteriier #+# #+# */
|
||||
/* Updated: 2026/01/07 12:15:05 by mteriier ### ########lyon.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "push_swap.h"
|
||||
#include "medium_algo.h"
|
||||
|
||||
void simple(t_stacks *piles)
|
||||
{
|
||||
int len;
|
||||
|
||||
len = stack_a_len(piles);
|
||||
insertion(piles, len);
|
||||
}
|
||||
|
||||
void medium(t_stacks *piles)
|
||||
{
|
||||
t_tab *buckets;
|
||||
int range;
|
||||
|
||||
range = range_bucket(piles->a);
|
||||
buckets = get_tabs(piles->a, range);
|
||||
bucket_algo(piles, buckets, range);
|
||||
}
|
||||
|
||||
void complex(t_stacks *piles)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
void adaptive(t_stacks *piles)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
Reference in New Issue
Block a user