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 challengesMaze / Spaceship

Gamified challenge · Asked in Accenture

Maze / Spaceship

Your rocket 🚀 is lost in a maze and needs to get home to Earth 🌍. The maze is a list of rows: # is a wall, . is open space, S is the rocket and E is Earth.

Write escape(maze) that returns the rocket's moves as a string of U, D, L and R. Any route that lands on Earth without touching a wall passes; the shortest one earns a star.

Sign in to play Maze / Spaceship 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