Strings, Anagrams and Brackets
String problems turn up all through the Wells Fargo process. Live technical rounds ask them often, and the early careers HackerRank test has opened with one. They stay at medium, and interviewers often want the idea in one sentence before you write any code. Saying it first also gives the interviewer a chance to steer you before you've spent time on the wrong approach.
Each problem here rests on one small structure, such as a stack of open brackets or a key made from sorted letters. Name that structure first. The loop around it is short, and most bugs live at the ends of the string.
The four problems below run from the most asked to the least. Run your own version against the tests before you open the walkthrough. A one-letter string and an empty string catch more bugs here than any long input.
Wells FargoPremium lesson · Coding round
The 4 Wells Fargo problems are below.
- A Premium questionCoding · Medium
- A Premium questionCoding · Medium
- A Premium questionCoding · Medium
+ 1 more in this lesson
Each with hints, the follow-up and a tested solution.
Get the Wells Fargo questions$49 a year · all 100 companies · cancel anytime
From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.
Wells Fargo interview guideKnow what Wells Fargo asks before you walk in.
31 coding · 2 system design · 16 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.