Is there any limitation on the number of horses with same leg size?
What's the upper limit of N? (C#)
This is a fine non-recursive solution. There is however some duplication in the methods that can be removed.
Never code if you're drunk
jesus christ lol
Absolutely forgot about it. The use of UnionWith will be slightly more effective (especially on large collections). Thanks! :-)
Thanks for solving my kata! I just noticed onet thing in your solution and wanted to give you a small hint: ISet has a method called UnionWith which is pretty much equivalent to AddRange for lists. I think it was made distinct for sets because they do not necessarily operate on ranges per se. Cheers!