← Questions

Flower placement and directory deletion

0
GoogleCodingLast asked May 2026

Two problems in one round:

  1. A row of plots has some flowers planted already, and no two flowers may be next to each other. Decide whether n more flowers can be planted.
  2. Given a directory structure, delete a directory together with everything inside it.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding