DEV Community


Answer: Finding all common ranges finding between multiple clients

paddy3118 profile image Paddy3118 ・1 min read

This method creates a "number line" of points starting and stopping individual ranges, then traverses the number line from minimum point upwards counting an occupancy of +1 for every range started, -1 for every range stopped.

The Code


Created on Wed Jan 20 17:28:44 2021

@author: Paddy3118

Discussion (0)

Editor guide