Skip to content

Interview Solver

FeaturesPricingHelp
Sign In
FeaturesPricingHelpSign In
  1. Interview Questions
  2. /
  3. Sourcegraph

Sourcegraph LeetCode Interview Questions

Practice 49 real coding problems frequently asked in Sourcegraph technical interviews. Master these questions to ace your next Sourcegraph software engineering interview.

11 Easy
32 Medium
6 Hard

Top Topics at Sourcegraph

ArrayStringTwo PointersHash TableStack

Ace your Sourcegraph interview with AI

Get real-time AI assistance during your actual interview. Invisible to screensharing.

Start Free Trial

Sourcegraph Interview Problems

ProblemDifficultyDiffFrequencyTopicsAction
Subsets
100%
MediumM
100%
ArrayBacktracking+1
Solve→
Two Best Non-Overlapping Events
98%
MediumM
98%
ArrayBinary Search+3
Solve→
Digit Operations to Make Two Integers Equal
96%
MediumM
96%
MathGraph+3
Solve→
Longest Consecutive Sequence
91%
MediumM
91%
ArrayHash Table+1
Solve→
Find the Index of the First Occurrence in a String
89%
EasyE
89%
Two PointersString+1
Solve→
Decode String
88%
MediumM
88%
StringStack+1
Solve→
Reverse Words in a String
86%
MediumM
86%
Two PointersString
Solve→
Find K Pairs with Smallest Sums
84%
MediumM
84%
ArrayHeap (Priority Queue)
Solve→
The kth Factor of n
83%
MediumM
83%
MathNumber Theory
Solve→
Merge Intervals
82%
MediumM
82%
ArraySorting
Solve→
Palindrome Number
80%
EasyE
80%
Math
Solve→
String Compression
80%
MediumM
80%
Two PointersString
Solve→
Palindrome Linked List
78%
EasyE
78%
Linked ListTwo Pointers+2
Solve→
Subarray Sum Equals K
77%
MediumM
77%
ArrayHash Table+1
Solve→
Maximum Nesting Depth of the Parentheses
76%
EasyE
76%
StringStack
Solve→
Remove All Adjacent Duplicates in String II
74%
MediumM
74%
StringStack
Solve→
Simplify Path
74%
MediumM
74%
StringStack
Solve→
Asteroid Collision
71%
MediumM
71%
ArrayStack+1
Solve→
Regular Expression Matching
69%
HardH
69%
StringDynamic Programming+1
Solve→
Interval List Intersections
66%
MediumM
66%
ArrayTwo Pointers
Solve→
Product of Array Except Self
58%
MediumM
58%
ArrayPrefix Sum
Solve→
Check If N and Its Double Exist
57%
EasyE
57%
ArrayHash Table+3
Solve→
Binary Tree Right Side View
55%
MediumM
55%
TreeDepth-First Search+2
Solve→
Custom Sort String
54%
MediumM
54%
Hash TableString+1
Solve→
Maximum Number of Occurrences of a Substring
51%
MediumM
51%
Hash TableString+1
Solve→

Pass your interview with AI assistance

Get real-time solutions during your actual coding interview. Invisible to screensharing.

Start Free Trial
Largest Rectangle in Histogram
51%
HardH
51%
ArrayStack+1
Solve→
Binary Tree Vertical Order Traversal
48%
MediumM
48%
Hash TableTree+4
Solve→
Maximum Area Rectangle With Point Constraints I
47%
MediumM
47%
ArrayMath+5
Solve→
Zero Array Transformation II
45%
MediumM
45%
ArrayBinary Search+1
Solve→
Longest Increasing Path in a Matrix
44%
HardH
44%
ArrayDynamic Programming+6
Solve→
Single Number
42%
EasyE
42%
ArrayBit Manipulation
Solve→
Counting Bits
40%
EasyE
40%
Dynamic ProgrammingBit Manipulation
Solve→
Coin Change II
38%
MediumM
38%
ArrayDynamic Programming
Solve→
Find First and Last Position of Element in Sorted Array
34%
MediumM
34%
ArrayBinary Search
Solve→
Sort Colors
34%
MediumM
34%
ArrayTwo Pointers+1
Solve→
Valid Palindrome
34%
EasyE
34%
Two PointersString
Solve→
Pow(x, n)
33%
MediumM
33%
MathRecursion
Solve→
Daily Temperatures
33%
MediumM
33%
ArrayStack+1
Solve→
Trips and Users
32%
HardH
32%
Database
Solve→
Integer to English Words
32%
HardH
32%
MathString+1
Solve→
Roman to Integer
31%
EasyE
31%
Hash TableMath+1
Solve→
Check Completeness of a Binary Tree
29%
MediumM
29%
TreeBreadth-First Search+1
Solve→
Design Tic-Tac-Toe
29%
MediumM
29%
ArrayHash Table+3
Solve→
Make String a Subsequence Using Cyclic Increments
26%
MediumM
26%
Two PointersString
Solve→
Word Pattern II
25%
MediumM
25%
Hash TableString+1
Solve→
Valid Word Abbreviation
24%
EasyE
24%
Two PointersString
Solve→
Remove Element
23%
EasyE
23%
ArrayTwo Pointers
Solve→
Making A Large Island
21%
HardH
21%
ArrayDepth-First Search+3
Solve→
Maximum Value at a Given Index in a Bounded Array
21%
MediumM
21%
Binary SearchGreedy
Solve→

Similar Companies

Explore interview questions from other companies with similar interview patterns.

Adidas
49 problems
Albertsons
49 problems
And Digital
49 problems
Argyle
49 problems
Bae Systems
49 problems
Bayer
49 problems

Frequently Asked Questions

What LeetCode problems does Sourcegraph ask in interviews?

Sourcegraph commonly asks 49 coding problems in technical interviews, including Subsets, Two Best Non-Overlapping Events, Digit Operations to Make Two Integers Equal. The difficulty breakdown is 11 Easy, 32 Medium, and 6 Hard problems.

How should I prepare for a Sourcegraph coding interview?

Focus on the most frequently asked problems first, especially those with high frequency scores. Sourcegraph interviews typically emphasize Array and String. Practice explaining your thought process while coding.

What is the difficulty level of Sourcegraph coding interviews?

Based on our data, Sourcegraph interviews include 11 Easy (22%), 32 Medium (65%), and 6 Hard (12%) problems.

Ready to ace your Sourcegraph interview?

Join thousands of engineers who landed offers at top tech companies.

Get Started Free

No credit card required

All CompaniesEasy ProblemsMedium ProblemsHard ProblemsBrowse by Topic
Interview Solver
  • Home
  • Pricing
  • Sign in
  • Contact
  • Blog
  • Companion
  • Help Center
  • Use Cases
  • Software Engineer
  • Product Manager
  • Misc
  • Privacy Policy
  • Terms and Conditions
  • Discord Community
  • Affiliate Program
  • Compare
  • All Comparisons
  • vs Final Round AI
  • vs UltraCode
  • vs Interview Coder
  • vs LockedIn AI
  • vs AI Apply
  • Free Tools
  • ATS Resume Checker
  • STAR Method Builder
  • Salary Lookup
  • Big O Cheat Sheet
  • Total Comp Calculator
  • View All →
  • Interview Questions
  • Google Questions
  • Amazon Questions
  • Microsoft Questions
  • Meta Questions
  • Apple Questions
  • TikTok Questions
  • View All →
© 2026 Interview Solver, Inc. All rights reserved.