I’m getting wrong ans in 2 test cases out of 5. Pls pin-point error in my code,am i missing some corner test cases.
link to my code is— https://ide.codingblocks.com/s/106204
Doubt in-- SPP - Recursive Sequence (Version II)
you code isnt easily readable , its shifted to the left, can you give it properly aligned?
i have tried to properly align it nd have also written comments for easy understanding of code.Link to code is—https://ide.codingblocks.com/s/106538
it would be easy if you can understand my simple code with proper functions.
if you dont get it comment again and then will explain it
sir can u elaborate ur approach.I’m not able to understand it entirely.Nd pls tell me what is wrong in my approach?.I’m subtracting sum of first n elements and m-1 elements.Nd first element in my matrix will correspond to sum of first i elements and rest are the elements ai , ai+1,ai+k-1.
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.