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.
should I have done something different?
fork
no random tests
i remember when i first learned what functions were, i wondered, "could one somehow share its results..."
always gives me a bit of a laff
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
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
there's a technique where you easily can find out on the internet
https://en.wikipedia.org/wiki/Evaporator
Also, I enjoyed the challenge; learned something useful about JavaScript & coding in general, then just had fun with my Python solution.
Loading more items...