Amazon logoAmazon
Coding·40 minMembers

Equal-Frequency Block Prefix Count

Members only

For every prefix of a string, find the maximum number of equal-length blocks the prefix can be split into such that each character has the same frequency in every block.

SWE
string
hashmap
hard
Frequency
Single report
Last asked
2026-01-31
Stage
oa

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...