InterviewDB Question

Integers Rescaling: Normalize a List of Integers to a Target Range Without Floating-Point Loss

Question Details

Problem Given a list of integers and a target range [lo, hi], rescale each value to fit within that range. Values should be scaled proportionally. Handle edge cases: all identical values, negative inputs, and integer-only output. Example: Follow-ups…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone