GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • All topics
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 20 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing
Log inStart free
Gamified challengesCipher Wheel

Gamified challenge · Frequency counting

Cipher Wheel

Every lowercase letter of message was turned forward the same number of places round the alphabet (z wraps to a); spaces, digits and punctuation were left alone. In English, e is the most common letter, so: find the most common letter in the message (if several tie, take the one that comes first in the alphabet), assume it was e, and turn every letter back by that many places.

Write decode(message) that returns the decoded message. For "wkh ghhu qhhgv juhhq wuhhv" the most common letter is h, 3 places after e, so the answer is "the deer needs green trees". A message with no letters comes back unchanged.

Sign in to play Cipher Wheel

This game is part of the paid plans. Sign in, then pick a plan to write your answer, watch it play out, and step through the algorithm with its guide.

Sign in with Google

or log in with email · create an account