Average List
CodeChefOpen on judge ↗
Raju is playing with two lists A and B. List A contains N elements. List B is formed by replacing every element of List A by average value of all elements before current element including current one. For example : If list A is like : a, b, c then list B will be like : a/1, (a+b)/2, (a+b+c)/3 Now you are given list B and you have to find list A. So help Raju with this task. Input First line c
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