Skip to content

Commit

Permalink
delete comment (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
rask24 committed Feb 14, 2024
1 parent 2fc4ec9 commit b0a1f8f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/sort/large_sort/large_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: reasuke <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/22 16:55:10 by reasuke #+# #+# */
/* Updated: 2024/02/14 16:41:29 by reasuke ### ########.fr */
/* Updated: 2024/02/14 17:13:52 by reasuke ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -15,21 +15,14 @@
#include "sort.h"
#include "stack_operations.h"

// 0...200: 1
// 200...300: 3
// 300...400: 5
// 400...500: 7
// 450...550: 5
// 550...650: 6

static int _calc_number_of_segments(int size_a)
{
int a;

if (size_a <= 200)
return (1);
a = (size_a - 200) / 100;
return (2 * a + 3);
return (a + 2);
}

static void _sort_stack_a(t_stack **p_a, int num_a)
Expand Down

0 comments on commit b0a1f8f

Please sign in to comment.