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.
10.0.0.0 is not a valid address, it is a network address.
The first is inclusive, and the last is exclusive.
Description: "including the first one, excluding the last one"
So it's 50
This comment is hidden because it contains spoiler information about the solution
Thanks for the complements! I actually use the IPAddress class for work fairly regularly. Codewars is where I tend to write rediculous one liner linq answers just for fun.
The Kata description says "returns the number of addresses between them (including the first one, excluding the last one)"
That is why 50 is the correct answer.
From description:
So 0 counts, but 50 doesn't. 50 addresses seems correct.
This comment is hidden because it contains spoiler information about the solution
Exactly this part is meant to be the main point of the kata, and I consider getting to this conclusion to have the most educational effect. I think it's worth for the users to spend some time to get to this by themselves.
I am going to mark your post as spoiler, so others do not miss the fun of getting to the solution :)
This comment is hidden because it contains spoiler information about the solution