solulubeta
Sign in
Story Problems / Strings
02.05 · Problem

Every Scrambled Key

Medium Fixed window, collect indices Pro

This problem is part of solulu Pro

A detective has the string s of intercepted letters and knows a key p. The key may be scrambled (letters rearranged) in the message. Return every starting index in s where a scrambled version of p begins, in increasing…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 25 of 94 · updated 2026-10-12