LeetCode 880: Decoded String at Index
Problem Restatement We are given an encoded string s and an integer k . The string is decoded from left to right using these rules: Character Meaning Letter Append the letter to the tape Digit d Repeat the entire current tape d - 1 more times Return the k th character of the final decoded string, using 1-based indexing. The decoded string can be extremely large, so we must not...