Replace all -pi

what is the error in my code can u plz explain the problem in my approach here is the link

Hey Ayush!
Plesae check the comments in the following code:


Thanks!

sir @hsg i got ur concept very well thank you and sir can u plz tell what was the part of my function which is giving wrong answer thnx

Hey Ayush!
The overall approach that you have used is not suited well for this question buddy. Your code does Not generalise well that is why it will fail some cases.

Feel free to ask any further questions!

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.