i have understand the question but i m not getting the approach
I have understand the question but i m not getting the approach
bhiaya can you once come to meet and explain bhiaya
in question it is given that every element of the cyclic array would be replaced by the sum of itself and the element lying X positions behind it in the cyclic array.
if x ==1 -> 1 position behind
if x==0 -> same element will be added
only this concept is required… try to dry run the code on sample input… it will give u better insight…
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.