Skip to content

Instantly share code, notes, and snippets.

View gmanzur's full-sized avatar
this is fine

Gabriel Manzur gmanzur

this is fine
  • Viña del Mar, Chile
View GitHub Profile
@gmanzur
gmanzur / prblm.js
Last active August 5, 2023 17:15
Solution
"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