Ad
  • Custom User Avatar

    It won't be about cuboids anymore if it has more than 3 elements. lol

  • Custom User Avatar

    This kata serves as a good warm-up for the other one. Many solutions vary significantly, and the ratings are quite high. Completing the other kata first makes this one much easier, but the reverse isn't necessarily true. Couldn't approve at 7, so I picked 6.

  • Custom User Avatar
  • Custom User Avatar

    Added in JavaScript, but missing in other languages.

  • Custom User Avatar

    I'm 100% in agreement with your logic, and the description should definitely be updated with some clarification. Here's how I would describe the circuit.

    • The circuit has an internal state that is determined by the sequences of button inputs. This state is either OFF, RED, or BLUE.
    • When the circuit changes into either the RED or BLUE state from a previous, different state, the corresponding red or blue LED will blink once.
    • When no buttons are currently being pressed, the circuit is in the OFF state (the initial state of the circuit).
    • When a single button is being pressed, the circuit is in the state that matches the color of the button.
    • When the circuit is in the OFF state and both buttons are then pressed, the circuit switches to the RED state.
    • When the circuit is in either the RED or BLUE state and the matching button is held down, the circuit will remain in its current state.
  • Custom User Avatar

    Waster 3 hours, did solved.
    IMHO: Dumb but fun XD
    Had to read up some things about JS. Other then that, is not hard, just dumb.
    Hate JS XD

  • Custom User Avatar

    Consider Codewars a panopoly of restaurants. Given the inclinations of your palate, you can freely choose where to eat your next meal.

  • Custom User Avatar

    Your assumption that this task requires math is also false. There are solutions that rely heavily on programming concepts such as iteration and recursion, with only minimal math. Anyway, I would never downvote a good quality code challenge, even if I don't like it. But you vote however you want. I just think it's better you stay from (what you consider to be) math heavy kata's, rather than to preach your disgust of them.

  • Custom User Avatar

    I had similar issues; it seems that this kata is all about finding an algorithm rather then an optimization for a solution of the related kata "Spinning Rings". Hope that helps a bit.
    Have fun!

  • Custom User Avatar

    False assumption.
    I read it and that's exactly the reason why I feel disappointed. Just wrote this as explanation for the author so he knows why I did not rate it well.

  • Custom User Avatar

    I'm disappointed you didn't read the first paragraph of the description, clearly stating this is a performance version of an easier coding challenge.

  • Custom User Avatar

    This is not a kata issue. You can ask a question, but tag it accordingly.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Should I include that test case (which would then invalidate all other solutions) or change the description to exclude it

  • Custom User Avatar

    I am disappointed, because to me it feels like this kata is just about finding a math solution, not how to code a solution.
    Thought this is Codewars, not Mathwars.

  • Loading more items...