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:
@@ -6,7 +6,7 @@
|
||||
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/12/08 14:18:06 by dgaillet #+# #+# */
|
||||
/* Updated: 2025/12/12 14:06:25 by dgaillet ### ########lyon.fr */
|
||||
/* Updated: 2025/12/14 16:55:24 by dgaillet ### ########lyon.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -62,6 +62,6 @@ void optimal_rotate(t_stacks *stacks, int i, int len, char stack);
|
||||
/*ALGORITHMS*/
|
||||
void bubble_alg(t_stacks *stacks);
|
||||
//void insertion(t_stacks *stacks, int a_len, int b_len);
|
||||
void insertion(t_stacks *stacks, int sorted, int len);
|
||||
void insertion(t_stacks *stacks, int len);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user