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 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);