1954. Minimum Garden Perimeter to Collect Enough Apples
Previous1953. Maximum Number of Weeks for Which You Can WorkNext1955. Count Number of Special Subsequences
Last updated
Last updated
**Input:** neededApples = 1
**Output:** 8
**Explanation:** A square plot of side length 1 does not contain any apples.
However, a square plot of side length 2 has 12 apples inside (as depicted in the image above).
The perimeter is 2 * 4 = 8.**Input:** neededApples = 13
**Output:** 16**Input:** neededApples = 1000000000
**Output:** 5040