Skip to content

Commit

Permalink
Merge branch 'main' of github.com:biralavor/42_pushswap into main
Browse files Browse the repository at this point in the history
  • Loading branch information
biralavor committed Jul 5, 2024
2 parents eb35fd0 + cb31efd commit c3da14a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 42_pushswap
WIP - push swap, a 42 school project about ordination algorithm.
push swap, a 42 school project about ordination algorithm.

# Efficiency vs Efficacy
- What's the difference between them?
Expand Down Expand Up @@ -30,13 +30,10 @@ Without burning your brain, tires and fuel unnecessarily.
Push Swap is about a program that **sort numbers** from user's input, but also:
- has 2 stacks to store the given numbers;
- has 11 basic functions to move the numbers between stacks;
- calculates the total moviments to sort them;
- .
- .
- .

# this README is still in WIP

![Screenshot from 2024-06-26 14-50-12](https://github.com/biralavor/42_pushswap/assets/80487147/6d9e8ca8-32b1-4929-b192-c59a0bbae4b4)
- calculates the cost of every number, with a given target
- search for the cheapest moviment
- do the moviments to sort the list
Even with cost calculation, this program works only with **efficiency mode** (the goal, whatever it takes).

![Screenshot from 2024-07-05 13-24-06](https://github.com/biralavor/42_pushswap/assets/80487147/4c5fe75c-3006-4f0d-9fc2-27a555022c1f)

0 comments on commit c3da14a

Please sign in to comment.