{"id":20542513,"url":"https://github.com/bebalix/push_swap","last_synced_at":"2025-07-03T02:05:37.133Z","repository":{"id":178986389,"uuid":"523882260","full_name":"BebAlix/push_swap","owner":"BebAlix","description":"This project ask to sort random numbers with a limited set of instructions","archived":false,"fork":false,"pushed_at":"2023-04-10T11:17:32.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T02:03:59.515Z","etag":null,"topics":["42projects","language-c","linked-list","radix-sort"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BebAlix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-11T22:09:23.000Z","updated_at":"2023-08-29T10:48:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"90b9521a-75d7-4e1a-8267-3b41a0c4f581","html_url":"https://github.com/BebAlix/push_swap","commit_stats":null,"previous_names":["bebalix/push_swap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BebAlix/push_swap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BebAlix%2Fpush_swap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BebAlix%2Fpush_swap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BebAlix%2Fpush_swap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BebAlix%2Fpush_swap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BebAlix","download_url":"https://codeload.github.com/BebAlix/push_swap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BebAlix%2Fpush_swap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263245303,"owners_count":23436512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42projects","language-c","linked-list","radix-sort"],"created_at":"2024-11-16T01:32:49.608Z","updated_at":"2025-07-03T02:05:37.094Z","avatar_url":"https://github.com/BebAlix.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# push_swap\n\nthis program have two stack, he takes as an argument the stack a formatted as a list of integers. The first argument should be at the top of the\nstack.\nThe program display the smallest list of instructions possible to sort the stack\na with using the stack b using and printing the rules.\n\n##Rules\n - sa (swap a): Swap the first 2 elements at the top of stack a.\n\n - sb (swap b): Swap the first 2 elements at the top of stack b.\n\n - ss : sa and sb at the same time.\n \n - pa (push a): Take the first element at the top of b and put it at the top of a.\n\n - pb (push b): Take the first element at the top of a and put it at the top of b.\n\n - ra (rotate a): Shift up all elements of stack a by 1.\n\n - rb (rotate b): Shift up all elements of stack b by 1.\n\n - rr : ra and rb at the same time.\n\n - rra (reverse rotate a): Shift down all elements of stack a by 1.\n\n - rrb (reverse rotate b): Shift down all elements of stack b by 1.\n\n - rrr : rra and rrb at the same time.\n\n## How to launch the programm\n\n1. To compile the program :\n\n   ```sh\n   $ make\n   ```\n   \n2. To start the program :\n\n   ```sh\n   $ ./push_swap [a list of integer]\n   ```\n3. Remove all :\n\n\t```sh\n\t$ make fclean\n\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbebalix%2Fpush_swap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbebalix%2Fpush_swap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbebalix%2Fpush_swap/lists"}