5 kyu
Build a pile of cubes [Code-golf]
68___i
Loading description...
Algorithms
Puzzles
Performance
Restricted
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.
Another sometimes passes solution. Random tests should consistently include edge cases.
should be
35
since length check is<= limit
w/limit = 34
I've got a "sometimes passes" solution. Coverage should be improved to invalidate it.
Tests added.
Hi! Are you sure that all test cases are valid? Cause my solutions works well with original kata, and have problems with you. Can you check it?
did you read one of the last things in the instructions? ----> that you should return
0 if there is no such n.
? that is one difference here. other than that, there is only the character limit...no issue
IMO, this kata is too restrictive. There're no different approaches you can choose from. It's basically "solve g964's kata in JS, find the shortest solution among the submissions, and shorten it" (this is potentially a problem, because that's how I managed to get a
O(1)
solution consisting of only 30 characters). I think increasing the test suite so recursive solutions won't pass was a mistake.Done
Wrong function name in the description.