6 kyu
Brick pyramid.
70 of 310intmainvoid
Loading description...
Algorithms
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.
I guess it's clearer with pictures :)
pls add images
Image in description is dead
Description should be language-agnostic
This comment has been hidden.
Tests should use
approxEquals
done for C and JS, also updated JS to
Node 12
(C#) "Expected:" and "But was" are the wrong way around.
No random tests
added in C, JS; missing for the other languages
There's an issue with the initial code in C++:
I tried to tweak and could not solve it (but I'm very bad with that stuff...)
Fixed.
C: warnings in Clang 8 / C18.
All the images are gone.
I can see them, but they're not in https.
The images are live. Either they were fixed, or the problem is on your side.
I agree that test with big values of row and pos are necessary, because most of recursion algorithms throws stack overflow exception when row > 10 000. for example weight(32000,11234)
Raised as issue
The second image in the Instructions is missing: http://radikal.ru/lfp/s019.radikal.ru/i629/1611/cd/6150fa06320e.png/htm
(C#) "Expected:" and "But was" are the wrong way around.
Raised as issue
I strongly recommend adding more test cases (random or otherwise) to prevent cheating. Other than that, this is a great kata.
EDIT: At the moment, there are only 10 test cases and the answers are provided in the kata description.
definitely second the random tests. also should test for large row values. other than that this was fun!
Raised as issue
Solving this kata was pure fun.Thanks and keep adding more!
Thanks!
I'd make it clear that the "pyramid" is two-dimensional. It might also be a good idea to relabel the diagrams kg instead of кг.
good idea, done!