On 6/10/26 07:12, Lazar, Lijo wrote: > What about closest_idx = i; and break here? You may also break the > loop if new_diff > closest_diff
On exact match I'll set closest_idx = i, break, and skip the fallback path entirely. For the closest-match search, I'll add an early exit when the diff starts increasing (since DPM levels are monotonically ordered). Will address in v2. Thanks, Priya hosur
