When formulating assertions, JUnit quickly reaches its limits. The AssertJ and Google Truth libraries offer new possibilities ...
auto iter1 = lower_bound(walls.begin(), walls.end(), max(i==0?INT_MIN:r[i-1].first+1, r[i].first-r[i].second)); auto iter2 = upper_bound(walls.begin(), walls.end(), r ...