Mingo, Word Search & Board Scoring
- Search a letter grid in all eight directions and return every copy of a word
- Find the call that first completes a Mingo line with counters instead of rescans
- Score every run of three or more on a two-colour board without counting a run twice
- Work the older snake sequence, checkers jumps and spiral order problems by hand
Next to the backtracking generators, grids and boards are the other big family in Epic's coding bank. Three of them have reports from the last twelve months. Word search turns up in eight reports between 2017 and August 2026. Mingo is a bingo board where you find the call that first completes a line. It has five reports from 2019 to August 2026, and a November 2025 intern got it live, as the pair programming problem in the final interview. Scoring a two-colour board, where every run of three or more pieces earns points, came up four times between 2020 and December 2025.
None of these need a clever algorithm. They need clean bookkeeping. You walk the grid in the right directions, stop at the edges, and avoid counting the same thing twice. In the assessment you type the answer into a box you can't run, so a missed boundary stays hidden until a grader finds it. Every problem below comes with a hand trace you can copy onto paper. After the three current problems come three older ones from 2018 to 2024: the snake sequence, a checkers-style jumping game and spiral order.
Two moves that solve most Epic grid problems
Word search and board scoring both read straight lines, so write the directions once as row and column steps and loop over them. Eight pairs cover every compass direction. When you only need to count lines, four of them are enough, since reading a line rightwards or leftwards covers the same cells.
# every straight line through a cell, as (row step, column step)ALL_EIGHT = [(0, 1), (1, 0), (1, 1), (1, -1), (0, -1), (-1, 0), (-1, -1), (-1, 1)]ONE_WAY = [(0, 1), (1, 0), (1, 1), (1, -1)] # right, down, and both diagonalsdef inside(grid, row, col): return 0 <= row < len(grid) and 0 <= col < len(grid[0])Mingo is different. It tempts you to check every row and column after each call, which on a 100 by 100 board is 20,000 cell reads per call. Keep a counter per row, per column and for the diagonal instead, and you know the moment one fills, in constant time.
Check the far end of a line before you walk it. In word search, if the last letter's cell is off the grid, skip that direction without reading a single letter. The same guard keeps board scoring and checkers jumps from reading past the edge.
Epic Systems word search: find a word in a letter grid
Word search has eight reports, more than any other grid problem in the bank. The newest, from August 2026, was simply "Write some code on how to see if a word is in a grid (word search)", written as pseudocode in the assessment. A September 2024 candidate got "Search a 2D array for a word." Older versions ask for more. A March 2021 version wanted the word's coordinates, a November 2020 intern had to count every copy including reversed ones, and a 2017 intern searched "in any orientation (including diagonals, left to right, bottom to top, etc.)".
The problem below asks for every copy with its coordinates, in all eight directions. That one answer covers the other versions. A non-empty list means the word is there, and its length is the count.
Word Search in a Letter Grid
Problem
Return every copy as
[start_row, start_col, end_row, end_col], the cells of its first and last letters. Sort the list. A palindrome such as LEVEL is found twice on the same cells, once reading each way. Return an empty list when the word isn't there.The C in the corner starts three copies: one to the right, one down, and one along the diagonal. The bottom row holds a fourth.
Loop over every cell that holds the first letter. From it, try each of the eight directions: work out where the last letter would land, skip the direction if that cell is off the grid, and otherwise compare letter by letter.
Word Search in a Letter Grid
Click "Run" to execute your code
The Epic Systems Mingo problem: the first call that completes a line
Mingo is Epic's own problem, and it has been in the bank since at least 2019. An August 2026 write-up gives the clearest version. The board is 100 by 100 with values up to 1,000,000, and numbers are called one at a time. A Mingo happens when every value in a row, a column or the main diagonal from top-left to bottom-right has been called. You return whether a Mingo happened and on which call.
A November 2025 intern got Mingo as the live coding problem in the final round and rated it easy to medium. Reports from 2019 describe the same 100 by 100 board, and one of them counts both corner diagonals. LeetCode's First Completely Painted Row or Column asks the same thing for rows and columns only. Here the answer is the call number, counting from 1, or -1 when no Mingo ever happens.
Mingo
Problem
Return the call number, counting from 1, on which the first Mingo happens, or
-1 if none ever does. A called number that isn't on the board does nothing, and neither does a number called a second time. Both still count as calls.After the fourth call, 1, 5 and 9 have all been called, which fills the main diagonal.
Build a map from each value to its cell once. Then keep a called count for every row, every column and the main diagonal. Each call bumps at most three counters, and a counter that reaches the board size is a Mingo.
Mingo
Click "Run" to execute your code
Scoring a two-colour board: every run of three or more
In December 2025 an intern's first-round coding question was something like "Given a large connect tic-tac-toe board, count how many wins each color has." The older versions spell out the scoring. A September 2024 intern had to find the winner on a board of red and black pieces. The rule was that "Three pieces in a row horizontally, vertically, or diagonally equates to 1 point", so 4 in a row is 2 points and 5 is 3. An August 2024 version used a grid of T and F with the same points, and a 2020 version called it a Connect 3 board.
The problem below uses that scoring. A run of length L scores L - 2 points, so a run of 3 is worth 1. It returns both scores, which also tells you the winner.
Score a Two-Colour Board
Problem
R for a red piece, B for a black piece, or . for an empty cell.A run is a line of same-colour pieces going horizontally, vertically or along either diagonal, as long as it goes. A run of length 3 or more scores
length - 2 points for its colour, so 3 in a row is 1 point, 4 is 2 and 5 is 3.Return
[red_score, black_score]. Score each run once, at its full length. A run of 4 is worth 2 points, never a 3 and another 3 inside it.Red has one run of 3 on the top row. Black has a run of 4 on the second row (2 points) and two diagonal runs of 3 (1 point each).
Use four directions: right, down, down-right and down-left. A cell starts a run in a direction when the cell before it in that direction is off the board or a different colour. Walk forward from each start to measure the run.
Score a Two-Colour Board
Click "Run" to execute your code
Older problems (2018-2024)
The next three have no report from the last twelve months. Their newest reports date from 2024, and the bank moves slowly, so they're still good practice once the current three feel easy. The snake sequence has seven reports from 2019 to November 2024, the checkers-style jumping game six from 2018 to August 2024, and spiral order three from 2022 to August 2024.
Longest snake sequence (2019-2024)
Here a snake is a path of neighbouring cells where each number differs from the one before it by exactly 1. One May 2024 candidate had to "Return the greatest length of the snake", and an August 2024 one had to find the longest snake in a square grid and print it in order. A 2019 intern, who called it "the fourth and hardest coding question", was told snakes "can only go down and right", which is the rule used below. A February 2024 new grad was asked for every snake path to the end of the matrix.
Longest Snake Sequence
Problem
Return the number of cells in the longest snake. A single cell is a snake of length 1.
The snake 9, 8, 7, 6, 5, 6, 7 goes down, right three times, then down twice.
Fill a table from the bottom-right corner back to the top-left. Each cell's longest snake is 1, plus the longer of the snakes starting right and below it when that neighbour differs by exactly 1.
Longest Snake Sequence
Click "Run" to execute your code
Checkers-style jumping game (2018-2024)
An August 2024 candidate described this as "find the highest number of valid jumps given a grid of pieces and a coordinate to check from (same as checkers, except jumps are orthogonal instead of diagonal)." A 2020 report gave the same rule: you "jump over an enemy piece horizontally or vertically, given there is an empty space past the enemy piece." Other versions from 2018 to 2021 asked for the fewest moves to win or the best move in a game of checkers.
Most Jumps on a Checkers Board
Problem
O is one of your pieces, X is an enemy piece and . is empty. Your piece at (row, col) can jump up, down, left or right over an adjacent enemy piece, landing on the empty cell directly past it. The jumped piece is captured and removed.After landing, the same piece may jump again, as in checkers. Return the largest number of jumps the piece at
(row, col) can make in one turn.Down to (2,0), right to (2,2), up to (0,2), then right to (0,4). Going down from (2,2) instead stops after 3.
Backtrack. From the current cell, try each of the four directions: the middle cell must hold an X and the landing cell must be empty. Remove the captured X, recurse from the landing cell, then put the X back before trying the next direction.
Most Jumps on a Checkers Board
Click "Run" to execute your code
Print a matrix in spiral order (2022-2024)
Spiral order has three firsthand reports, from April 2022, August 2023 and August 2024, and it also sits on LeetCode's Epic company tag. The 2023 candidate's wording was "How to print a 2D matrix in the correct order with a spiral", and the 2024 one pointed straight at the LeetCode problem. It's a boundary problem with the same edge cases every time.
Spiral Order
Problem
Start at the top-left corner and go right along the top row, then down the right column, left along the bottom row and up the left column. Then repeat on the ring inside, until every value has been visited once.
The outer ring, then the single centre cell.
Keep four walls for top, bottom, left and right. Read the top row and lower the top wall, read the right column and pull the right wall in. Read the bottom row and the left column only while the walls still leave a row or column between them.
Spiral Order
Click "Run" to execute your code
Common questions
What is the Mingo problem in the Epic Systems assessment?
A bingo-style board, 100 by 100 in the reported versions, and a list of called numbers. You return whether a row, a column or the main diagonal completes, and on which call. It has five reports from 2019 to August 2026, and an intern got it as the live final-round problem in November 2025. The fast solution maps each value to its cell and keeps a counter per line.
Is word search on the Epic Systems coding assessment?
Yes, it's the most reported grid problem in the bank, with eight reports through August 2026. Versions ask whether the word is there, where it is, or how many copies there are, and older ones include reversed and diagonal copies. Practise the straight-line version above and the bending version in the follow-up, since Epic also sits on LeetCode's tag for that one.
Are Epic Systems programming assessment questions on LeetCode?
Some are close. Word search and spiral order match LeetCode problems, and Mingo is close to the first completely painted row or column with a diagonal added. Board scoring, the snake sequence and the jumping game are Epic's own. Learn the shapes, and practise writing them in a plain text file, since the assessment gives you nothing to run.
Which of these should I practise first?
Word search and Mingo, since both have August 2026 reports and Mingo has also been the live final-round problem. Board scoring comes next, from December 2025. Then do the older three, which show how Epic mixes dynamic programming and backtracking into board problems.
Key Takeaways
- ✓Word search is the most reported grid problem. Return every copy with coordinates, trying eight directions with an end-cell bounds check.
- ✓Mingo needs a value-to-cell map and a counter per row, column and diagonal, never a rescan of the board.
- ✓Board scoring counts each run once from its first cell, in four directions, scoring length minus two.
- ✓Older snake, jumping and spiral problems still reward the same habit: trace a tiny board by hand before submitting.
Epic Systems interview guideKnow what Epic Systems asks before you walk in.
28 coding · 4 system design · 20 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.