Skip to content

Pset 1 : Mario.more hints! #102

@iamstring

Description

@iamstring

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions