Medium Live

Dawn's Lawn

60 points

249 Solves

Programming

adapap

Community Rating: 4.51 / 5

Headline

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Dawn has a magical lawnmower that she uses to mow her square lawn. As soon as she trims the grass, it starts growing quickly. Once the grass grows tall enough, it turns into a flower. Dawn has a lawn that has flowers, grass, and dirt. More details can be found here: https://mega.nz/#!bTwAgS5K!_7Ct7i5rPzsTwxB-QXuM0C751gYppdItpfGl3Cr-RaY - You can find Dawn's actual lawn (your input) here: https://mega.nz/#!OGxQDQgA!pQdDXyto9sqdoprz53541HTyPMr9aLFBKP29Rutqom8 How many flowers are in Dawn's lawn after she mows it completely?

First 10 Solvers

Rank Username
6 ashsa
7 thebadgod
8 tenchijin
9 shina
10 c6prmk

Comments

    • psycub

      Protected 0.0

      [REDACTED] This comment is only shown to users who have solved this challenge.

    • GooGooCluster

      0.0

      ok intermediate programming task, but incorrect examples are just frustrating

    • lamchcl

      0.0

      given example is wrong, very annoying

    • SquidBoy

      0.0

      Must've done something wrong....passed all the first test (size 3,5,8) and was off by one on th 15.... Was also off by 1 on the final answer......

      Has anyone generated what the 15x15 final pattern would look like (sort of interested in trouble shooting my off-by one....)?

      • Rivit

        Protected 0.0

        [REDACTED] This comment is only shown to users who have solved this challenge.

    • glooman

      Protected 0.0

      [REDACTED] This comment is only shown to users who have solved this challenge.

    • BlindDj

      0.0

      Nice one! took me time but was very fun to work on.

    • yohji

      Protected 0.0

      [REDACTED] This comment is only shown to users who have solved this challenge.

    • heyzec

      1

      Correction to first example: https://pastebin.com/wRgLt5Wn (Markdown formatting is buggy here, and extra comments can't be deleted)