Find The Sum
CodeChefOpen on judge ↗
There were two friends Mr A and Mr B who got very bored during their summer vacation. Mr A then got an array of N numbers from somewhere, as he was very bored so he started playing with the numbers. He took the N numbers and started finding out the max value of two adjacent numbers for every pair of adjacent numbers in the array and wrote all of them in next line, so he got N-1 numbers in the next
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