Interview Intel · Barclays

Barclays coding interview
questions, leaked.

18 problems reported across recent Barclays interviews. Top patterns: array, string, depth first search. The list below is what most reported candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

Barclays pulls from a tight, array-heavy question bank. Eighteen problems total: mostly medium difficulty, with arrays showing up in ten of them. You're looking at a lot of subarray logic, matrix traversal, and hash-table lookups. Two Sum, 3Sum, Number of Islands, and Maximum Subarray are the bread and butter. Strings come second, but they're trickier: Lexicographically Smallest Generated String is a hard greedy problem that catches people off-guard. If you hit a wall mid-assessment, StealthCoder runs invisibly during screen share and surfaces a working solution in seconds, invisible to the proctor.

Tracked problems
18
Easy
7/ 39%
Medium
8/ 44%
Hard
3/ 17%

Top problems at Barclays

leaked_problems.csv18 rows
#ProblemDiffFrequency
01Count Submatrices with Top-Left Element and Sum Less Than kMEDIUM
100.0
02Double Modular ExponentiationMEDIUM
100.0
03Furthest Point From OriginEASY
100.0
04Mark Elements on Array by Performing QueriesMEDIUM
100.0
05Lexicographically Smallest Generated StringHARD
77.9
06Number of IslandsMEDIUM
71.0
07Two SumEASY
71.0
08Isomorphic StringsEASY
71.0
093SumMEDIUM
71.0
10Minimum Number of Refueling StopsHARD
71.0
11Maximum Employees to Be Invited to a MeetingHARD
71.0
12Valid ParenthesesEASY
71.0
13Merge Sorted ArrayEASY
61.2
14Maximum SubarrayMEDIUM
61.2
15PermutationsMEDIUM
61.2
16Climbing StairsEASY
61.2
17Lexicographical NumbersMEDIUM
61.2
18Palindrome Linked ListEASY
61.2

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual Barclays OA. The proctor cannot see it. Screen share cannot detect it. Built by an Amazon engineer who used it to pass JPMorgan's OA and system design loop.

Get StealthCoder
Topic distribution
What this means

Arrays dominate the interview, so your first week goes to subarray patterns, prefix sums, and two-pointer logic. Number of Islands is the hardest pure array problem, but it's also predictable: depth-first search on a grid. The middle tier problems (3Sum, Maximum Subarray, Mark Elements on Array) mix sorting, dynamic programming, and heaps, so drilling those patterns back-to-back matters. Strings are low volume but high variance: Valid Parentheses and Isomorphic Strings are warm-ups; Lexicographically Smallest Generated String will wreck you if you haven't seen greedy string matching. The three hard problems are genuine filters. If you blank on one mid-OA, StealthCoder is your hedge: it reads the problem and returns a working answer in real time, keeping you moving to the next one.

Companies with similar patterns

If you prepped for Barclays, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass Barclays.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Built by an Amazon engineer who used it to pass JPMorgan's OA and system design loop. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Barclays interview FAQ

How much time should I spend on array problems versus strings at Barclays?+

Arrays appear in ten of eighteen problems, strings in four. Spend 70% of your prep time on array patterns: subarrays, prefixes, two pointers, and matrix DFS. Strings are secondary, but don't skip greedy string problems. Barclays loves a Lexicographically Smallest variant.

Is dynamic programming mandatory for Barclays?+

Three problems explicitly require it: Maximum Subarray, Minimum Number of Refueling Stops, and Mark Elements on Array. You don't need expert-level DP, but you should solve Maximum Subarray cold. Minimum Number of Refueling Stops is hard; that's where StealthCoder saves you during the live OA.

What's the hardest topic I'll actually see at Barclays?+

Greedy string matching shows up in Lexicographically Smallest Generated String. Hash tables paired with sorting appear in Mark Elements on Array. Both are hard problems, but they're only three of eighteen. Depth-first search on matrices is more frequent and easier to practice.

Should I study heap priority queues before my Barclays assessment?+

Yes, but not first. Heaps appear in two problems: Mark Elements on Array and Minimum Number of Refueling Stops. Both are medium to hard. Learn heaps after you nail two pointers and basic sorting, so you're not trying to learn two things at once during the OA.

Is two pointers worth drilling separately for Barclays?+

Absolutely. Two pointers shows up in three problems: Merge Sorted Array, 3Sum, and Furthest Point From Origin. It's a tactic that bleeds into sorting and array manipulation. Spend time on 3Sum and Merge Sorted Array until you can code them without thinking.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and Barclays. StealthCoder is not affiliated with Barclays.