Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Me too :(
but why you replied my comment
Look at these 2 pairs: {90, 105} and {104, 126} - your solution counts days 104 and 105 twice. You need to check if trips are interlapsing and if yes, then only cound each day once.
110 is right answer
you cant sum repeated days
small hint: in your test example are 2 repeated days
I tried your solution; I don't see problems with null but your function times out.
Not an issue with the test. Maybe you're not checking for null values correctly or something in your code creates something nullable.