Accenture: Largest element that is greater than everything to its right
Problem. Given an array of integers, find the largest element such that every element to its right is strictly smaller than it, a variant of the classic array-leaders idea.
Context. This was the DSA question in a knockout coding assessment for a campus advanced associate software engineer role. The same assessment had two more tasks: changing the colours and a button on a supplied web page using HTML and CSS, and a SQL query joining three given tables to pull out the required data. The candidate solved the array question but didn't attempt the other two. A technical multiple-choice test on DSA, DBMS, cloud, networking and pseudocode came before it.
What mattered. The post gives no constraints or sample input. Since it was a knockout round, working code mattered most. The interview that followed was mostly HR plus a resume walkthrough.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.