Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% off
OA [CodeSignal] Final Prices After Discount
Medium
You are given an array prices where prices[i] is the price of an item.
For each item at index i, find the first item at index j > i such that prices[j] <= prices[i]. This item acts as a discount for item i.
...
More CodeSignal OAs interview questions
- OA [CodeSignal] Count Palindrome Paths in Treehard
- OA [CodeSignal] Balanced Numbers in Permutationhard
- OA [CodeSignal] Adventure Levelshard
- OA [CodeSignal] Shortest Good Subarraymedium
- OA [CodeSignal] Purchase Optimizationhard
- OA [CodeSignal] Minimum Operation To Reduce n To 0medium
- OA [CodeSignal] Minimum Edge Reversal Roothard
- OA [CodeSignal] Max Throughput With Budgethard
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.