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.
A duplicate of the (now-approved) Networking 101/5: Access Control using a Wildcard mask - I suggest to retire this Kata. If desired, translations can be submitted to the other Kata to make it available in C#, Go and JavaScript (or other languages for that matter).
For subnet with netmask
255.255.255.0
, there are 254 valid hosts, not 253 as the description suggests. E.g. in a subnet with network address / netmask192.168.1.0/255.255.255.0
, valid addresses range from192.168.1.0
through192.168.1.255
(256 addresses), where192.168.1.0
is reserved for the subnet itself and192.168.1.255
is reserved as the broadcast address, hence the number of remaining addresses = 256 - 2 = 254.startAdress
should bestartAddress
.( JS, possibly others )
Random tests are there, but value ranges are a bit limited. Please make the network start address and the netmask random also.
Please follow C# naming conventions:
PascalCase
. Also usingMain
as namespace is kind of a bad idea (for obvious reasons)camelCase
The kata doesn't explain any of the terminologies used in the description, or how is the result determined. Why is
192.168.1.22
true, and why is192.168.2.5
false? We should not be doing the kata author's job of researching network protocol jargon just to understand the task.No random tests.