Chef And Bamboo
CodeChefOpen on judge ↗
Chef has given us the problem ,as he wants to check our intelligence level.Problem is we have given number of bamboo's as N and they are labelled according to their weight and the weight value of each bamboo should be lied in the range including 1 to N.It depends upon you, which value we will select,as all of the bamboo should have a unique weight and there value must lie within 1 to N ,Repetition
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