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.
Order of operations can sometimes cause calculations to resolve in ways we did not mean for. Using parenthesis can nudge the program more in the direction you mean for it to calculate an answer instead of the ordinary precedence set by the language. This is a C# program, and you can read about C# precedence here: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/arithmetic-operators
Why are there "()" here?
Well I feel really dumb
String
self
reserved word). Otherwise the regex will automatically return false.This comment is hidden because it contains spoiler information about the solution
Two reasons.
count only accepts one string as an argument.
('x' && 'X') evaluates to false, so you are essentially saying str.count(false).
This comment is hidden because it contains spoiler information about the solution