Hello Everyone,
I have been stuck at a question for quite some time. I came up with an approach but that's not working for me. Maybe the idea can be correct and implementation can be wrong. So I need some help with an approach. I will add necessary piece of code for showing my approach.
The question is exactly the same and has no typing errors.
Question
My Approach
Main computation part
I just want to know what can be a good approach for this and I will try to implement this on my own.