Browse Source

Some examples doesn't work as it shown

1. echo -e "rra\npb\nsa\nrra\npa\n" gives:
rra
pb
sa
rra
pa
_ with one extra line (non needed)

2. ARG="4 67 3 87 23"; ./push_swap "$ARG" | wc -l gives only "6" (without spaces)
pull/518/head
azamatamirzhan 5 years ago committed by GitHub
parent
commit
add2fe1043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      subjects/push-swap/push-swap.en.md

4
subjects/push-swap/push-swap.en.md

@ -127,13 +127,13 @@ pb
KO
student$ echo -e "rra\npb\nsa\n" | ./checker "3 2 one 0"
Error
student$ echo -e "rra\npb\nsa\nrra\npa\n"
student$ echo -e "rra\npb\nsa\nrra\npa"
rra
pb
sa
rra
pa
student$ echo -e "rra\npb\nsa\nrra\npa\n" | ./checker "3 2 1 0"
student$ echo -e "rra\npb\nsa\nrra\npa" | ./checker "3 2 1 0"
OK
student$ ./checker
student$

Loading…
Cancel
Save