Chef and his brothers Michael and David
CodeChefOpen on judge ↗
Problem description. Chef has 2 brothers David and Michael. All of them are very fond of numbers. David and Michael keep adding an initial number which is input by the user(a and b respectively) to the previous number,initially starting from 0. They ask the Chef to merge the numbers in array. They make the task of chef difficult by telling him not to put the number in the array more than once and
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