5 kyu

Smoke Signals

Description
Loading description...
Ciphers
Cryptography
Logic
  • Please sign in or sign up to leave a comment.
  • dandart Avatar

    How can we translate this? I do Haskell on here.

  • Awesome A.D. Avatar

    Rust translation ready for review.

    EDIT

    Unpublished while I revisit the random test generator. I've found something weird.

  • Awesome A.D. Avatar

    Nice kata. I hated it.

  • Kacarott Avatar

    Cool kata!

  • Expurple Avatar

    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'])]

  • Blind4Basics Avatar

    current rank break down: 1x6kyu + 2x5kyu. Seems a bit early for approval anyway...

  • Expurple Avatar

    This comment has been hidden.

  • Expurple Avatar

    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 things

  • Expurple Avatar

    Nice kata!

  • Voile Avatar

    Input size should be specified. Some approaches will time out quickly while some approaches do not.

  • rowcased Avatar

    but he doesn't which one belongs to which

    seems like this is missing one word:

    but he doesn't know which one belongs to which

  • mortonfox Avatar

    In this complex case, there are 3 kinds of signals but only 2 unique kinds of events:

                [[["8.2.1","4.3.4","1"],["Ambush in the jungle","General assassinated","Ambush in the jungle"]],
    

    How could this be?