From ddd5b11a7a1524d645cadd584e8046c260bb9a07 Mon Sep 17 00:00:00 2001 From: David GAILLETON Date: Thu, 15 Jan 2026 12:09:27 +0100 Subject: [PATCH 1/2] Add ai part to README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d8d60fe..658e83e 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,13 @@ https://en.wikipedia.org/wiki/Sorting_algorithm - **For BUCKET SORT** https://www.meilisearch.com/blog/bucket-sort-guide -- **For BUCKET SORT** +- **For RADIX** https://www.geeksforgeeks.org/dsa/radix-sort/ +### AI + +AI was utilized to provide a reminder on how to include obj files within a subfolder for the Makefile. + ## Additional sections may be required depending on the project ### Justification to why we chose this algorithms From 0e7d1dce50bd767d3d09dde8c388082d1d310d01 Mon Sep 17 00:00:00 2001 From: David GAILLETON Date: Thu, 15 Jan 2026 12:44:51 +0100 Subject: [PATCH 2/2] Fix indexer position in main, check if stacks is well mallocked before index stack --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 44544dd..9de7343 100644 --- a/main.c +++ b/main.c @@ -24,9 +24,9 @@ static int push_swap(char **tab, int len, int mod) if (mod == -1) return (0); stacks = init_stacks(len, tab, mod); - indexer(stacks); if (!stacks) return (0); + indexer(stacks); if (check_order(stacks->a)) { free_all(stacks);