Chef and Dishes
CodeChefOpen on judge ↗
Chef buys a new restaurant. At his new restaurant, he calls his rival chef named 'Code'. Also he places all his dishes on N different tables in such a order that, the first table contains dish "a" and second one contains dish "b". From next table onwards dishes are arranged in such a way that, the dish on the given table is the mixture of the previous two table's dishes, i.e., the dishes on ta
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