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 challengesShidoku Constraints

Gamified challenge · Constraint satisfaction

Shidoku Constraints

board is 4 strings of 4 characters: a digit 1-4 is given, . is empty. Fill every empty cell so that each row, each column and each of the four 2×2 boxes (rows 0-1 or 2-3, columns 0-1 or 2-3) contains 1, 2, 3 and 4 exactly once. Every puzzle has exactly one solution.

Write solve(board) returning the filled square as 4 strings, keeping the given digits. For ["....", "..34", "4..2", ".2.."] the answer is ["3421", "2134", "4312", "1243"].

Plain backtracking works; the Watch tab compares it with forward checking, the MRV heuristic and AC-3 constraint propagation, counting how many digits each one places and takes back.

Sign in to play Shidoku Constraints

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