Skip to content

v1.7 push_swap sorting all numbers (best version)

Latest
Compare
Choose a tag to compare
@biralavor biralavor released this 05 Jul 16:22
· 20 commits to main since this release
b825aed

V1.7 Push Swap

Now working, with movements:

  • If 4 numbers
    • 7 maximum movements
    • 3 minimum movements
  • If 5 numbers
    • 9 maximum movements
    • 6 minimum movements
  • If 10 numbers
    • 32 maximum movements
    • 21 minimum movements
  • If 15 numbers
    • 61 maximum movements
    • 45 minimum movements
  • If 100 numbers
    • 639 maximum movements
    • 574 minimum movements
  • If 500 numbers
    • 4950 maximum movements
    • 4525 minimum movements

Bugs just fixed:

  • Now the program accepts a large negative numbers list #18
  • Now the program blocks if the is a non number at the list #20
  • Now the program blocks unexpected signs (-) and (--)

Project in TDD (Test Driven Development)

  • 66 automated tests with 191 assertions, without monolith file #24

Screenshot from 2024-06-26 14-50-12
Screenshot from 2024-07-05 13-15-13

What's Changed

Full Changelog: v1.61...v1.7