6 kyu
Move all the grains of rice to a same shared final square
54 of 63benjaminzwhite
Loading description...
Algorithms
Puzzles
Mathematics
Performance
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.
Interesting kata, not that easy.
Haskell translation
this translation does not modify the description. solution function should take and return
Set
s ( of(Word,Word)
) - this is specified in the Initial code. I did not think it worth it to make the description language-non-agnostic for that.Thank you for the translation! As mentioned in the kumite, I'll wait until someone reviews or if you're happy with it then I'm sure it's fine.
I'm happy with it. I tested it; reviewing is unlikely to turn up problems, even if any pop up in actual use ( I am human ).
@JohanWiltink - approved then, thanks again and happy Haskelling.
missing
chai.config.truncateThreshold = 0
Thanks @JohanWiltink for the help on Discord and updating this.
JS Translation
Approved & edited main description to be less Python-y for our JS friends.
Approved at kyu 6.
Thanks - you successfully moved all the votes to the same final kyu of 6, no doubt using skills you picked up while solving this kata!
Indeed I have, Sir Benjamin!
performance
tagAdded
The formatted string in the description goes way beyond what a standard 1920 monitor can process, breaking the style and rendering a scroll bar. I suppose, it should be changed somehow.
This comment has been hidden.
Seems interesting, I'll take a look at that tomorrow.
Note that if you are ever unsure, and don't want to potentially influence solvers ratings, then you dont need to set a rank at all, it is optional.
Ah thanks @Kacarott - I didn't know that it was optional!
Since it would be my first purple, I guess I was thinking of using the blue/purple distinction like a "Bat Signal"; to attract the kind of power users who may be interested in such topics, and also let them know the expected amount of effort they might have to spend on it.
Input is a non-empty collection, but is not mentioned in the description.
Thanks @Voile - Inputs section of description is now updated to mention this explicitly.
I have also added that
n=1
is a valid input possibility also (I already had{(5,5)}
as a fixed test, but now it is mentioned in description).This comment has been hidden.
This comment has been hidden.