There is no point to return a double with less precision.
In the example has solve("v") = True but not tested in Java Test Cases.
solve("v") = True
This comment is hidden because it contains spoiler information about the solution
Also why The Wall blocks your way has no full stop but You do not have a ship to cross this sea.
The Wall blocks your way
You do not have a ship to cross this sea.
Very similar to Don't Eat the Last Cake!
Don't Eat the Last Cake!
Test.assertEquals(actual, expected[, msg])
Also, add a for-loop to test it maybe 1000 times at least.
I mean the 22 AminoAcids.
The pitfall of HashMap is about hash code collision and rehash right?
Such collision will cause extra LinkedList-style traversal.
hash code collision
I made a HashMap<Protein, Set<proteinId>>. Failed at test_4_500000. Any clue?
Thx for the reply
"Total level: 8kyu 1%, JS level: 8kyu 4%, Ruby level: 8kyu 0%, Java level: 8kyu 0%");
After solving the Kata, JS will be 5 points right? (level difference * 2 + 3 points)
So the percentage of JS will be 5 / 91 = 5.49%
But why the expected value is 4%?
(level difference * 2 + 3 points)
5 / 91 = 5.49%