Skip to content

Commit 8a3f689

Browse files
authored
update readme
1 parent bc2ac3e commit 8a3f689

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
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
88
and 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

1415
Only 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
3536
You must create two programs: ```checker``` and ```push_swap```. <br />
36-
<br />
3737

3838
The ```checker``` program reads a random list of integers from the stdin, stores them, and checks to see
3939
if they are sorted. <br />
40+
<br />
4041
The ```push_swap``` program calculates the moves to sort the integers – *pushing, popping, swapping* and *rotating*
4142
them between **stack a** and **stack b** – and displays those directions on the stdout. <br />
43+
<br />
4244
You can pipe ```push_swap``` into ```checker```, and ```checker``` will verify that ```push_swap```'s instructions were successful.
4345
<br />
4446

0 commit comments

Comments
 (0)