Implement a sorting algorithm
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 23 Feb 2024 09:36:57 +0000 (10:36 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 23 Feb 2024 09:36:57 +0000 (10:36 +0100)
commit564690168c990f37598a89a51d4263661eb036bf
tree2ba92b7f62ff2290149ff2e739990fad6cdc09f6
parent26cbe78c2a9b40f61a3d2d95b31b641b1927d6e8
Implement a sorting algorithm

The idea is to push everything except for 3 elements from a to b.
Stack a can then be trivially sorted after which we can insert
(the cheapest) elements from b to the correct place in a.

The implementation needs to be refined as it does not actually sort.
Makefile
src/checker.c
src/checker.h
src/is_sorted.c [new file with mode: 0644]
src/prepare.c [new file with mode: 0644]
src/prints.c [new file with mode: 0644]
src/push.c