GitHub Coding Interview Questions
26 GitHub coding interview problems with full optimal solutions — 12 easy, 10 medium, 4 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an GitHub interviewer values, and a FAQ section.
Showing 12 problems of 26
- #1easyfoundational
1. Two Sum
Find indices of two numbers in an array that sum to a target — GitHub uses this to gauge hash-map intuition before diving into Git ref lookup problems.
- #2easyfoundational
2. Valid Parentheses
Determine if a string of brackets is balanced — GitHub uses this as a warm-up before diving into nested merge conflict markers and diff hunk delimiters.
- #3easyfoundational
3. Merge Two Sorted Lists
Merge two sorted linked lists into one sorted list — GitHub treats this as the toy version of merging two sorted commit-date streams during git log --merge.
- #4easyfoundational
4. Remove Duplicates from Sorted Array
Remove duplicates in-place from a sorted array — GitHub uses this as the entry-level analogue to dedup-ing sorted SHA streams in the packfile delta index.
- #5easyfoundational
5. Remove Element
Remove all occurrences of a value from an array in-place — GitHub's lead-in to pruning broken refs from a packed-refs file without reallocating.
- #6easyfoundational
6. Search Insert Position
Return the index at which a target would be inserted in a sorted array — GitHub's warm-up for the binary search inside the pack-index .idx fan-out table.
- #7easyfoundational
7. Maximum Subarray
Find the contiguous subarray with the largest sum — GitHub uses this Kadane warmup before stepping into hunk-coalescing scoring in their diff renderer.
- #8easyfoundational
8. Plus One
Increment a number represented as a digit array by one — GitHub's tiny entry to BigInt carry handling, mirroring the version-counter bump in tag-name auto-increment scripts.
- #9easyfoundational
9. Merge Sorted Array
Merge two sorted integer arrays in place into nums1 — GitHub's setup for the three-way merge core: writing from the back to avoid clobbering unread input.
- #10easyfoundational
10. Binary Tree Inorder Traversal
Return the inorder traversal of a binary tree's node values — GitHub's lead-in to traversing the parent-DAG of a commit history in chronological order.
- #11easyfoundational
11. Same Tree
Determine if two binary trees are identical — GitHub's stand-in for SHA-equality checks across two commit subtrees in a fast-forward verification.
- #22easyfoundational
22. Symmetric Tree
Check whether a binary tree is a mirror of itself using recursive or iterative paired traversal, a BFS/DFS tree skill GitHub tests in screening rounds.
Related interview-prep guides
Microsoft Teams Tech Interview Guide (2026): What to Expect
Microsoft Teams is the default interview surface at any company running Office 365: Fortune 500, finance, healthcare, government tech, legacy enterprise. Many enterprise interviewers record and transcribe the call into the company's OneDrive, which changes how you should prepare versus Zoom. This is the candidate-side guide to running a Teams interview in 2026.