Wild Function
CodeChefOpen on judge ↗
Form the relationship between the following pairs of n and N. n N 1 1 2 2 3 2 4 4 5 2 6 4 7 2 8 4 9 6 10 2 11 6 12 4 13 2 14 4 15 6 16 6 17 2 18 6 19 4 20 2 21 6 22 4 23 6 24 8 Consider the above relationship to find out the first n for which the given value is
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