5 kyu
Smoke Signals
47ewelborn
Loading description...
Ciphers
Cryptography
Logic
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 can we translate this? I do Haskell on here.
You can refer to the documentation, but it's somehow incomplete: https://docs.codewars.com/authoring/guidelines/translation
In a few words, once you solved (or forfeited) the kata, you can click on
Translations
at the top of the page. Click there, thenTranslate
, choose your language and you are in the translation editor.For further help, it's a good idea to go to Discord Codewars server (link is on the left panel), there you have
#help_translate
and#Haskell
channels.Rust translation ready for review.
EDIT
Unpublished while I revisit the random test generator. I've found something weird.
Nice kata. I hated it.
Cool kata!
My solution was invalidated by your recent updates. Turns out, it didn't cover some rare random cases, which only appear roughly 1 time out of 4 submissions. Can you add this fixed test, so that solutions like mine are invalidated reliably?
[(['4.3.3', '9', '1'], ['Pizza delivery spotted', 'General assassinated', 'Tanks spotted']), (['2', '5', '4.8', '4.5', '2.5', '6', '4.3.3', '4.3.2', '1'], ['Camp bravo attacked', 'Pizza delivery spotted', 'Push into the mountains', 'Tanks charge', 'Camp bravo attacked', 'Push into the mountains', 'Camp golf attacked', 'Tanks spotted', 'Medical helicopters spotted']), (['9', '4.3.3', '7.7.9', '4.3.2', '5', '4.8', '2.5'], ['Tanks charge', 'Camp bravo attacked', 'Tanks spotted', 'General assassinated', 'Camp bravo attacked', 'Tanks spotted', 'Push into the mountains']), (['4.3.2', '9.6', '2.5', '1'], ['Camp bravo attacked', 'Pizza delivery spotted', 'Tanks charge', 'Tanks charge']), (['4.3.2', '7.7.9', '4.8'], ['Push into the mountains', 'Camp bravo attacked', 'Tanks spotted']), (['5', '7.7.9', '4.8', '9', '4.3.3', '1', '2', '2.5', '9.6'], ['Tanks spotted', 'General assassinated', 'Pizza delivery spotted', 'Push into the mountains', 'Tanks charge', 'Camp bravo attacked', 'Tanks charge', 'Push into the mountains', 'Tanks spotted']), (['6', '9.6', '1', '4.3.2', '2.5', '2', '4.3.3', '9'], ['General assassinated', 'Tanks spotted', 'Camp golf attacked', 'Pizza delivery spotted', 'Camp bravo attacked', 'Tanks charge', 'Push into the mountains', 'Tanks charge']), (['7.7.9', '5', '4.3.3', '9.6', '4.3.2', '2'], ['Camp bravo attacked', 'Push into the mountains', 'Tanks charge', 'Tanks spotted', 'Tanks spotted', 'Camp bravo attacked'])]
I'm curious as to why your solution wasn't working with that test, it doesn't look very different from the other tests. Regardless, it's been added as a fixed test.
This comment has been hidden.
That makes sense. Thanks :)
current rank break down: 1x6kyu + 2x5kyu. Seems a bit early for approval anyway...
rank breakdown
This comment has been hidden.
This should be fixed now.
This is a rather unimportant nitpick and you can leave everything as is. I think that days would make more sense as tuples
(["2"], ["Convoy attacked"])
instead of lists[["2"], ["Convoy attacked"]]
. After all, they are a fixed-length pair of different things (signals and events), and not a variable-length list of same thingsYou're correct, it would make more sense for them to be represented as tuples. I'll change it later when I have some time available.
This should be fixed now.
Nice kata!
Input size should be specified. Some approaches will time out quickly while some approaches do not.
Thank you for bringing this to my attention, I'll take a look when I get a chance.
I've added a clarification to the end of the kata description - let me know if this does not answer the issue.
;-)
seems like this is missing one word:
Fixed, thanks!
In this complex case, there are 3 kinds of signals but only 2 unique kinds of events:
How could this be?
Multiple smoke signals may correspond to the same event. In this case, 4.3.4 and 1 both correspond to "Ambush in the jungle". This is mentioned in the clarifications section of the kata description, but if it's not clear enough, then I can reword it.
Okay, that was slightly ambiguous. I read that as multiple instances of the same smoke signal but as you clarified above, it could also be different kinds of smoke signals that translate to the same event.