This is my solution.:
I did not understand the editorial. Can someone explain me my error? Only test case 0 has passed. Am i missing any type of case?
This is my solution.:
I did not understand the editorial. Can someone explain me my error? Only test case 0 has passed. Am i missing any type of case?
@manisini.chakraborty hey you are not covering the entire array, make the size of diff n, do the same in for loops, make sure your are going till the very last element
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.
@Abhinav2604 ut if an arrray has n elements, then the array which will store difference of consecutive elements will have n-1 elements.