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

126 Solutions

87 Solvers

Last Solution submitted on Mar 10, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers87

Suggested Problems

More from this Author71

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!