wit
push_swap
summary
tree
commits
,
162
branches
,
1
README
main
main
162
commits
04-05-2026
5fd4dd9
mogi
·
16:43 UTC+1
1
file changed,
+7
,
-5
fix(makefile): revert makefile rules
main
1 ref
main
8011551
Alex (Oleksii) Haponiuk
·
16:21 UTC+1
1
file changed,
+25
,
-25
style(algo): rename vars in sort_turk for readability
9b0f4c6
mogi
·
16:18 UTC+1
3
files changed,
+1
,
-1
docs(readme): change surjection image
aacb1a8
Alex (Oleksii) Haponiuk
·
16:15 UTC+1
1
file changed,
+1
,
-1
docs: change k-sort section
66a43c5
Alex (Oleksii) Haponiuk
·
16:10 UTC+1
2
files changed,
+4
,
-0
docs: add surjection image
776ed36
mogi
·
15:21 UTC+1
1
file changed,
+1
,
-1
docs(readme): fix footnote link
4dca6a0
mogi
·
15:18 UTC+1
1
file changed,
+8
,
-7
docs(readme): fix typos
890405b
Alex (Oleksii) Haponiuk
·
15:12 UTC+1
1
file changed,
+7
,
-6
docs: add footnote for insertion
f0e5cf1
mogi
·
15:10 UTC+1
1
file changed,
+3
,
-3
docs(readme): fix overhead byte count
bdc85fd
Alex (Oleksii) Haponiuk
·
15:02 UTC+1
1
file changed,
+8
,
-8
docs: move error handling to the bottom
62d6951
Alex (Oleksii) Haponiuk
·
13:17 UTC+1
2
files changed,
+8
,
-4
refactor(dispatch): use integer constants instead of float calculations
0b08b58
Alex (Oleksii) Haponiuk
·
12:52 UTC+1
2
files changed,
+5
,
-4
style(strategies): minor changes
ee7f8cc
Alex (Oleksii) Haponiuk
·
12:50 UTC+1
1
file changed,
+2
,
-2
fix(disorder): prevent int overflow for big n
a52d87f
Alex (Oleksii) Haponiuk
·
12:49 UTC+1
1
file changed,
+1
,
-3
refactor: remove redundant check
daccb4d
Alex (Oleksii) Haponiuk
·
12:48 UTC+1
2
files changed,
+4
,
-6
refactor(die): remove unused error code
d6cbd09
Alex (Oleksii) Haponiuk
·
12:39 UTC+1
1
file changed,
+13
,
-11
docs: add bench flag, fix grammar
4192fa3
Alex (Oleksii) Haponiuk
·
12:31 UTC+1
1
file changed,
+9
,
-9
docs: readme fixes
e8cd452
Alex (Oleksii) Haponiuk
·
02:21 UTC+1
1
file changed,
+43
,
-4
docs: add ToC
e0a77ad
Alex (Oleksii) Haponiuk
·
02:17 UTC+1
1
file changed,
+9
,
-2
docs: add references
a84e5db
Alex (Oleksii) Haponiuk
·
02:10 UTC+1
1
file changed,
+42
,
-14
docs: add algorithms section
8e482b2
mogi
·
00:30 UTC+1
1
file changed,
+2
,
-2
docs(readme): language
130fa3b
mogi
·
00:27 UTC+1
1
file changed,
+1
,
-1
docs(readme): language
2420cc5
mogi
·
00:23 UTC+1
1
file changed,
+18
,
-3
docs(readme): update instructions
e68760a
mogi
·
00:15 UTC+1
3
files changed,
+60
,
-1
docs(readme): add stack specifications
03-05-2026
ad68d30
Alex (Oleksii) Haponiuk
·
23:16 UTC+1
2
files changed,
+0
,
-310
test: remove the scripts
c55a2b1
Alex (Oleksii) Haponiuk
·
23:11 UTC+1
1
file changed,
+7
,
-23
build: change SRCS style
14859aa
Alex (Oleksii) Haponiuk
·
22:42 UTC+1
1
file changed,
+18
,
-18
build: fix makefile style
72d5c74
Alex (Oleksii) Haponiuk
·
22:35 UTC+1
1
file changed,
+5
,
-5
build: refactor and recipes
817fe68
Alex (Oleksii) Haponiuk
·
22:22 UTC+1
6
files changed,
+26
,
-12
docs(algo): add comments for each strategy
cd13268
Alex (Oleksii) Haponiuk
·
21:03 UTC+1
6
files changed,
+101
,
-101
refactor(algo): put shared functions into utils.c
aecaa8c
Alex (Oleksii) Haponiuk
·
17:59 UTC+1
1
file changed,
+36
,
-44
fix(algo): revert sort_chunk optimizations
c4ff7f2
mogi
·
17:45 UTC+1
1
file changed,
+1
,
-1
fix(makefile): add sort_small.c to SRCS
345b1a3
Alex (Oleksii) Haponiuk
·
17:43 UTC+1
5
files changed,
+41
,
-12
feat(algo): add sort_five
1e340c8
mogi
·
17:38 UTC+1
1
file changed,
+0
,
-0
chore: add stack push rotate image
b18db34
mogi
·
17:25 UTC+1
1
file changed,
+4
,
-4
style(disorder): change how a single input number is handled
a475daa
mogi
·
16:19 UTC+1
1
file changed,
+3
,
-1
fix(disorder): add check for total pairs 0
a223fb3
mogi
·
16:00 UTC+1
5
files changed,
+0
,
-0
chore: add asset pictures for documentation
5cc73de
mogi
·
16:00 UTC+1
1
file changed,
+20
,
-5
docs(readme): add how it works subsection to data structure
599c93b
Alex (Oleksii) Haponiuk
·
14:13 UTC+1
1
file changed,
+1
,
-6
test: output failed args into txt files
9d6eea9
mogi
·
14:02 UTC+1
2
files changed,
+18
,
-21
fix(parse_args): fix memory leak when invalid characters are passed
0a86f89
mogi
·
12:01 UTC+1
1
file changed,
+1
,
-0
docs(readme): add make rebonus rule to makefile table
f11788d
mogi
·
11:57 UTC+1
1
file changed,
+4
,
-1
build: add rebonus rule
4e87098
Alex (Oleksii) Haponiuk
·
10:22 UTC+1
1
file changed,
+60
,
-12
test: provide more info on fail
02-05-2026
fc41c48
mogi
·
16:54 UTC+1
1
file changed,
+5
,
-5
docs(readme): add complex algorithm
27e831a
mogi
·
16:28 UTC+1
2
files changed,
+5
,
-5
style: comments and order of variable declaration
9d36d0c
mogi
·
16:26 UTC+1
6
files changed,
+45
,
-67
refactor: change stack_rank to rank integers instead of ranking stack, and necessary changes
2406286
Alex (Oleksii) Haponiuk
·
13:33 UTC+1
8
files changed,
+22
,
-42
refactor(die): move die back into cli
ba60b5b
Alex (Oleksii) Haponiuk
·
09:31 UTC+1
5
files changed,
+145
,
-9
feat(algo): add turk sort
82d443d
mogi
·
00:22 UTC+1
1
file changed,
+1
,
-1
docs(readme): update text of data structure subsection
b97f7d3
mogi
·
00:17 UTC+1
1
file changed,
+9
,
-3
docs(readme): add TODO comments
3f11793
mogi
·
00:11 UTC+1
1
file changed,
+2
,
-0
docs(readme): add preface to data structure section
3c83d37
mogi
·
00:08 UTC+1
1
file changed,
+6
,
-6
docs(readme): rename circular stack to ring buffer
01-05-2026
226b3b0
mogi
·
22:27 UTC+1
1
file changed,
+1
,
-1
docs(readme): remove efficiency link
499e338
Alex (Oleksii) Haponiuk
·
21:55 UTC+1
1
file changed,
+44
,
-36
fix(algo): add optimizations for sort_chunk
ad1b07f
mogi
·
21:08 UTC+1
1
file changed,
+3
,
-6
docs(readme): add footnotes
5ff413e
mogi
·
20:38 UTC+1
1
file changed,
+1
,
-1
docs(readme): remove wikipedia links from overview and instead add a link to the apropriate resources section
14d8b0d
mogi
·
20:31 UTC+1
1
file changed,
+5
,
-0
docs(readme): add references subsections
04e62a3
mogi
·
20:30 UTC+1
1
file changed,
+4
,
-4
refactor(checker): rename internal function read_from_fd to read_op
6c748b0
mogi
·
20:19 UTC+1
1
file changed,
+1
,
-1
docs(readme): align complexity column to the center in disorder table
d270195
mogi
·
20:17 UTC+1
1
file changed,
+1
,
-1
docs(readme): fix link in flags table
57e28fa
mogi
·
20:15 UTC+1
1
file changed,
+6
,
-6
docs(readme): add complexity column in flags table
3f9f19f
mogi
·
20:08 UTC+1
1
file changed,
+4
,
-4
docs(readme): fix typos
f736de3
mogi
·
20:01 UTC+1
1
file changed,
+1
,
-1
docs(readme): language
349cce7
mogi
·
19:58 UTC+1
1
file changed,
+2
,
-1
docs(readme): add more info to overview
cc7874e
mogi
·
19:54 UTC+1
1
file changed,
+35
,
-35
docs(readme): move operations, flags and disorder to overview
2232a49
mogi
·
19:52 UTC+1
1
file changed,
+1
,
-2
docs(readme): remove useless line in overview
23c7752
mogi
·
19:50 UTC+1
1
file changed,
+56
,
-55
docs(readme): move instructions to the top
d58979d
mogi
·
19:47 UTC+1
1
file changed,
+34
,
-1
docs(readme): add operations, flags and disorder
33f12de
mogi
·
18:51 UTC+1
1
file changed,
+52
,
-7
docs(readme): add description
c85300f
Alex (Oleksii) Haponiuk
·
17:19 UTC+1
4
files changed,
+101
,
-4
feat(algo): add sort_chunk
acf5215
mogi
·
17:07 UTC+1
1
file changed,
+1
,
-1
docs(readme): update usage
b80677b
Alex (Oleksii) Haponiuk
·
16:42 UTC+1
1
file changed,
+1
,
-1
chore(libft): add ft_sqrt (update submodule)
247490a
mogi
·
15:14 UTC+1
1
file changed,
+12
,
-9
docs(readme): reorder Makefile and Usage subsections
c28f050
mogi
·
15:10 UTC+1
1
file changed,
+39
,
-0
docs(readme): add instructions
9732374
mogi
·
14:25 UTC+1
1
file changed,
+10
,
-0
docs(readme): add LLM usage subsection
0e70676
mogi
·
14:22 UTC+1
1
file changed,
+8
,
-0
docs(readme): add makefile command table
30-04-2026
abd1c0e
Alex (Oleksii) Haponiuk
·
21:18 UTC+1
6
files changed,
+23
,
-155
fix(algo): remove bad algos (selection, radix); also refactor insert
d4e8bd3
mogi
·
18:47 UTC+1
1
file changed,
+3
,
-2
fix(die): write to standard error
900656f
mogi
·
18:46 UTC+1
1
file changed,
+4
,
-2
fix(checker): add safety check
e67de51
mogi
·
17:16 UTC+1
2
files changed,
+1
,
-1
refactor: rename checker to checker_bonus
eca1341
mogi
·
17:04 UTC+1
1
file changed,
+1
,
-1
fix(makefile): change directory of die.c
ca3a86c
mogi
·
17:02 UTC+1
7
files changed,
+36
,
-16
feat: introduce error.h
02cc2a6
mogi
·
16:37 UTC+1
3
files changed,
+16
,
-31
refactor: cleanup stack
8913fa9
Alex (Oleksii) Haponiuk
·
15:42 UTC+1
2
files changed,
+267
,
-0
test: vibecode automated benchmarks
0d7009b
Alex (Oleksii) Haponiuk
·
15:11 UTC+1
4
files changed,
+111
,
-3
feat(algo): add low-disorder optimized insertion sort
0cb7949
Alex (Oleksii) Haponiuk
·
14:41 UTC+1
4
files changed,
+95
,
-8
feat(algo): add optimized radix sort
7c68bf9
Alex (Oleksii) Haponiuk
·
13:03 UTC+1
1
file changed,
+18
,
-40
fix(metrics): change bench according to the subject
56355d4
Alex (Oleksii) Haponiuk
·
10:03 UTC+1
4
files changed,
+88
,
-4
feat(metrics): add bench
29-04-2026
a1caac2
Alex (Oleksii) Haponiuk
·
23:44 UTC+1
1
file changed,
+1
,
-2
chore(checker): remove unused import
4b918ad
mogi
·
21:10 UTC+1
1
file changed,
+2
,
-2
fix(bonus): correctly include libft with angled brackets
953bcb5
mogi
·
20:50 UTC+1
6
files changed,
+119
,
-28
feat(bonus): add checker and necessary changes
29d77c4
Alex (Oleksii) Haponiuk
·
20:40 UTC+1
5
files changed,
+64
,
-71
fix(context): fix memory leaks
a80924b
Alex (Oleksii) Haponiuk
·
20:21 UTC+1
5
files changed,
+60
,
-40
feat(dispatch): adaptive chooses by disorder; also, introduce t_context
efd9c17
mogi
·
19:41 UTC+1
1
file changed,
+1
,
-1
chore(libft): merge get_next_line into libft
bdfc41f
Alex (Oleksii) Haponiuk
·
19:03 UTC+1
2
files changed,
+7
,
-5
fix: fix ops=0 typo and calloc to prevent garbage value
f225a84
mogi
·
18:19 UTC+1
4
files changed,
+25
,
-25
refactor: rename non meaningful variable n to capacity
c18f9f5
Alex (Oleksii) Haponiuk
·
18:18 UTC+1
3
files changed,
+66
,
-1
feat(metrics): add disorder formula
7049028
mogi
·
17:24 UTC+1
1
file changed,
+17
,
-0
feat(bonus): add initial checker.c file
1e05561
mogi
·
17:23 UTC+1
1
file changed,
+1
,
-1
fix(makefile): fix indentation in LIBFT line
05e11d4
mogi
·
17:20 UTC+1
1
file changed,
+1
,
-5
build: remove source specific paths and add old rule back
8690650
mogi
·
17:12 UTC+1
1
file changed,
+13
,
-13
style(makefile): add extra spaces after sources
88107a7
mogi
·
16:53 UTC+1
1
file changed,
+52
,
-19
build: remove makefile wildcards and add support to build checker and push_swap binaries separately
782b01c
Alex (Oleksii) Haponiuk
·
16:15 UTC+1
11
files changed,
+93
,
-77
feat: add t_ops struct to count operations individually
0197367
mogi
·
15:47 UTC+1
1
file changed,
+0
,
-0
chore: rename main.c to push_swap.c
724ebdb
Alex (Oleksii) Haponiuk
·
14:40 UTC+1
2
files changed,
+4
,
-4
style(cli): rename ERR_SYNTAX to ERR_ATOI for clarity
58f9120
Alex (Oleksii) Haponiuk
·
14:33 UTC+1
9
files changed,
+16
,
-45
chore(ft_printf): merge ft_printf into libft
e04a62d
Alex (Oleksii) Haponiuk
·
11:02 UTC+1
4
files changed,
+16
,
-16
style(strategies): rename sort_small to sort_three, and sort_simple to sort_selection
6823a83
Alex (Oleksii) Haponiuk
·
03:40 UTC+1
4
files changed,
+7
,
-52
refactor(atoi_strict): move to libft, rename to ft_atoi_safe
e8c5c6d
Alex (Oleksii) Haponiuk
·
03:25 UTC+1
5
files changed,
+14
,
-14
style(cli): rename ft_error to die
81c03de
Alex (Oleksii) Haponiuk
·
03:17 UTC+1
4
files changed,
+33
,
-13
refactor(dependencies): add types.h with forward declaration to decrease interdependency of headers
f9f55b7
Alex (Oleksii) Haponiuk
·
02:58 UTC+1
6
files changed,
+17
,
-16
refactor(dependencies): move t_strategy struct, change some includes
e638dcf
Alex (Oleksii) Haponiuk
·
02:41 UTC+1
1
file changed,
+38
,
-21
refactor(main): split into multiple functions
135ea5d
Alex (Oleksii) Haponiuk
·
02:37 UTC+1
1
file changed,
+9
,
-9
style(parse_args): add ft_error_free for norm compliance (under 25 lines)
b1ad722
Alex (Oleksii) Haponiuk
·
02:32 UTC+1
1
file changed,
+2
,
-2
fix(stack_free): remove unneeded check
60b450b
Alex (Oleksii) Haponiuk
·
02:17 UTC+1
1
file changed,
+17
,
-48
refactor(parse_args): simplify parse_args
b9fb607
Alex (Oleksii) Haponiuk
·
02:00 UTC+1
1
file changed,
+1
,
-1
chore(libft): update libft to the dev branch, to use ft_free_array
ee709d4
mogi
·
01:58 UTC+1
1
file changed,
+9
,
-1
fix(stack_ops): make rotate and rev rotate by writing their value on head so rotating after push keeps the correct perspective of buf
5585e8d
Alex (Oleksii) Haponiuk
·
00:30 UTC+1
3
files changed,
+12
,
-12
refactor(stack): stack_rank now returns error instead of calling ft_error
2abd511
Alex (Oleksii) Haponiuk
·
00:30 UTC+1
1
file changed,
+3
,
-1
style(stack): add empty check in stack_is_sorted for clarity
6dfa93f
mogi
·
00:26 UTC+1
1
file changed,
+4
,
-1
fix(stack_lifecycle): correctly point to NULL and reset head and size variables
28-04-2026
9980f3c
Alex (Oleksii) Haponiuk
·
22:22 UTC+1
3
files changed,
+62
,
-94
refactor(cli): refactor parse_args, merge has_dups into parse_args
db40410
Alex (Oleksii) Haponiuk
·
21:57 UTC+1
3
files changed,
+17
,
-17
style(cli): rename parse_int to atoi_strict
ddbd193
Alex (Oleksii) Haponiuk
·
21:51 UTC+1
6
files changed,
+9
,
-29
refactor(cli): merge parsing into cli
d5ed7b1
Alex (Oleksii) Haponiuk
·
21:47 UTC+1
1
file changed,
+1
,
-2
style(stack): remove nl for norm compliance
3c5a6b5
Alex (Oleksii) Haponiuk
·
21:24 UTC+1
6
files changed,
+61
,
-53
refactor: decouple stack.h from parsing.h
f6a9ae4
Alex (Oleksii) Haponiuk
·
20:54 UTC+1
18
files changed,
+26
,
-28
refactor: change local imports to use "" instead of <>
e2f54d8
mogi
·
19:23 UTC+1
1
file changed,
+10
,
-3
refactor(dispatch): introduce strategy-based dispatch structure
4b48ddd
mogi
·
17:51 UTC+1
1
file changed,
+17
,
-17
refactor(parse_args): change variable name from n to capacity
f0c7ff7
Alex (Oleksii) Haponiuk
·
15:16 UTC+1
8
files changed,
+87
,
-64
refactor(parsing): change error flow
94820f0
Alex (Oleksii) Haponiuk
·
15:13 UTC+1
1
file changed,
+6
,
-11
refactor(cli): remove str_eq in parse_flags
6ce58fe
Alex (Oleksii) Haponiuk
·
14:34 UTC+1
1
file changed,
+9
,
-3
refactor(strategies): make sort_small more readable
f546515
Alex (Oleksii) Haponiuk
·
14:17 UTC+1
13
files changed,
+68
,
-193
refactor(stack): merge into 3 files
0fc67ac
Alex (Oleksii) Haponiuk
·
13:52 UTC+1
1
file changed,
+2
,
-2
fix(parse_int): remove extra increment
dee528b
Alex (Oleksii) Haponiuk
·
13:19 UTC+1
5
files changed,
+142
,
-1
feat(strat): add a simple strategy
04c7d1b
Alex (Oleksii) Haponiuk
·
12:45 UTC+1
6
files changed,
+35
,
-7
feat(stack): add stack_is_sorted
69f1ae7
Alex (Oleksii) Haponiuk
·
12:06 UTC+1
1
file changed,
+49
,
-0
feat(parsing): add rank
86a22dc
Alex (Oleksii) Haponiuk
·
11:16 UTC+1
4
files changed,
+51
,
-93
refactor(parsing): remove dup_argv, and other refactors
80bfa17
Alex (Oleksii) Haponiuk
·
10:08 UTC+1
2
files changed,
+5
,
-8
refactor(stack_push_bottom): remove bounds check (impossible error since we know the size in parse_args)
24-04-2026
6bfde98
Alex (Oleksii) Haponiuk
·
10:23 UTC+1
5
files changed,
+173
,
-0
feat(ops): add operations wrappers
c422f69
Alex (Oleksii) Haponiuk
·
01:47 UTC+1
9
files changed,
+346
,
-4
feat(parsing): add flags and args parsing
274c628
Alex (Oleksii) Haponiuk
·
01:18 UTC+1
1
file changed,
+22
,
-0
feat(stack): add push bottom
23-04-2026
40b4b27
mogi
·
18:48 UTC+1
10
files changed,
+0
,
-0
chore: restructure stack dir
95c9998
mogi
·
16:01 UTC+1
1
file changed,
+20
,
-0
feat: add stack_rev_rotate
22-04-2026
c312a8e
mogi
·
20:21 UTC+1
1
file changed,
+20
,
-0
feat: add stack_rotate
58a9194
mogi
·
20:03 UTC+1
5
files changed,
+13
,
-13
fix: add const to functions that are read-only
f3506f2
mogi
·
19:53 UTC+1
1
file changed,
+4
,
-4
fix(stack.h): pass correct parameters in stack_push
09b3531
mogi
·
19:53 UTC+1
2
files changed,
+55
,
-0
feat: add stack_push and stack_swap
8eb42ab
mogi
·
19:41 UTC+1
6
files changed,
+0
,
-0
chore: restructure stack directory
cc9a45a
mogi
·
19:37 UTC+1
2
files changed,
+36
,
-0
feat: add stack_at and stack_peek
536767e
mogi
·
16:05 UTC+1
3
files changed,
+54
,
-2
feat: add stack_size and stack_is_empty
cbb2dcc
Alex (Oleksii) Haponiuk
·
13:38 UTC+1
2
files changed,
+5
,
-5
feat(cli): change ft_error to take custom error codes
9748b1b
Alex (Oleksii) Haponiuk
·
09:12 UTC+1
1
file changed,
+1
,
-2
build: *temporarily* use wildcards for SRCS
c005dd3
Alex (Oleksii) Haponiuk
·
09:12 UTC+1
1
file changed,
+16
,
-14
build: generate dependency files, silence nested makes
f6634d9
mogi
·
09:12 UTC+1
1
file changed,
+2
,
-2
fix(stack_init): pass proper parameter type
8b53597
mogi
·
09:12 UTC+1
2
files changed,
+22
,
-1
feat: implementation of stack_free
07a13ca
mogi
·
09:12 UTC+1
2
files changed,
+53
,
-0
feat: initial implementation of ring buffer
cdaa0b0
Alex (Oleksii) Haponiuk
·
09:12 UTC+1
3
files changed,
+9
,
-15
fix(cli): rename header
e7380ec
Alex (Oleksii) Haponiuk
·
09:12 UTC+1
3
files changed,
+64
,
-0
feat: add error, and basic main and header
2dc94b2
Alex (Oleksii) Haponiuk
·
09:12 UTC+1
1
file changed,
+4
,
-3
build: fix nested dir creation for build/
a7a8dd7
Alex (Oleksii) Haponiuk
·
09:12 UTC+1
1
file changed,
+14
,
-11
build: fix compilation with libraries and headers
1e70b63
Alex (Oleksii) Haponiuk
·
09:11 UTC+1
4
files changed,
+70
,
-0
build: add Makefile and import libft, ft_printf
27-03-2026
d824e32
Alex (Oleksii) Haponiuk
·
17:12 UTC
1
file changed,
+9
,
-0
docs: add README