Anduril logo

Anduril Interview Question Bank

Anduril is a defense technology company, and much of its engineering work can only be done on-site, so roles are expected to be in the office. Interviews favor practical, quickly-solvable coding problems over puzzle-heavy ones, and the final round is often a hiring-manager conversation that rewards matching the scope the interviewer has in mind.

Coding problems
7
Before you start
Showing 33 of 33
Coding·60 min
Single reportFree preview

Rod Cutting for Maximum Profit

Given rod lengths, a per-cut cost and a per-unit sale price, choose one integer sale length that maximizes total profit. Each rod yields floor(L / saleLength) pieces; cuts are k-1 if the rod divides evenly, else k; any rod may be skipped if it would lose money. Implement `maxProfit(costPerCut, salePrice, lengths)`.

SWE
array
math
1 related discussion