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 challengesDigit Challenge

Gamified challenge · Asked in Capgemini

Digit Challenge

An equation has blanks to fill, like _ + _ = 9 or _ * _ - _ = 10. Its tokens are separated by spaces, each _ is a blank for one digit from 1 to 9, the operators are + - * with the usual precedence (* first), and the right side is a whole number. Every digit you place must be different.

Write fill(equation) that returns the digits for the blanks, left to right, as a string. For "_ + _ = 9", "45" works (so do "18" or "63", but not "99").

Sign in to play Digit Challenge

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