Daily challenge for 2026-05-21
506. Longest Sequence of Identical Beads
You are given a string beads representing a necklace of colored beads. Each character in the string represents a specific color. Your task is to find the length of the longest contiguous segment of beads that are all the same color.
Example:Input: beads = "aaabbbbcc"Output: 4
Run this challenge interactively in Python or JavaScript when the app loads.