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.
wow haha i would have never thought of this. Very clever indeed
Impressive one
Yep, definitely "very minor" issues. I thought about that, and in production one should really think about the implementation of the correct algorigthm to compute overlapping intervals. But still, it's a funny, dumb and straightforward solution :)
Wow. A clever solution indeed. Just never thought it this way. !!
It's a problem with your code, print the input with:
Console.WriteLine("[{0}]", string.Join(", ", intervals));
The expected value for ShouldHandleRandomIntervals, the only test I could see the input there is also ok.
Where is your proof that there is an issue? Show us the input, expected value and your function's output at least.
ShouldHandleRandomIntervals is also ok:
Check your code.
At least ShouldAddOverlappingIntervals expects the same answer as the kata description:
Both test on my pc and your "RUN SAMPLE TESTS" are correct. However the same test at "ATTEMPT" button gives other (wrong) result. Lang C#.
c# ShouldHandleRandomIntervals and ShouldAddOverlappingIntervals dont compile true answers in attempt, but in sample tests all good.