Permutation in String at Yandex

Medium48.4% acceptance

This problem has 75.0% frequency at Yandex.

Problem Description

Given two strings `s1` and `s2`, return `true` if `s2` contains a permutation of `s1`, or `false` otherwise. In other words, return `true` if one of `s1`'s permutations is the substring of `s2`.

Read full problem and hints

Topics

Also asked at 14 companies


More Yandex Questions

View all Yandex questions