7 kyu
Birthday II - Presents
441 of 941PG1
Loading description...
Fundamentals
Arrays
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.
How is
bang
supposed to be transformed into384
with that rule:Using that logic the result should always be a string of length 4 (number of characters in string
bang
). Am i missing something?Example tests should be added to provide clarity to the task
That is probably the worst described Kata I have done.
yeah i didn't understand what bang meant
typescript translation
Approved by author secretly, thanks!
:D
Your "Fake Binary" kata SQL translation needs an update before i can approve
Done ^^
Great, approved, thanks. If you have any other translations I havtn approved please let me know - It's hard to find the ones I miss on here. Just comment on them and I'll approve :)
Can anyone explain this in simple English?
I'm not even going to bother trying to understand this BS. This must be one of PG1's earlier works. ;-)
Wrong link below ~~ here's the right one for R
PS: There's six more, I'm lazy to post all the links here ^^, so do you mind go to your profile discourse and check ? XD
R translation
Approved - think ive got them all- shout if not!! Cheers
There's six more, I'm lazy to post all the links here ^^, so do you mind go to your profile discourse and check ? XD
Terrible series
Great chat
Ruby 3.0 should be enabled.
fixed
Coffeescript translation
Julia translation
Done, let me know if ive missed any
This was a very satisfying kata to complete. Really pushed me to work on array methods (.reduce, .map) and get more comfortable with them. Thanks for this one.
Glad you got something from it :)
'empty':empty::'crap':crap
'empty'!=empty
this through me off for sure in the random tests....
haskell : https://www.codewars.com/kumite/5c032c044f38031678000012?sel=5c032c044f38031678000012
Approved
This comment has been hidden.
Should have derived
Bounded
and usedarbitraryBoundedEnum
. Should have factored out the types toPreloaded
actually, instead of relying on solver to pass the definitions.You live and learn .. :]
Python, Ruby and Crystal.
Approved
instructions don't mention what to do with an empty present. thanks for the kata.
It does:
''' x == crap || x == empty --> return string sorted alphabetically '''
This comment has been hidden.
Yeah it's a string, meaning the present is empty. Nice cover
No example tests?
...and like magic, there they are :D
Wow...:-)!
x == goodpresent --> return x with num of passes added to charCode (turn to charCode, add, turn back) Isn't it "sub" instead of "add";-)?!
I dont know if it was the intention but it is sub instead of add.
Not sure I follow, on goodpresent it should be add
Yep there is an issue, hold tight. goodpresent should be returning a string with diff characters
Yes it was the intention;-)...
@petegarvin1
: ".map(x=>x=x-y)" looks like "sub":-)... PS: Same time both answers...No it wasn't :D I'd been mis-using a ternary. Fixed now. Apologies, your old solutions may well not work now.
Ok, code is fixed too;-)...