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.
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...