Inception
CodeChefOpen on judge ↗
Today Theatre Pearl is screening the movie Inception.The main actor in the movie is Leonardo Dicaprio . He steals information from his targets by entering their dreams. Stealing information from someone's subconscious isn't that easy, it requires diving deep into different dream levels. The time he spends in a dream level is defined as a function of n ( F(n) ) ,where n is the current dream level
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start