Problem 61032. The MATLAB Treasure Hunt – Count Matching Symbols on the Ancient Scroll to Unlock the Next Clue

Inside the Hidden Cave, you discover an ancient scroll filled with strange symbols and markings.
A note beside it says: “Count those that mirror the key symbol — they guide your way.”
Given a character array or string s and a single character key, count how many times key appears in s.
Return this count as n.
Each correct count reveals one rune on the treasure map!

Solution Stats

71.93% Correct | 28.07% Incorrect
Last Solution submitted on Jan 29, 2026

Solution Comments

Show comments