Positions of Large Groups
Description
Input: "abbxxxxzzy"
Output: [[3,6]]
Explanation: "xxxx" is the single large group with starting 3 and ending positions 6.Input: "abc"
Output: []
Explanation: We have "a","b" and "c" but no large group.Input: "abcdddeeeeaabbbcd"
Output: [[3,5],[6,9],[12,14]]Solution
Last updated