Problem 61035. The MATLAB Treasure Hunt – Decode the Ancient Script by Removing Strange Symbols from the Message

Emerging from the Maze of Numbers, you find a tablet etched with symbols and letters — an Ancient Script!
The message is hidden among strange symbols. To uncover it, you must keep only alphabetic characters and remove everything else.
Given a string or character array s, return a new string decoded containing only the letters (A–Z, a–z).
Each decoded message brings you closer to the final treasure!

Solution Stats

84.62% Correct | 15.38% Incorrect
Last Solution submitted on Oct 24, 2025

Solution Comments

Show comments