Price Check

Problem Overview

  • Determine how many sold item prices were entered incorrectly at a shop with manual cash registers.
  • Inputs: arrays of product names, their correct prices, sold product names, and recorded sold prices; Output: an integer count of pricing errors.
  • Domain: retail price verification; compare entries to official prices.
  • Constraints include valid array sizes and reasonable price ranges.
  • Citadel interviews coding interview problem and common interview question.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: