Hey !
Please check out your question “pairs on Line” . I guess the answer for the sample tc itself is wrong.
Also this is my code which gives answer: 4 for the sample testcase.
https://ide.geeksforgeeks.org/Rdk8nOqQ6k
Hey !
Please check out your question “pairs on Line” . I guess the answer for the sample tc itself is wrong.
Also this is my code which gives answer: 4 for the sample testcase.
https://ide.geeksforgeeks.org/Rdk8nOqQ6k
your logic is incorrect . please refer to this code
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.