Opening your workspace…
Workspace/Coding room
Opening your workspace…
You're watching a Fortnite replay. Every time somebody ducks into the bush by the road, you mark the second they went in and the second they came out. At its most crowded, how many players were hiding in that bush at once?
[[2,9],[5,7],[6,10]]Output3At second 6 all three players are in the bush.
[[1,5],[5,8]]Output1The first player has left by the time the second arrives.
At the same timestamp, process departures before arrivals.
function solve(visits) { // Write your solution here. }
Tab inserts two spaces. Shift+Tab outdents. Use the arrow keys and Tab to choose a suggestion. Press Escape, then Tab, to leave the editor. Press Control or Command with apostrophe to run samples or with Enter to submit.