Pset 1 : Mario.more hints!
iamstring opened this issue · 0 comments
iamstring commented
sir,
The pset1 mario more for more comfortable people doesn't have a key hint regarding the use of \n.
please, consider the following case
case no:1 : check50 marks this solution incorrect. consider ~ for spaces.
height:4
0123456789
~~~#~~#~~~\n // new line is used after the length of row.ie (height*2)+2
~~##~~##~~\n
~###~~###~\n
####~~####\n
case no: 2 : check50 marks this solution correct. consider ~ for spaces.
height:4
0123456789
~~~#~~#\n // New line is used after the rightmost hash!
~~##~~##\n
~###~~###\n
####~~####\n
Both the solutions are equally correct, I have seen many people on cs50 group asking why their solution is incorrect and wasting their time on this silly mistake which is easy to solve when informed.
A hint should be there that you don't have to print spaces after the right-most hash. A \n should be used.
thanks!