6 kyu
Techno Barman
83eptaceps
Loading description...
Algorithms
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Approved as 6 kyu.
someone should approve this kata..
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."Modified accordingly, 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.
well said, updated, thanks
Hi,
/\/
or\/\
? (from top to bottom, I mean) Same kind of problem happens for even numbers, actually...hi, thanks for pointing out issues. is it better now?
Good effort, but unfortunately you introduced new problems at the same time... ;)
You don't have to include "\n" in the output string
-> x/ Na, that's asbolutely bad. The user should be able to print his output and that it looks like the expected figure. Change that, plz.other than that, it looks fine, I'd say. Ah, one last thing:
Notice that the glass has been filled by defect
for non native speaker, this "defect" is rather obscur. I find that annoying considering this is actually hidding one of the requirements...D: ok i try to fix;
\n
ok, thanks should be ok now
almost:
is... feels kind of "wrong": you chose to put an "extra"\n
at the end of the string... That's described (even if for now there is no visible code string showing that), so it's actually ok. But it really feels like practice from another era, especially when you use something like python... Imo you should remove that one.This way, the design is more reasonnable and more readable (and it avoids duplicated code/data)
Note: you could add another note to the description, that the actual and expected results will be printed to the console for the user, unless the size of the output is too large.
changed description and test function. added f-strings when printing
do you mind if I edit your kata?
not a problem
done. See if it suites your mind too.
Note: I've changed the requirements and the description about the final "new line" (I removed it)
ok, it's better now :o thanks for help!
you're welcome
oh, btw, for your next kata: always keep the sample tests at the beginning of the test suite (only the "test cases" part is executed in an attempt)
ok, thanks :)
('forgot to resolve it, sorry)