Dynamic Programming
When Barclays sets dynamic programming in its OA, it's usually a short one-dimensional table. One coding round asked a classic with no story around it, and another paper wrapped a budget problem in a long story. Both fit in a page of code.
The other two come from graduate and campus papers, one worth 20 marks and one worth 50. The 50-mark one looks like DP and turns out to have a number theory shortcut, but write the memo first anyway. It's correct, and it gets the recurrence on the page.
BarclaysPremium lesson · Coding round
The 4 Barclays problems are below.
- A Premium questionCoding · Medium
- A Premium questionCoding · Hard
- A Premium questionCoding · Medium
+ 1 more in this lesson
Each with hints, the follow-up and a tested solution.
Get the Barclays questions$49 a year · all 100 companies · cancel anytime
From 108 Barclays reports, forum threads behind logins and write-ups in Chinese.
Barclays interview guideKnow what Barclays asks before you walk in.
30 coding · 1 system design · 28 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.