in title
hnnthrnh n yjnmmmnnbshbhbscsbnxbsncbcsncbdsn
in title
hnnthrnh n yjnmmmnnbshbhbscsbnxbsncbcsncbdsn
@chandeep here
For the sample case, Array = {5, 7, 9, 1, 2, 4, 6 ,8 ,3}. Target number = 10.
Find any three numbers in the given array whose sum is equal to the target number. In this case triplets are:
1, 2 and 7
1, 3 and 6
1, 4 and 5
2, 3 and 5
Algorithm:
1.Sort the element in ascending order
3.Thus, all the triplets have been printed.
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.