solulubeta
Sign in
DSA Basics / Exam level
03.25 · Problem

The Shortest Notice That Says It All

Hard Sliding window with a need count Pro

This problem is part of solulu Pro

A long announcement has to be trimmed for a screen. The trimmed piece must be a continuous stretch of the announcement and must still contain every letter of a required set, counting repeats: if the set asks for two a's,…

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

Item 90 of 90 · updated 2026-10-12