MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / isSame

Function isSame

javascript/0567-permutation-in-string.js:65–72  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

63};
64
65const isSame = (a, b) => {
66 for (let i = 0; i < 26; i++) {
67 const isMatch = a[i] === b[i];
68 if (!isMatch) return false;
69 }
70
71 return true;
72};
73
74//////////////////////////////////////////////////////////////////////////////
75// Static Sliding Window

Callers 1

checkInclusionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected