File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 44
55## Challenge
66
7- Sort a random list of integers (given via command line arguments), using the smallest number of moves, 2 stacks
7+ Sort a random list of integers using the smallest number of moves, 2 stacks
88and a limited set of operations. <br />
99<br />
1010
11- You start with two empty stacks: ** a** and ** b** . <br />
11+ You start with two empty stacks: ** a** and ** b** . You are given a random list of integers via command line arguments.
12+ <br />
1213<br />
1314
1415Only these moves are allowed:
@@ -33,12 +34,13 @@ At the end, **stack b** must empty empty and all integers must be in **stack a**
3334
3435## The Project
3536You must create two programs: ``` checker ``` and ``` push_swap ``` . <br />
36- <br />
3737
3838The ``` checker ``` program reads a random list of integers from the stdin, stores them, and checks to see
3939if they are sorted. <br />
40+ <br />
4041The ``` push_swap ``` program calculates the moves to sort the integers – * pushing, popping, swapping* and * rotating*
4142them between ** stack a** and ** stack b** – and displays those directions on the stdout. <br />
43+ <br />
4244You can pipe ``` push_swap ``` into ``` checker ``` , and ``` checker ``` will verify that ``` push_swap ``` 's instructions were successful.
4345<br />
4446
You can’t perform that action at this time.
0 commit comments