InterviewLegend

Greedy & DP: Candy, Cars & Coins

Alex Chen35 min readGuide updated

The DSA task in Accenture's 2026 coding round is usually easy to medium, and mostly arrays and strings. The harder items come from August and September 2026 papers, several of them at the L11 "Elite" drives advertised at ₹22.15 LPA CTC. Three are here: a candy problem, a count of the cars a team trip needs, and a Premium question DP.

Each version below is something like what candidates met: the task and its core rule, with bounds and tie rules set so you can practise the idea. Write them in the language you'll use on the day. An October 2026 candidate said the round offered only Python, Java and C#, so check your own test's list early.

The Accenture angle
Decide greedy or DP before you type. Two of these fall to a greedy rule you can defend in one sentence. A Premium question looks greedy and isn't. A greedy answer can pass the sample you see and fail the cases you don't, which is a bad trade on a paper with few visible tests.

AccenturePremium lesson · Coding round

The 3 Accenture problems are below.

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

Each with hints, the follow-up and a tested solution.

Get the Accenture questions

$49 a year · all 107 companies · instant access

20,000+ candidate reports

Accenture interview guide

Know what Accenture asks before you walk in.

23 coding · 5 system design · 34 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Accenture interview?How we research

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