Pergunta de entrevista da empresa Zubi.io

How to find triplets in the array whose sum is zero (DSA question)

Resposta da entrevista

Sigiloso

30 de set. de 2020

First I gave the brute force approach and sir asked whether I can give an optimised solution, and then I said the two-pointer method. Later he asked me what are the time and space complexities of both the solutions.