{"id":45013478,"url":"https://github.com/biralavor/42_pushswap","last_synced_at":"2026-02-19T00:22:36.100Z","repository":{"id":238554140,"uuid":"796803886","full_name":"biralavor/42_pushswap","owner":"biralavor","description":"push swap, a 42 school project about sorting numbers with 2 stacks","archived":false,"fork":false,"pushed_at":"2025-05-29T17:01:44.000Z","size":46034,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-29T18:38:59.594Z","etag":null,"topics":["cunit","minunit","pushswap-42","sorting-algorithms"],"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/biralavor.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":"2024-05-06T16:56:21.000Z","updated_at":"2025-05-29T17:01:48.000Z","dependencies_parsed_at":"2024-05-17T22:20:52.190Z","dependency_job_id":"0d7e8d49-6242-441d-914b-eb2d1b7dd10a","html_url":"https://github.com/biralavor/42_pushswap","commit_stats":null,"previous_names":["biralavor/42_pushswap"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/biralavor/42_pushswap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biralavor%2F42_pushswap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biralavor%2F42_pushswap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biralavor%2F42_pushswap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biralavor%2F42_pushswap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biralavor","download_url":"https://codeload.github.com/biralavor/42_pushswap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biralavor%2F42_pushswap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29599339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cunit","minunit","pushswap-42","sorting-algorithms"],"created_at":"2026-02-19T00:22:35.306Z","updated_at":"2026-02-19T00:22:36.086Z","avatar_url":"https://github.com/biralavor.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 42_pushswap\n\n\n| ![push_swap](https://github.com/biralavor/42_pushswap/assets/80487147/90c54513-52ea-419c-8db1-e9c315cbad69 \"Push Swap\") | Push Swap, a 42 school project about ordination algorithm. | ![100sucess](https://github.com/biralavor/42_libft/assets/80487147/814c0fe9-cf93-4f9d-bd18-5d588a896ea4) |\n| :-: |  :-: |  :-: |\n\n\u003e [!TIP]\n\u003e This project was done with in TDD mode -\u003e Test Driven Development.\n\u003e ![Screenshot from 2024-07-05 13-15-13](https://github.com/biralavor/42_pushswap/assets/80487147/e553f0a8-d8dd-48d3-966f-c462db1f5ba4)\n\u003e \n\u003e  If you wanna try my tester, you should type:\n\u003e \n\u003e ```\n\u003e cd _ci_tdd \u0026\u0026 make\n\u003e ```\n\n# Efficiency vs Efficacy\n\n- What's the difference between them?\n- Which one is required for the ```push_swap``` project?\n\n## Real Case Study\nLet's suppose that you need to commute from your house to your work by car, but here is a traffic jam ahead, like Mr. Goofy from Disney:\nhttps://www.youtube.com/watch?v=_Tlk6e61E6w\n\n\n![Screenshot from 2024-05-28 19-43-27](https://github.com/biralavor/42_pushswap/assets/80487147/b1850197-2313-418f-a358-9bcae563a12c)\n\n## Efficiency - The goal, whatever it takes\nYou can drive like Mr. Goofy but at crazy mode accelerating a lot, changing lanes every second, hitting brakes... and eventually arriving at work.\n![Screenshot from 2024-05-28 19-34-53](https://github.com/biralavor/42_pushswap/assets/80487147/1f2185cd-e3bf-4101-bd46-376fc05b07fd)\n\n### Did you make the goal? **Yes**.\nBut probably, you burned some really important resources from your car (gas, oil, brakes, engine), and from yourself (mental health, stress, anxiety, etc...)\n\n## Efficacy - The goal, with minimal resources\nHowever, you can also goes like the initial state from Mr. Goofy: a pleasant guy which could find another path or even just wait with pacience and love the innevitable truth: there will be a traffic jam ahead.\n![Screenshot from 2024-05-28 19-39-16](https://github.com/biralavor/42_pushswap/assets/80487147/230b0780-9505-41fc-b768-865745012a84)\n\n### Did you make the goal? **Yes**.\nWithout burning your brain, tires and fuel unnecessarily.\n\n## Push_Swap - Which one is required?\nPush Swap is about a program that **sort numbers** from user's input, but also:\n- has 2 stacks to store the given numbers;\n- has 11 basic functions to move the numbers between stacks;\n- calculates the cost of every number, with a given target\n- search for the cheapest moviment\n- do the moviments to sort the list\nEven with cost calculation, this program works only with **efficiency mode** (the goal, whatever it takes).\nThe project's algorithm was created by Mia Combeau: https://github.com/mcombeau/push_swap\n\n![Screenshot from 2024-07-05 13-24-06](https://github.com/biralavor/42_pushswap/assets/80487147/4c5fe75c-3006-4f0d-9fc2-27a555022c1f)\n\n\u003e  If you wanna try my Push_Swap, you should type:\n\u003e \n\u003e ```\n\u003e make\n\u003e ```\n\n\u003e All 42 Badges -- the astronomer Human Coder -- were done by Larissa Cristina [@mewmewdevart](https://github.com/mewmewdevart/42Badges)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiralavor%2F42_pushswap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiralavor%2F42_pushswap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiralavor%2F42_pushswap/lists"}