Ad
  • Custom User Avatar

    Read the description again:

    The task is to find, or not, the "cubic" numbers in the string and then to make the sum of these "cubic" numbers found in the string, if any, and to return a string such as:

    "number1 number2 (and so on if necessary) sumOfCubicNumbers Lucky"

    The second 0 is sumOfCubicNumbers

    You can easily see that in the example:

     - s = "aqdf&0#1xyz!22[153(777.777" 
       the groups of at most 3 digits are 0 and 1 (one digit), 22 (two digits), 153, 777, 777 (3 digits)
       Only 0, 1, 153 are cubic and their sum is 154
       Return: "0 1 153 154 Lucky"
    

    154 is not in the string, it's the sum of 0 + 1 + 153

  • Custom User Avatar

    Read the post below, it's explained why the answer to that is "0 0 Lucky" One is the hidden cubic number, the second zero is the sum of all cubic numbers.

  • Custom User Avatar

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

  • Custom User Avatar

    I'm very positive this would have been created WELL before that one?