InterviewLegend

Harder Test Problems

Alex Chen45 min readUpdated 33 real interview reports

On a recent Wells Fargo campus coding test, the last question is usually the hard one, and because it comes after two quicker items on the same clock, you often reach it short of time. Expect medium to hard. Each problem here has a known method that fits its limits.

Two of the four are dynamic programs in disguise, one over a budget and one over time. The other two are a graph walk and a sweep over points in the plane. Work out which kind you have early, so the minutes you have left go into typing it carefully.

Before you write the real solution, put the brute force and its cost in a comment. Then check the limits. They tell you why it won't pass. Start with the budget problem below, since it comes up most and has the shortest code, and save the graph and geometry problems for after, reading each statement twice because each one turns on a single edge rule.

Wells FargoPremium lesson · Coding round

The 4 Wells Fargo problems are below.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Hard

+ 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.

Had your Wells Fargo interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Wells Fargo interview guide

Know what Wells Fargo asks before you walk in.

31 coding · 2 system design · 16 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.