Search⌘ K
AI Features

Permutation in String

Permutation in String asks whether s2 contains a contiguous substring that is an anagram of s1, using every character from s1 with matching frequencies. Return true or false.

Statement

Given two strings, s1 and s2, determine whether any permutation ...