Skip to content

1503-last-moment-before-all-ants-fall-out-of-a-plank

DevGod
DevGod
Vtuber
/**
* @param {number} n
* @param {number[]} left
* @param {number[]} right
* @return {number}
*/
var getLastMoment = function(n, left, right) {
return Math.max(Math.max(...left),n-Math.min(...right));
};