Problem 1208 · Medium

Get Equal Substrings Within Budget

Find the longest substring of two equal-length strings whose total character change cost fits within a budget. The visual slides a window and shows the running cost against the budget.

Open the interactive visualisation