employer cover photo
employer logo
employer logo

Altair Semiconductor

Is this your company?

Altair Semiconductor interview question

Given two intervals, implement an algorithm to calculate overlapping area without using if statements. Max() and min() commands are allowed. For example: interval_1 = [3, 6] interval_2 = [5, 7] overlapping = [5, 6]