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
Java
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! https://www.codewars.com/kata/dont-eat-the-last-cake
Don't Eat the Last Cake!
Nice Kata.
Storm
Strom
Test.assertEquals(actual, expected[, msg])
Headlines
whitespace
#
text
Also, add a for-loop to test it maybe 1000 times at least.
for-loop
I mean the 22 AminoAcids.
22 AminoAcids
The pitfall of HashMap is about hash code collision and rehash right? Such collision will cause extra LinkedList-style traversal.
HashMap
hash code collision
rehash
I made a HashMap<Protein, Set<proteinId>>. Failed at test_4_500000. Any clue?
HashMap<Protein, Set<proteinId>>
test_4_500000
You're right
Thx for the reply
Test.assertSimilar( calcLevel({js:0,ruby:0,java:0},['js 7kyu']), "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%
4%
There is no point to return a double with less precision.
In the example has
solve("v") = True
but not tested inJava
Test Cases.This comment is hidden because it contains spoiler information about the solution
Also why
The Wall blocks your way
has no full stop butYou do not have a ship to cross this sea.
Very similar to
Don't Eat the Last Cake!
https://www.codewars.com/kata/dont-eat-the-last-cake
Nice Kata.
Storm
is spelled wrongly asStrom
.Test.assertEquals(actual, expected[, msg])
.Headlines
format, awhitespace
is required between#
and thetext
.Also, add a
for-loop
to test it maybe 1000 times at least.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I mean the
22 AminoAcids
.The pitfall of
HashMap
is abouthash code collision
andrehash
right?Such collision will cause extra LinkedList-style traversal.
I made a
HashMap<Protein, Set<proteinId>>
. Failed attest_4_500000
. Any clue?You're right
Thx for the reply
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%
?Loading more items...