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.
your code does not use the Python
sum
, it defines that name as a variable to hold an integerbut FYI that's a bad coding practice because you overwrite the built-in function of that name
but that's not the error message I see when I run your code, it's:
'consecutive CApitals' should equal 'consecutive C Apitals'
showing a space between
C
andA
I implemented this method in the editor, then copied it here.
aha! the first other code I could find besides mine with "no strings attached"
that's because of indentation / scope
in your code
Lua translation!
Approved
Approved by someone
ya gotta count the
1
's in the binary of a numberis what it says
then they show that there's 5
1
's in the binary of 1234...so
hi, I put the spoiler flag on your comment.
you must use it otherwise anyone can read your method / solution / technique / code / et cetera
to know HOW certain functions work is incredibly enlightening, and can advise you on managing aspects of performance in your code.
knowing when / how / why to use the correct built-in Vs. writing out an algorithm is a higher level concept...
...or so I perceive
C Translation
i'd rather shuffle
hat_options
and then iterate on it than randomly select an element for it; this way all combinations are tested while still making hardcoding more tedious than writing a legitimate solutionthere's a technique where you easily can find out on the internet
https://en.wikipedia.org/wiki/Evaporator
JS being unable to implicitly compare BigInts with numbers 💀
Loading more items...