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.
I know... :P
o.O ok^^
The variable
minmax
should be declared after the for loop since themin
andmax
will not be modified if the variable is before the for loop.Actually some mathematical textbooks write the power set of set A as 2^A. If one is familiar with the notion, one writes the answer within one second (if time for typing is not considered).
This kata is a nice selector.
Thanks the author ;-)
You've just solved the kata. Look at the solution staring you in the face.
I get the following error:
testStupidlyLargeArrays(PowersTest)
expected:<2147483647> but was:<1267650600228229401496703205376>
This comment is hidden because it contains spoiler information about the solution
very good english lol..
not really readable but short.
This comment is hidden because it contains spoiler information about the solution
Haha that was my thought to :D
Haha :D
That's basically the gist of it, yeah. It's clean, easily understandable and not verbose - but not the most efficient solution.
It's half-way clever for its brevity, but definitely not best practice due to inefficiency.
Don't post code! What is your problem?
Loading more items...