finish the parsing solve the problem with 2 arg

This commit is contained in:
Maoake Teriierooiterai
2026-01-08 19:02:13 +01:00
parent 00e01ed1f9
commit 0df082065e
4 changed files with 18 additions and 3 deletions

View File

@@ -26,11 +26,18 @@ void medium(t_stacks *piles)
{
t_tab *buckets;
int range;
int len;
piles->algo = 2;
range = range_bucket(piles->a);
buckets = get_tabs(piles->a, range);
bucket_algo(piles, buckets, range);
len = stack_a_len(piles);
if (len == 2)
sort_two(piles);
else
{
range = range_bucket(piles->a);
buckets = get_tabs(piles->a, range);
bucket_algo(piles, buckets, range);
}
}
void complex(t_stacks *piles)