What GitHub Tests
- Know the coding rounds a 2026 GitHub loop can include, from the OA to the live builds
- Know which problems candidates got in 2026 and which formats are history
- Know what the interviewers score, which language to use and what to ask about AI tools
GitHub's software engineer coding rounds look a lot like the job. You build a small game, call an API that may fail, or write the code behind a REST endpoint. Puzzle-style algorithm questions do show up, but they're the exception.
You can see it in the 2026 loops. A March 2026 SWE II interview day had two technical rounds: build a game of Battleship, then set up some HTTP calls. Battleship came back in a November 2026 senior loop, alongside a query engine over JSON data. And in September 2026 a senior candidate was told one live session would be building a REST API HTTP service. This page walks through the rounds and how they're scored, then lists the problems newest first. The lessons after it work each problem in full.
The GitHub coding rounds
GitHub hires team by team, and its careers page says the assessment step depends on the role. So the coding part of your loop can differ from the next candidate's. Most 2025 and 2026 loops use some mix of the rounds below. Ask your recruiter which ones you'll get. Recruiters have told some candidates the topics ahead of time, as one did before a 2025 SWE I loop: "a battleship question and an API question."
The online assessment. This is the usual first technical step. It's one problem, LeetCode medium in style, with about 60 minutes to solve it. Candidates in Canada and the UK took it on Codility in 2025. A New York candidate in February 2026 got HackerRank and described "one LeetCode recursive problem." In April 2026 the Codility screen could come before or after the hiring manager call, with the problem picked per role from a large bank. Not everyone takes it. A March 2026 SWE II candidate went from the recruiter straight to the interview day.
The interview day. For SWE I through SWE III it's usually two technical rounds and one culture round, all on video. Senior loops add system design, and staff and principal loops in April and May 2026 listed two coding rounds plus design and behavioral. The technical rounds are live coding, and they're where Battleship, the HTTP work and the query engine show up.
The take-home and its follow-up. Some teams still run one. An October 2026 candidate did a take-home, then a follow-up interview on it, then system design. The next step was a pair-coding round the recruiter said was not LeetCode style. Senior and SWE II loops in 2024 and 2025 worked the same way, with a take-home followed by pair programming or a review of what you built. Expect to defend your choices and possibly extend the code live. One 2025 senior candidate warned that system design questions came up inside the pairing session.
A LeetCode-style round, sometimes. Here candidates disagree, so hold it loosely. Some 2024 and 2025 loops at SWE II and senior level had a classic algorithms problem, once followed by questions on scalability and security. In April 2026 one engineer called the coding "LeetCode medium to hard" while another called it "Software design heavy No LC." An engineering manager loop in August 2026 seemed to have one LeetCode-style round and one machine-coding round. The named problems were easy ones, such as reversing a linked list (2024) and reversing a string as a phone-screen warm-up (late 2024). Prepare for a medium. Just don't let it take over your prep.
Interns get a shorter path. One 2026 intern went from an OA to a recruiter screen, then to a final with one technical and one behavioral interview. In another intern final, back in March 2026, the technical task was finding a value in a CSV table.
The GitHub coding interview questions from 2026
Here's what candidates described in 2025 and 2026, newest and most repeated first, with older versions labelled by year. Wording shifts from loop to loop, so treat each one as something like the problem you'll see.
Battleship. It has turned up on interview day at SWE I (2025), SWE II (March 2026) and senior level (November 2026). Expect something like this: a board and ships, placement checks, firing at a cell and reporting miss, hit or sunk, then turns and game over. The senior version asked for an object-oriented design and moved on to running it in production as an online game, with questions on performance and system issues. That design side has its own lesson. Battleship was also GitHub's take-home back in 2017, three ships of length three on a 10 by 10 grid. It's the one problem every GitHub candidate should be able to build cold. Battleship Game Logic & Ship Placement works it part by part.
The core is a map from cells to ships and a count of what each ship has left. Once that's in place, every later part is a small addition.
class Board: def __init__(self, size=10): self.size = size self.ship_at = {} # (row, col) -> ship name self.cells_left = {} # ship name -> cells not yet hit self.shots = set() def place(self, name, cells): for row, col in cells: if not (0 <= row < self.size and 0 <= col < self.size): raise ValueError("ship is off the board") if (row, col) in self.ship_at: raise ValueError("ships overlap") for cell in cells: self.ship_at[cell] = name self.cells_left[name] = set(cells) def fire(self, row, col): if (row, col) in self.shots: return "already fired" self.shots.add((row, col)) name = self.ship_at.get((row, col)) if name is None: return "miss" self.cells_left[name].discard((row, col)) return "hit" if self.cells_left[name] else "sunk" def all_sunk(self): return all(not cells for cells in self.cells_left.values())HTTP calls and REST APIs. The second interview-day round is usually about APIs. In March 2026 a SWE II candidate was asked to "set up some HTTP calls." In September 2026 a senior candidate heard that one live session would be building a REST API HTTP service. Older versions show where these rounds go. Candidates fetched data from an API and parsed it into a map (2024), or held a REST API design round (late 2024). In 2022 one candidate had to upload a JSON file to a server built to fail on purpose, so the round was really about catching errors and retrying. See HTTP Calls, Retries & REST APIs.
The JSON query engine. The November 2026 senior loop opened its coding with this one. You get tables as a JSON dictionary and write relational-style queries over them, then add WHERE and ORDER BY in follow-ups. It's newer and less repeated than Battleship, but it's as fresh as anything here. The March 2026 intern task, finding a value in a CSV table, is a smaller cousin and sits in the same lesson, JSON Query Engine & Table Lookups.
The OA problem. It's usually one unnamed medium. The two named ones are cars crossing a two-lane bridge with a weight limit (Codility, January 2025) and an older stack machine (Codility, May 2022). Both are worked, along with the format itself and the take-home follow-up, in The Online Assessment & Take-Home Follow-Up.
What the interviewers score
The algorithms in these rounds are light. A Battleship board is a dictionary and some bounds checks. What gets judged is whether your code reads like something a teammate would approve: clear classes, sensible names, errors you handle instead of ignore, and a design that holds up when the follow-up lands. The follow-ups are where the senior bar shows. The November 2026 senior candidate went from game logic to deployment and performance, and the 2022 upload task only made sense once you planned for failures.
GitHub's own careers page tells candidates to "Tell a story. Demonstrate your thought process." Take that literally in a pairing round. Say why you picked a structure. Name the edge case before you handle it. Run your code early, and keep running it. For take-homes, GitHub's 2022 blog post on its process said submissions were anonymized and scored against a rubric, with automated tests running in GitHub Actions. Candidates from that era say the PR description, the commit history and the tests they wrote all counted toward the result.
Treat every round as a pull request. Get one small piece working, show it running, then extend it. When a follow-up changes the rules, refactor the shared part once and say why. On a take-home, write a short PR description of your trade-offs. Candidates say it was graded along with the code.
Language, tools and AI
You usually choose your own language. Candidates have used C# and Ruby among others, and the take-home has long let you pick up front. Some teams pin their own stack. Rails, Java with Spring, and Go or Ruby have all been required for team-specific take-homes and pairings in past years. A GitHub engineer said in 2025 that backend services use Go, Ruby and TypeScript.
Pairing has sometimes run in Codespaces. GitHub described moving a Rails pairing exercise there in 2021. When there was a PR review round, the code was often Ruby whatever language you used, and one candidate noted you don't need to master Ruby to review it well. Several live rounds in 2021 and 2022 let candidates search the web.
GitHub has no published rule on AI assistants like Copilot in its OA or interviews. Its 2022 take-home allowed the internet "for documentation and help," but that was written before AI tools were common in interviews, so don't read it as permission. Some 2026 job postings list experience with AI-assisted coding tools as a plus. Ask your recruiter what's allowed in each round, and get the answer before you start.
Older formats from 2015 to 2024
For years the GitHub coding interview meant a take-home from Interview-bot. From about 2018 to 2022, a bot made you a private repo, you worked in your own editor, and you opened a pull request before the time ran out. Candidates describe a five-hour cap with two to three hours suggested. The usual task was a small data storage API with GET, PUT and DELETE that stored unique objects without duplicates. Another version had you extend an existing app, often Rails, until its tests passed. The storage API was last reported in 2024, and no 2026 candidate describes this exact setup. Practice it anyway, because it's still the best rep for a practical take-home. Older Practice Problems works both versions.
The interview day used to look different too. From 2016 to 2024 many loops had a PR review round. You'd read a pull request, often a Rails commit, leave comments and decide whether to approve it. One candidate found more than 20 issues and learned the interviewer cared about one. Others restored a broken environment or fixed a bug from a report. A PR review and an alert-triage task are worked in the same lesson.
Some roles had their own take-home. SRE candidates from 2017 to 2022 built DNS tooling, such as comparing live DNS records against a YAML file, which is worked there too. Loops in India in 2021 and 2022 were more algorithm-heavy, with problems like turning phone keypad digits into dictionary words, searching for a word in a letter grid and finding all pairs that sum to a target. That format hasn't come up since 2022.
Practice by problem family
Study in this order. Battleship first, since it's the problem most likely to come up, then the API round and the query engine. After those comes the assessment and take-home format. The last lesson holds older problems, each asked more than once. They're good reps, but none has been reported in the last 12 months.
Battleship Game Logic & Ship Placement
The 2025 and 2026 interview-day problem at SWE I, SWE II and senior: board, placement, firing, turns and the production follow-ups.
HTTP Calls, Retries & REST APIs
Setting up HTTP calls (2026), building a REST service live (2026), and fetch, parse and retry against a flaky server.
JSON Query Engine & Table Lookups
Relational-style queries over JSON with WHERE and ORDER BY (November 2026), plus the CSV lookup from a 2026 intern final.
The Online Assessment & Take-Home Follow-Up
The one-problem Codility or HackerRank OA and the take-home that some teams still follow with a review round.
Older Practice Problems (2015-2024)
Six older tasks, each asked more than once: the storage API take-home, extend-the-app, a PR review, alert triage, a DNS diff and a class design.
Common questions
What is the GitHub coding interview like?
Mostly practical. In 2026 candidates built Battleship, set up HTTP calls and wrote a query engine over JSON, and a senior candidate was told to expect a live REST API build. Interview day for SWE I to SWE III usually has two technical rounds and one culture round. Senior and staff loops add system design. Some loops also include a LeetCode-style round.
What is on the GitHub OA?
The GitHub online assessment is usually one problem, LeetCode medium in style, in about 60 minutes. Candidates took it on Codility in 2025, and one took it on HackerRank in February 2026. The problem is rarely named. Older named ones are a two-lane bridge with a weight limit and a stack machine. Some candidates skip the OA entirely.
Does GitHub still give a take-home?
Some teams do. An October 2026 candidate had a take-home, then a follow-up interview on it, then system design and a pair-coding round. The classic Interview-bot take-home, a repo and a pull request with a five-hour cap, is mostly from 2018 to 2022.
Is the GitHub coding interview LeetCode?
Mostly not. The 2026 rounds candidates describe are practical builds. Still, some loops include a LeetCode-style problem, and the OA is LeetCode style. Prepare a solid medium, then spend most of your time on clean, working code for small systems.
What language should I use?
Usually your choice. Pick the one you write fastest and most cleanly. Some teams require their own stack for a take-home or pairing round, so check with your recruiter. PR review rounds, when they ran, were often in Ruby.
Can I use Copilot or other AI tools?
GitHub doesn't publish a rule either way. Ask your recruiter for each round before you start, and assume the answer is no until you hear otherwise.
How do I prepare?
Build Battleship from scratch under time, with placement checks and a game-over check. Then write a small HTTP client that retries on failure, and a tiny REST service with a few routes. Do one take-home-style project and write its pull request description. Add a few LeetCode mediums for the OA, and talk through every choice as you code.
Key Takeaways
- ✓GitHub's 2026 coding rounds are practical: Battleship, HTTP calls, a JSON query engine and a REST API service.
- ✓Many loops open with a one-problem OA on Codility or HackerRank, about 60 minutes. Some teams use a take-home and follow-up instead.
- ✓Code is judged like a pull request: clear classes, handled errors and a design that survives the follow-up.
- ✓There is no published AI rule. Ask your recruiter about each round, and confirm your language and stack.
Free GitHub interview pages
GitHub interview guideKnow what GitHub asks before you walk in.
20 coding · 3 system design · 31 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.