Browse Source

Add 38

master
Jaeha Choi 9 months ago
parent
commit
c10217343a
Signed by: Jaeha.Choi GPG Key ID: D6133D1D117FF503
  1. 11
      codesignal/level_9.py

11
codesignal/level_9.py

@ -0,0 +1,11 @@
# 38
import math
def growingPlant(upSpeed, downSpeed, desiredHeight):
if desiredHeight <= upSpeed:
return 1
return math.ceil((desiredHeight-downSpeed) / (upSpeed-downSpeed))
# 39
Loading…
Cancel
Save