Medium Live

Dawn's Lawn

60 points

206 Solves

Programming

Medium

adapap

Community Rating: 4.61 / 5

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

  • dliedtka

    The example in the first file is wrong, as it has Dawn going down each column rather than down-up-down-up-....

  • ebouteillon

    I confirmed the sample is buggy as it does not follow the up and down on columns, as well as the penultimate step did not 'mow' the right element and the last step is not mowed at all

  • ebouteillon

    Protected

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

  • heyzec

    Here's the correction to the first example:

    /- >> /- >> /- >> |- >> |- >> |_ >> _/ >> / >> *\/ |. >> .|. >> .|. >> .|. >> .-. >> .-. >> .-. >> ./. >> ./. /\/ >> /\/ >> \/ >> ./ >> ./ >> -./ >> -./ >> -./ >> /.\

  • heyzec

    Here's the correction to the first example:

    /-  >>  /-  >>  /-  >>  |-  >>  |-  >>  |_  >> _/  >>  /  >>  *\/
    |.  >>  .|.  >>  .|.  >>  .|.  >>  .-.  >>  .-.  >> .-.  >>  ./.  >>  ./.
    /\/  >>  /\/  >>  \/  >>  ./  >>  ./  >>  -./  >> -./  >>  -./  >>  /.\
    

  • heyzec

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

  • yohji

    Protected

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

  • BlindDj

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

  • glooman

    Protected

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

  • SquidBoy

    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

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