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 challengesDoors & Key

Gamified challenge · Asked in Accenture

Doors & Key

Somewhere on the board are locked doors 🚪. Walk into one and the game is over, so plan your route to the key 🔑 before you take a step. The board is a list of rows: . is floor, P is you, K is the key and D is a locked door.

Write findKey(board) (find_key in Python) that returns your moves as a string of U, D, L and R. Any route that reaches the key without stepping on a door or off the board passes.

Sign in to play Doors & Key for free

Accenture's round games are free with an account: write your answer in Java or Python, watch it play out, and step through the algorithm.

Sign in with Google

or log in with email · create an account