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.
It's cool how the random tests test for tens of thousands of electrons. Can an atom actually be that powerful? Haha.
s contains 2 electrons, p has 6, while d can hold 10. 3d has a higher energy state than 4s, so 4s gets filled first, then goes 3d. Are you referring to this? I think the kata simplified this to avoid using the (s + 0.7 * l) formula. (If I correctly remember this thing from my middle school chemistry class.
Added some time ago
This comment is hidden because it contains spoiler information about the solution
Why would the average of no numbers be
0
? Why not1234
or-8888
;-) ?I added a note in the description that promises the array will not be empty, and I removed the fixed test in Clojure that was testing for it.
This is a implicit int, the default return type is int. You can do this with arguments as well like
fun(a, b) {return a + b;}
This defined a function called
fun
, that return int and take a and b as integers.The problem asked to use the filter function. How did this code past the "filter in code" test?
This comment is hidden because it contains spoiler information about the solution
A hidden gem of a comment thread, learnt some cool stuff - thanks @awesomead and @lechevalier
Now added, closed
fixed
I agree with that; I've made a fork with fixing that problem
its because easy jobs are hard for us ;-;
It's no use to post duplicate suggestions. Old suggestions don't disappear and are easy to find out.
I've posted the Python translation of this kata 8 months ago. Could it plz be checked and approved/rejected?
Loading more items...