Reported March 2024
IXL Learning

Prison

Reported by candidates from IXL Learning's online assessment. Pattern, common pitfall, and the honest play if you blank under the timer.

Get StealthCoderRuns invisibly during the live IXL Learning OA. Under 2s to a working solution.
Founder's read

You've got a Prison problem from IXL Learning reported in March 2024, and you're taking the OA in the next couple of days. The problem statement isn't available, but the title signals a graph or simulation challenge. Prison problems typically involve pathfinding, state transitions, or escape mechanics. StealthCoder will be your safety net if the pattern doesn't click immediately during the live assessment. Knowing the shape of the problem now means you won't blank when you see it on screen.

Pattern and pitfall

Without the exact problem text, the Prison archetype usually maps to either graph traversal (BFS or DFS to find shortest escape path) or a state-space simulation (tracking guards, keys, or movement constraints). Common tricks include recognizing that the prison layout is a grid and the real problem is finding reachable cells or optimal moves. The catch is often that you can't move directly through walls, or that certain states are locked until conditions are met. During your live OA, if you see a grid with obstacles and movement rules, think BFS first. StealthCoder reads your screen in real time, so if you hit a wall on implementation, it'll have the pattern locked before you spiral.

StealthCoder is the hedge for the one pattern you didn't drill. It runs invisibly during the screen share.

If this hits your live OA

You can drill Prison cold, or you can hedge it. StealthCoder runs invisibly during screen share and surfaces a working solution in under 2 seconds. The proctor sees the IDE. They don't see what's behind it. If you're reading this with an OA window open, you're who this was built for.

Get StealthCoder

Related leaked OAs

⏵ The honest play

You've seen the question. Make sure you actually pass IXL Learning's OA.

IXL Learning reuses patterns across OAs. If you're reading this with an OA window open, you're who this was built for. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Prison FAQ

Is this a shortest-path problem?+

Likely yes. Prison problems almost always involve finding the minimum steps to escape or reach a goal. BFS on a grid is the standard approach. If you see movement constraints or special rules, adapt BFS to account for them.

What if the prison has locked doors or keys?+

Then state becomes (row, col, keys_collected). Use BFS with a tuple as your state. The trick is tracking what you've unlocked as you explore, not exploring all paths blindly.

How do I prepare for this in 48 hours?+

Know BFS cold on a grid. Practice one grid-based escape problem on LeetCode (Number of Islands or Walls and Gates). Understand how to encode state. That's enough.

Could this be a DP problem instead?+

Unlikely for a prison escape. DP shines on optimization over sequences. BFS/DFS is cleaner for reachability and pathfinding. Stick with graph traversal unless the problem explicitly asks for counting or maximizing something.

What's the most common mistake on prison problems?+

Not tracking visited states properly. Candidates re-visit cells and run into infinite loops or TLE. Use a set to mark visited (row, col) or (row, col, state). Build that discipline now.

Problem reported by candidates from a real Online Assessment. Sourced from a publicly-available candidate-aggregated repository. Not affiliated with IXL Learning.

OA at IXL Learning?
Invisible during screen share
Get it