leetle

Daily challenge for 2025-03-14

73. Permutation in String

Write solve to return true if s2 contains any permutation of s1. A permutation is any rearrangement of the characters.

Example:
Input: "ab", "eidbaooo"
Output: true
Explanation: s2 contains one permutation of s1 ("ba").

Run this challenge interactively in Python or JavaScript when the app loads.