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"
z = a + b * c; it must be z = a + b + c; # I suppose misstype in Details
I had the same problem on Python language, I had to modify my regex to avoid \n at the end. But I saw other solutions published by other people on Python with a regular expression that not includes it and have failed for me on the first attemps. Its a bit confusing to see solutions that was not valid or doesn't works actually. I'm figuring that its posible that the kata tests cases was changed after the solution was published, may be?
Test your solution with
ExpressionsMatter(1, 1, 1) == 3
and you'll see.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.
no, boolean values are EITHER
true
ORfalse
. you should also study C# operators (of all kinds)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)?
This comment is hidden because it contains spoiler information about the solution
Can anyone give quick explantion to this one?
Thanks!
This comment is hidden because it contains spoiler information about the solution
It's part of the string:
"1234\n"
I misspoke,
I meant that I included the use of Beginning and Ending *String identifiers.
So, is this new line a sperate string?
Not a kata issue, it's a problem with your code, there is a new line there.
That's not enough.
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.