Ad
  • Custom User Avatar

    Thanks to the Codewars author for this insightful challenge — a great exercise in math logic and cube combinations!

  • Custom User Avatar

    I feel cyberbullied

  • Custom User Avatar
  • Custom User Avatar

    My idea of the solution was far from the actual. Maybe it's just the instruction that was not clear. Atleast give a little hint. Try to look carefully at the examples.

  • Custom User Avatar

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

  • Custom User Avatar

    fair. i just don't like to skip so i do whatever the system offers me so i get the mindset aspect of it and i've spent some time solving this problem. but the problem itself feels really pointless because there's no context to any real life example and i doubt anyone outside of science will ever see it

  • Custom User Avatar

    I would say that this problem is very good for programmers, because it can teach a couple of valuable lessons:

    • it is important to perform problem analysis before jumping right to coding,
    • problems with seemingly simple requirements can be difficult to solve,
    • problems which are seemingly difficult to solve can have unexpectedly simple solutions,
    • reading documentation helps a lot (this challenge is literally tagged as MATHEMATICS, and people can check the tags and just choose to skip it).

    Programming is not just about ifs and loops and variables. Thinking and analysis and research are important parts too.

  • Custom User Avatar

    i wish people could stop posting math problems that are irrelevant to 99,99% of programmers

  • Custom User Avatar

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

  • Custom User Avatar

    EN

    This kata should be minimum 6, if not 5

    RU

    Эта ката должна быть минимум 6, если не 5

  • Custom User Avatar

    EN

    minimum 6, if not 5

    RU

    минимум 6, если не 5

  • Custom User Avatar

    i thought that i would never solve this, but i spotted your comment, gained some faith and within a minute found a pattern. Almost feels like cheating))

  • Custom User Avatar

    Enabled in this fork

  • Custom User Avatar

    Your code is wrong because you rely on approximate values to give exact answers. If your code does produce different results elsewhere then you might be on a different architechture (ARM?) and it would still be wrong even if it should happen to incidentally give correct answers, if that's even the case.

  • Custom User Avatar

    Something is weird in Python. I get correct test results locally in VSCode with Python 3.12.7. Here with Python 3.11 the True cases are returned False by the same code. Is the is_integer() function evaluated differently here? Or was there a bug with math.cbrt() in 3.11? Or is it something else? What is going on?

  • Loading more items...