InterviewLegend

Digit Sums, Composites & Array Math

Alex Chen35 min readGuide updated

The DSA task on the 2026 Accenture campus paper is one problem, usually somewhere between easy and medium. In August and September 2026, a good share of the named ones were number math. The digit-sum task came from the 2026 Elite Engineer assessment, and Elite drives for the L11 role were advertised at ₹22.15 LPA CTC. Other papers that season asked for the nearest composite, a sum of squares and a count of moves.

This lesson works through those four, all from September 2026 papers. Treat every version below as something like the real one. Where a bound or a tie rule matters, the samples on your own paper settle it.

The Accenture angle
A machine grades this round. Accenture scores the coding answers automatically, and a threshold decides who moves on. These four take minutes to code. Points go missing on 0, a tie, an empty array or a value that overflows, so try those inputs before you submit.

AccenturePremium lesson · Coding round

The 4 Accenture problems are below.

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

+ 1 more in this lesson

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

Get the Accenture questions

$49 a year · all 108 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.