Skip to content

nemishgarg/3Sum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Three Sum

Given an array and a value, find if there is a triplet in array whose sum is equal to the given value. If there is such a triplet present in array, then print the triplet and return true. Else return false.

Input: array = {12, 3, 4, 1, 6, 9}, sum = 24;

Output: 12, 3, 9

Explanation: There is a triplet (12, 3 and 9) present in the array whose sum is 24.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published