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.
So an invalid sentence (as in not understandable English) is still valid input?
Hmm. What's with the 1st if? lol
This comment is hidden because it contains spoiler information about the solution
Looks like a ton of work for 8 kyu.
What does the % do here?
Minified is not very readable.
Weird looking syntax! Clearly I have lots to learn :/
Although the description states characters, the title is *First non-repeating letter *
In the tests you are using symbols as well as letters to test for non-repetition.
This comment is hidden because it contains spoiler information about the solution
I am baffled:
public function testCorrection() {
$this->assertSame("09:10:01", timeCorrect("09:10:01"));
$this->assertSame("12:10:10", timeCorrect("11:70:10"));
$this->assertSame("20:39:09", timeCorrect("19:99:09"));
$this->assertSame("20:40:39", timeCorrect("19:99:99"));
$this->assertSame("00:01:01", timeCorrect("24:01:01"));
$this->assertSame("04:01:01", timeCorrect("52:01:01"));
}
Error:
Failed asserting that null is identical to '09:10:01'.
This comment is hidden because it contains spoiler information about the solution
System.OverflowException : Value was either too large or too small for an Int32.
Using Int64 and it hangs.
@haidvoglj
You are ranking poker hands, not playing in a game of poker.
You need code above this line. This statement threw me for hours.
If someone mentioned "log to the console" I might have had a chance.