it will give same result otherwise too .
What's the need of sorting here?
Hello @ayushsakure if you are applying the three pointer approach then you have to sort otherwise the it will not print all the possible results for the array:
you can check this.
do check after uncommenting that line as well then it will print all the results otherwise not.
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.