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 are wrong, the Morse encoding of the comma is
--..--
, the dot is.-.-.-
, check here. The preloaded Map in Java encodes those correctlyNot an issue, a question.
This might help: https://docs.codewars.com/training/troubleshooting
You know that walls are an area not a volume. So when room is not a perfect cube you need to know dimensions of the walls.
The requirement was unintuitive to me at least and isnt clearly explained anywhere in the description.
@KayleighWasTaken yes, they are, but because
w
orl
is zero... well, these two walls form a 2D rectangle, and since there is zero width of it...Anyways, for the simplicity, one may say it's zero if any of these variables are zero imho
If
w
orl
is zero, there are still two other walls which can be papered. Ifh
is zero then yes, answer should be zero, but otherwise you can still paper the non-zero-sized walls.Please possible answer just below.
Nah, wallpaper should be glued on the wall, not the surface; also
w*h*l == 0
if any of the variables equals to 0. You may then if the product equals to 0 then eitherw
orh
orl
is 0 too.use charAt() method
You cannot compare strings in Java with
==
(or you can but it will not give you the expected result)https://www.baeldung.com/java-compare-strings
Hi,
Not an issue, a question (the kata isn't broken, it's just about your code that isn't handling that case properly.
Aside of the obvious answer that "your code doen't do the right thing", we cannot tell with so little information. Try reading a bunch in that wall of text, that might help: https://docs.codewars.com/training/troubleshooting
Cheers