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.
This comment is hidden because it contains spoiler information about the solution
Yes, it was.
It's a bug fixing kata, the initial code doesn't work and your job is figuring out why.
There are absolutely ways to ignore casing here. Unfortunately, one of the tests written requires case sensitivity, so your function might be perfectly correct and still fail to clear this kata.
Explicit is better than implicit.
And you earned one point.
Sounds fair. :]
OP solved it, closing
No. Actually by using toLowerCase(), you are doing alright.
You might as well use toUpperCase.
"ignore letter case" means that when you compare two letters for equality, it does not matter what case they are. For example,
S
ands
should be treated as the same.Because this is the specification. In this problem, words like
"Anita"
or"Shrimps"
are not isograms.The same or different "unicode characters" is not really relevant. "unicode characters" is a technical thing, while "letter" is more of a language concept. Bringing technical concepts into the domain of the problem is a mistake.
When writing real code, clarity is the most important rule in practice, beyond doing smart tricks. You do NOT need to use bitwise operations in non-bitwise-based logic. We only did it because we're used to code golfing.
You declared the 'sum' identifier, but never used it.
Unfortunately, your solution is not right yet. The expected funciton name is
howManyDalmatians
. But even when you fix this problem, you still have more than one bug to squash.Not a kata issue you need to keep squashing.
Okay, but what's the suggestion? "Suggestion" label is for suggesting changes to a kata. 8 kyu katas aren't supposed to be challenging.
You're not doubling it, you're squaring it instead. Not a kata issue.
Loading more items...