You are given an array **arr[]** and an integer **target**, determine if there exists a triplet in the array whose sum equals the given target. Return true if such a triplet exists, otherwise, return false.
Topics
Companies
Articles
Examples:
Expected Time Complexity: O(n^2)
Expected Space Complexity: O(1)
Constraints:
3 <= arr.size() <= 10^3
1 <= arr[i] <= 10^5
Companies:
MicrosoftAppleSamsungVisa
Topics:
ArraySorting Algorithm
Please log in to access the Submissions tab, where you can review your progress and explore code submissions from other participants.
Please log in to access the Solution tab and view detailed answers and explanations.
Please log in to access the Discussion tab and join conversations with other participants.
Access Restricted: Please Login to access the code editor and test cases.