โ† Accenture questions
CodingReported in a candidate post, Jul 2023

Next Smaller Number

Filed under Accenture

Given an integer array, replace every element with the nearest smaller number found to its right. If no smaller number exists to its right, replace it with -1. Return null if the input array is null.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accenture questions

Collected from public candidate posts and coding forums. Updated Nov 2026.