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.
I believe this solution works due to incomplete test cases. Like [0,1,2,2,4] will return a true when it should not.
I don't know who made this Kata for Java, but you are a psycho! XD
I remember doing this kata in python and it was waaay easier to fix.
Java version have at least 5 times more errors! ><
This comment is hidden because it contains spoiler information about the solution
python new test framework is required. updated in this fork
Got it... thank you for that
When the CAPS key has been pressed, uppercase gets swapped with lowercase and vice versa.
As for the error messages, they don't show the input, only what is expected and what they got from your solution.
You can view the input by trying to print to the console.
BTW, you should look through some other comments to see if anyone has had the same problem in the past.
The basic three examples pass with my solution. But the random tests (for Python) seem really messed up.
For example, why should 'BBBbB' equal 'BBbbB'? There should be no change in the output string because there is no 'a' or 'A' in the string. Therefore the CAPS key is never pressed. There are dozens of these unless I am misunderstanding the problem.
Another example: 'ONCSQ1DuddDnOXY' should equal 'OnCSq1DuddDnOxy'. What???
This comment is hidden because it contains spoiler information about the solution
exact copy of my solution!
JS: As others have pointed out, the input should not be
null
I managed to solve it thanks to your comment (which is obviously a direct answer to the kata lol). Still i don't understand why on step 4, "B" stays "B" when we just turned off caps on step 3.
edit: nevermind I have figured it out, thank you !
Individual letters' case matters:
"a"
turns caps on"b"
becomes"B"
(lowercase + caps = uppercase)"A"
turns caps off"B"
stays"B"
(uppercase = uppercase)"a"
turns caps on"B"
becomes"b"
(uppercase + caps = lowercase)I don't understand why fatFingers('abABaBabAb') should return 'BBbbB' and not 'BbBbB'.
While reading other comments i see people referring to the shift key but there is nowhere specified that the guy would press this key ???
Either i misunderstood the kata or it's just not clear enough... Anyone can clarify please ?
i have the same exact code... but it gives me the "int to double is lossy" error. Im just confused at this point.
(JS) Description doesn't mention null can be given as an argument, and test expects null in that case.
Loading more items...