Skip to content

Commit 13db038

Browse files
committed
added Function
1 parent 562c5e2 commit 13db038

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,17 @@ Input: nums = [5,4,3,2,1]
454454
Output: false
455455
Explanation: No triplet exists.
456456

457+
## 43) [Increasing Triplet Subsequence](https://github.com/mauricechouam/Leetcode-training/blob/main/Increasing%20Triplet%20Subsequence/code.js)
458+
Given an integer array nums, return true if there exists a triple of indices (i, j, k) such that i < j < k and nums[i] < nums[j] < nums[k]. If no such indices exists, return false.
459+
Example 1:
460+
Input: nums = [1,2,3,4,5]
461+
Output: true
462+
Explanation: Any triplet where i < j < k is valid.
463+
Example 2:
464+
Input: nums = [5,4,3,2,1]
465+
Output: false
466+
Explanation: No triplet exists.
467+
457468

458469

459470

0 commit comments

Comments
 (0)