docs icon indicating copy to clipboard operation
docs copied to clipboard

Pset 1 : Mario.more hints!

Open iamstring opened this issue 8 years ago • 0 comments

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!

iamstring avatar Apr 16 '17 18:04 iamstring