Ad
  • Custom User Avatar

    Thank you very much. That makes perfect sense.

  • Custom User Avatar
  • Custom User Avatar

    I am a level 6 kyu and just solved a 5 kyu kata. For this I have received just 2 honor points.
    Is this possible or is it a problem with the algorithm?

  • Custom User Avatar

    Hi Raul,

    Thank you for the answer. The reason I was asking this, is because for this particular problem I see 2 ways to solve it:

    1. Brains: You are a supermath genius that finds a mathematical function to calculate the elements or generate each new
      element from the previous (or a number of previouses) element/s in the sequence.

    2. Brawl: Write a simple script that verifies that a number fits the requirements. Run it continously until you collect
      250 elements.(I expect this is why the author is indicating up to which elements in the sequence the program is tested)
      Seeing how sparse the sequence was, I expect that this approach will take slightly longer than 12 seconds.

    So my initial question was, is it fair to run the brawl method on my computer, wait (a few hours, a few days) to collect enough elements
    and just write on code wars a function that selects elements from the hardcoded list if the input is <250 and it searches for new
    elements otherwise. The 'search part' is just so that my code for testing the numbers can be seen by others.

  • Custom User Avatar

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