6 kyu
[Code Golf] Painted Pyramid Probability Puzzle
48 of 56benjaminzwhite
Loading description...
Puzzles
Mathematics
Restricted
Probability
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.
JS Translation. I left the description as-is. Code limit for JS is 39.
🎲 Approved, thanks! Updated description to included code limits for multiple languages. 🎲
This is surprisingly difficult. I'm struggling at 44 characters.
Thanks for your interest @dolamroth - I'm sure you'll get there so I won't give any hints just yet (I've been reading your 4 squares kata this weekend, so it will be my turn soon to struggle ;) )
It's probably a good idea to raise the limit a bit, so you will see different approaches
Hi @anter69 - thanks for your feedback; based on your experience with code golf I've followed your advice, limit is now set at
45
chars.I can think of at least 2 "approaches" that are now valid at
45
, so they will pass with fewer constraints on the approach, like you said.Btw, I have another CG that's in beta still; if you have any comments about the char limit there, I'd love to hear it also (it's much more difficult imho):
https://www.codewars.com/kata/62bd9616aced6376cc37950e
Thanks again!
Stuck at 46 ;-)
@anter69 - ahah, I think this is a case where you are trying to be too clever! I'm off to sleep, and not sure if I'll be on CW much this week, so I've posted a cryptic clue on my WIP solution to your US states code golf (a fair trade ;) )
It's in plaintext but written in reverse, so that if you don't want to read it just yet, you won't notice in in notifications:
https://www.codewars.com/kata/reviews/61fe075b739001ea7d6ba6df/groups/630aa80654d41e0001c6218d
Cheers!
This comment has been hidden.
Thanks @anter69 for the Green button! May your Pyramid dice rolls be always Red.
This comment has been hidden.
This comment has been hidden.
Exciting times ahead! And thanks for that link.
I was able to solve this interesting sequence with the aid of your link: https://www.codewars.com/kata/60eb76fd53673e001d7b1b98
Well, I have idea for my golfing series 7 for a while, but busy on others :)
Hey! Good to see you @LanXnHn - I'm back at home now after working on farm this summer; now have time again to focus on katas. Also I saw your message on Discord, so I will have time to read and reply this week!