1
var maximumRemovals = function (s, p, removable) {4
const stillFunctions = (k) => {6
for (let i = 0; i < k; i++) {7
result[removable[i]] = "";10
const isSubset = () => {12
for (let c = 0; c < p.length; c++) {13
if (idx > result.length) return false;14
const next = result.indexOf(p[c], idx);27
let right = removable.length;29
while (left < right) {30
// Need to round up the midpoint since we are returning operation LENGTH i.e. ops+131
const mid = Math.ceil((left + right) / 2);32
if (!stillFunctions(mid)) {