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.
Also known as "Gauss' Trick"
This comment is hidden because it contains spoiler information about the solution
I'm familar with operators for the most part, just have not implemented them like in your solution. Still need some work on the Null-coalescing operator ('??') and the conditional operator ('?:') though.
I know that boolean values are either true or false.
Though I had it mixed up in my orignal comment, but the default value of a boolean is false.
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/default-values-table
So, I was a tad confused when trying to explain out your solution to myself.
This works, because bools are "automatically" set to 'true' right?
So, it's reading employed == true and vaction not == true, then outcome is true (set alarm)?
Can anyone give quick explantion to this one?
Thanks!
This comment is hidden because it contains spoiler information about the solution
I misspoke,
I meant that I included the use of Beginning and Ending *String identifiers.
So, is this new line a sperate string?
Getting:
Test Failed
Wrong output for "1234
"
Expected: False
But was: True
Except my solution works in VS and other Regex Testers when tested against the same Test Case...
My solution includes the use of Beginning and Ending Line identifiers.