Skip to content

Commit 093b9bc

Browse files
committed
added Function
1 parent 3c7b2f6 commit 093b9bc

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -455,15 +455,17 @@ Output: false
455455
Explanation: No triplet exists.
456456

457457
## 44) [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.
458+
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.
459+
Strings consists of lowercase English letters only and the length of both strings s and p will not be larger than 20,100.
460+
The order of output does not matter.
459461
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.
462+
Input:
463+
s: "cbaebabacd" p: "abc"
464+
Output:
465+
[0, 6]
466+
Explanation:
467+
The substring with start index = 0 is "cba", which is an anagram of "abc".
468+
The substring with start index = 6 is "bac", which is an anagram of "abc".
467469

468470

469471

0 commit comments

Comments
 (0)