I am sending my code . It is Valentine magic problem.
By solving it by dp , i got wrong answer.
Please explain why? //Output should be 1 instead of 0.
Why this happens?
I am sending my code . It is Valentine magic problem.
By solving it by dp , i got wrong answer.
Please explain why? //Output should be 1 instead of 0.
Why this happens?