solulubeta
Sign in
DSA Basics / Exam level
03.11 · Problem

A Thali with at Most k Flavours

Hard Sliding window with a count map Pro

This problem is part of solulu Pro

A food stall lays out dishes in a long row, each marked with a letter for its flavour. A thali must take a continuous stretch of the row, and the cook allows at most k different flavours in it.

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

Item 76 of 90 · updated 2026-10-12