Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thanks to the Codewars author for this insightful challenge — a great exercise in math logic and cube combinations!
I feel cyberbullied
lmao kata
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.
This comment is hidden because it contains spoiler information about the solution
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
I would say that this problem is very good for programmers, because it can teach a couple of valuable lessons:
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.
i wish people could stop posting math problems that are irrelevant to 99,99% of programmers
This comment is hidden because it contains spoiler information about the solution
EN
This kata should be minimum 6, if not 5
RU
Эта ката должна быть минимум 6, если не 5
EN
minimum 6, if not 5
RU
минимум 6, если не 5
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))
Enabled in this fork
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.
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...