JavaScript @rscharfer Don't modify the passed argument inp
JavaScript
inp
This comment is hidden because it contains spoiler information about the solution
In the example has solve("v") = True but not tested in Java Test Cases.
solve("v") = True
Java
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
Loading collection data...
JavaScript
@rscharfer Don't modify the passed argument
inp
This comment is hidden because it contains spoiler information about the solution
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
Loading more items...