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.
You must call get for each morsecode part. so get("....") for "H", then get() for the "E", and so. only one sequence for one character is translated
I agree, the instructions should be more clear on this..
I have a question.
For the example "HEY JUDE", the method decodeBits() should return "···· · −·−− ·−−− ··− −·· ·"?
If I put
public static String decodeBits(String bits) {
return "....";
}
and then run the test, the message is "Expected: is "HEY JUDE" but: was "H""
If I put
public static String decodeBits(String bits) {
return "···· · −·−− ·−−− ··− −·· ·";
}
and then run the test, the message is "Expected: is "HEY JUDE" but: was "null""
But i see that the tests call both MorseCodeDecoder.decodeMorse AND MorseCodeDecoder.decodeBits
Thanks.
.
Look at the follow example:
[25,25,50,25,25,100,50]
When the bag was equal = 125, in the line they remain [...,100,50]
If to the person of 100dollars you give them 1bill-50dollars and 1bill-25dollars, you can given back to the last person
But if to the person of 100dollars you give them 3bill-25dollars, you can't given back to the last person
In conclusion, the priority of bills to give back was not defined
That such a bug does not exist !
Always the person should receive as much money as possible.
Sorry.
Look at the follow example:
[25,25,50,25,25,100,50]
Following your opinion... when the bag was equal = 125, in the line they remain [...,100,50]
If to the person of 100dollars you give them 1bill-50dollars and 1bill-25dollars, you can given back to the last person
But if to the person of 100dollars you give them 3bill-25dollars, you can't given back to the last person
In conclusion, the priority of bills to give back was not defined
bag=[]
25 in
bag=[25]
50 in
25 out
bag=[50]
50 in
no 25 can be given back
you should know: 50!= 25x2
This comment is hidden because it contains spoiler information about the solution