✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
A building has n floors, two lifts, and 2 stairs.
Lift L1 operates only up to floor
kLift L2 operates up to floor
nStairs connect all floors
A student wants to reach the target floor t from the ground floor.Analyze the time complexity of your algorithm when we have n floors