Merge branch 'medium_algo'

This commit is contained in:
Maoake Teriierooiterai
2026-01-06 13:53:48 +01:00
16 changed files with 830 additions and 38 deletions

View File

@@ -41,5 +41,3 @@ int is_highest(t_stack *stack, t_stack *node, int len)
}
return (1);
}

View File

@@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* compare_value.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/10 11:08:35 by mteriier #+# #+# */
/* Updated: 2025/12/10 11:28:58 by mteriier ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
int is_upper_compare(t_stack *t1, t_stack *t2)
{
if (t1->value > t2->value)
return (1);
return (0);
}