# Write a Python function to find three numbers from an array such that the sum of three numbers equal to zero.

## Topic: Write a Python function to find three numbers from an array such that the sum of three numbers equal to zero.

Solution

def three_Sum(num): if len(num)<3: return [] num.sort() result=[] for i in range(len(num)-2): left=i+1 right=len(num)-1 if i!=0 and num[i]==num[i-1]:continue while left

List all Python Programs