Daily challenge for 2026-06-24
540. Compressed String Block Counter
Given a string s, count the number of contiguous blocks of identical characters. A block is defined as a sequence of one or more of the same character appearing consecutively.
Example:Input: s = "aaabbc"Output: 3
(The blocks are "aaa", "bb", and "c")
Run this challenge interactively in Python or JavaScript when the app loads.