3SUM Leetcode Problem

What is the time and Space complexity of given code
https://ide.geeksforgeeks.org/BoDbYqjaq7

time complexity is O(n^2) and space complexity is O(1).

Space will be o(3*sizeof(int)*N) where N is size of Answer Vector

@Bhawna sorry my mistake. you are correct.

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.