InterviewLegend

Older Practice Problems (2015-2024)

Alex Chen60 min readGuide updated

Every task on this page was asked at GitHub more than once, and none has come up in the last 12 months. They come from the years when GitHub's coding step was a repo take-home and many interview days included a pull request review. Some teams still send a take-home and go through it with you afterward, so the first two are still worth an evening.

Do the current material first. Battleship, the HTTP round and the online assessment cover what 2025 and 2026 loops ask. Then use this page for practice, and ask your recruiter whether your loop includes a take-home or a code review.

The GitHub angle
The pull request gets graded, and the program is only part of it. Candidates said reviewers read your structure, commits, tests and PR description. One 2021 candidate passed every test and was still turned down.

GitHubPremium lesson · Coding round

The 6 GitHub problems are below.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Easy
  3. A Premium questionCoding · Medium

+ 3 more in this lesson

Each with hints, the follow-up and a tested solution.

Get the GitHub questions

$49 a year · all 122 companies · instant access

21,000+ candidate reports

GitHub interview guide

Know what GitHub asks before you walk in.

20 coding · 3 system design · 31 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your GitHub interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.