mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
more optimized insertion sort algorithm
This commit is contained in:
4
main.c
4
main.c
@@ -6,7 +6,7 @@
|
||||
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/12/08 18:32:35 by mteriier #+# #+# */
|
||||
/* Updated: 2025/12/12 14:06:41 by dgaillet ### ########lyon.fr */
|
||||
/* Updated: 2025/12/14 16:55:43 by dgaillet ### ########lyon.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -67,7 +67,7 @@ int main(int argc, char **argv)
|
||||
print_all_stack(stacks->b, stacks->b, 'B');
|
||||
*/
|
||||
//print_stacks(stacks, highest_stack_len(stacks), stacks->a, stacks->b);
|
||||
insertion(stacks, 0, stack_a_len(stacks));
|
||||
insertion(stacks, stack_a_len(stacks));
|
||||
//print_stacks(stacks, highest_stack_len(stacks), stacks->a, stacks->b);
|
||||
}
|
||||
stack_clear_all(stacks->a, stacks->a);
|
||||
|
||||
Reference in New Issue
Block a user