Triplet Sum in Array
❗Write Code in Only One Language (CPP, C, Java, Python)
Give File Name : triplet_sum ✅ In respective language folder
📑 DESCRIPTION
Triplet Sum in Array
Problem Statement: Given an array arr of size n and an integer X. Find if there's a triplet in the array which sums up to the given integer X.
Input Format:
An integer n which is size of the array and a space separated number x as the sum.
An array of size n.
Output Format:
An integer 1 or true and 0 for false.
Sample Input 1
n = 5, X = 10
arr[] = [1 2 4 3 6]
Sample Output 1
1
Sample Input 2
n = 6, X = 13
arr[] = [1 4 45 6 10 8]
Sample Output 2
1
Constraints
1 ≤ n ≤ 103
1 ≤ A[i] ≤ 105
https://practice.geeksforgeeks.org/problems/triplet-sum-in-array-1587115621/1
Please assign it to me.
I would like to complete this. Can this be assigned to me?
@Chitresh-code, I've created a PR. Please review it and mark it under 'hacktoberfest-accepted'
hey @Chitresh-code can you assign this to me , I like to code in python