Minimum Sum
CodeChefOpen on judge ↗
Given below is a tree like structure (where each successive row will contain two more nodes) as shown below: 1 5 3 2 7 4 6 9 8 You have to select a node in each row such that the sum of all the nodes selected is minimum. However you are given number “m” and “n” such that if a particular node is chosen in some row, the adjacent node (in the row above or row below) to be selected is at most “m” un
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