{"id":22438923,"url":"https://github.com/cypri1-dev/42_push_swap","last_synced_at":"2025-08-30T18:06:57.246Z","repository":{"id":224233510,"uuid":"762771869","full_name":"cypri1-dev/42_push_swap","owner":"cypri1-dev","description":"Push Swap is a sorting algorithm project in C. It involves sorting a stack of integers using a limited set of operations.","archived":false,"fork":false,"pushed_at":"2024-04-10T21:38:33.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T14:18:16.057Z","etag":null,"topics":["42","bonus","mandatory","pushswap","pushswap-42","pushswap42","sorted"],"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/cypri1-dev.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}},"created_at":"2024-02-24T16:42:48.000Z","updated_at":"2024-04-10T17:42:23.000Z","dependencies_parsed_at":"2024-03-11T11:42:54.918Z","dependency_job_id":null,"html_url":"https://github.com/cypri1-dev/42_push_swap","commit_stats":null,"previous_names":["cypri1-dev/42_push_swap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypri1-dev%2F42_push_swap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypri1-dev%2F42_push_swap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypri1-dev%2F42_push_swap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypri1-dev%2F42_push_swap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cypri1-dev","download_url":"https://codeload.github.com/cypri1-dev/42_push_swap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245815074,"owners_count":20676860,"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":["42","bonus","mandatory","pushswap","pushswap-42","pushswap42","sorted"],"created_at":"2024-12-06T01:12:11.198Z","updated_at":"2025-03-27T09:23:07.391Z","avatar_url":"https://github.com/cypri1-dev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"##\n\u003ch1 align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/ayogun/42-project-badges/main/covers/cover-push_swap-bonus.png\" \u003c/h1\u003e\n  \n## Description\nPush Swap is a sorting algorithm project in C. It involves sorting a stack of integers using a limited set of operations. The goal is to arrange the numbers in ascending order using two stacks and a set of rules for manipulating the elements.\n\n## Project Components Table\nThe following table describes the various components and files included in the Push Swap project:\n\n| File/Header File/Folder     | Description                                                                                         |\n|----------------------|-----------------------------------------------------------------------------------------------------|\n| `push_swap.c`        | The main file containing the implementation of the Push Swap algorithm.                            |\n| `parsing_args.c`     | Handles argument parsing for the Push Swap project.    |\n| `end_sort.c`         | Contains functions to handle the end of sorting process in the Push |\n| `algorithm`          | Implements the sorting algorithm for the Push Swap project. |\n| `exec`               | Executes the sorting instructions on the stack. |\n| `instructions`       | Contains the implementation of stack manipulation |\n| `libft`              | A directory containing the Libft library, used for some auxiliary functions.                        |\n| `Makefile`           | The Makefile script for automating project compilation.                                            |\n\n## Installation and Compilation\n1. Clone this repository into your project:\n```bash\ngit clone https://github.com/cypri1-dev/42_push_swap.git\ncd 42_push_swap\n```\n\n## How to use ?\n```bash\n./push_swap [random_numbers]\n```\n\n## Features\nThe Push Swap project offers the following features:\n\n- **Sorting Algorithms**: Implements efficient sorting algorithms to order a stack of integers in ascending order.\n\n- **Instruction Management**: Provides a variety of stack manipulation instructions such as \"push\", \"swap\", \"rotate\", and \"reverse rotate\" to sort the stack according to specified rules.\n\n- **Sorting Verification**: Verifies if the stack is correctly sorted after executing sorting operations to ensure the accuracy of the algorithm.\n\n- **Performance Optimization**: Searches for the most efficient instruction sequences to minimize the total number of operations required to sort the stack.\n\n- **Easy Customization**: Offers the ability to customize and extend functionalities by adding new sorting algorithms or modifying stack manipulation instructions.\n\n- **Norminette Compatibility**: Adheres to coding and style standards defined by the norminette to ensure code consistency and readability.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypri1-dev%2F42_push_swap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcypri1-dev%2F42_push_swap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypri1-dev%2F42_push_swap/lists"}