Duplicate cases also got printed
where i didn’t get you.Explain a bit where?
can u send me edited code please i am not getting you if i remove duplicates from orignal array then how ans such as 1 1 6 will appear in ans.
can anyone help me out in this ?