Fetching algorithms...
Fetching algorithms...
Watch key transitions, pointers, and variables update step-by-step.
Read clean, documented implementations across multiple patterns.
Sketch diagrams on an infinite canvas and draft notes directly inline.
text = "hello"{
"h": "100",
"e": "101",
"l": "0",
"o": "11"
}text = "aaaaabbc"{
"a": "0",
"b": "10",
"c": "11"
}text = "",{}Time Complexity
Space Complexity
Code Runner is not available for this problem.