If there is coffee in the glass, the bottom layer is always filled with \ character.
I initially understood this to mean that if prg>0, then the bottom layer is always filled. But in fact if prg is so low that it does not fill even the first layer, then it is empty too.
Maybe it could be clearer with "The slashes alternate between layers, starting with \ in the lowest one and / in the next layer."
you are printing a 2D-array inside a nested loop, which results in too much stuff being printed to the console, as said above.
also, please do not open issues unless you can prove that the problem is not on your side; use the question tag to ask for help instead ;-)
Hello, in the codewars document : If you see "STDERR, Max Buffer Size Reached (1.5 MiB)" at the bottom of it, that means too many things were printed to the console during the tests and they were interrupted.
Approved as 6 kyu.
someone should approve this kata..
Modified accordingly, thanks
I initially understood this to mean that if prg>0, then the bottom layer is always filled. But in fact if prg is so low that it does not fill even the first layer, then it is empty too.
Maybe it could be clearer with "The slashes alternate between layers, starting with
\
in the lowest one and/
in the next layer."well said, updated, thanks
"The area on which the percentage is calculated is w(h-1)"
As I understand it, the area should be calulated as "(w-2) * (h-1)". This accounts for the bottom of the glass and the walls of the glass.
glad you enjoyed
Very intuitive kata!
you are printing a 2D-array inside a nested loop, which results in too much stuff being printed to the console, as said above.
also, please do not open
issues
unless you can prove that the problem is not on your side; use thequestion
tag to ask for help instead ;-)Hello, in the codewars document : If you see "STDERR, Max Buffer Size Reached (1.5 MiB)" at the bottom of it, that means too many things were printed to the console during the tests and they were interrupted.
usually you got that error if you print too much stuff, check if it's the case
funny!
say the language or run the blank solution to see
approved, thanks
C# Translation
Loading more items...