0830. Positions of Large Groups
Description
**Input:** s = "abbxxxxzzy"
**Output:** [[3,6]]
**Explanation**: "xxxx" is the only large group with start index 3 and end index 6.**Input:** s = "abc"
**Output:** []
**Explanation**: We have groups "a", "b", and "c", none of which are large groups.**Input:** s = "abcdddeeeeaabbbcd"
**Output:** [[3,5],[6,9],[12,14]]
**Explanation**: The large groups are "ddd", "eeee", and "bbb".ac
Last updated