← Zoho questions

Count characters with escape sequence

Filed under Zoho

Given a string `s`, count the total number of decoded characters. The character `$` acts as an escape character. When `$` is encountered, the immediately following character is treated as a literal…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Zoho questions

Collected from public candidate posts and coding forums. Updated Nov 2026.