This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| function substringIslands(s, k) { | |
| let memo = {}; | |
| let substrings = []; | |
| // Traverse the whole 's' string | |
| for (let i = 0; i < s.length; i++) { | |
| // Create boolean array to check for islands |