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.
What I wanna know is why I can't unflag the comments even after solving and with mender privileges.
What I can do is paste them here for everyone else though:
Note: that isn't even what we implemented and it still passed the tests sooooooooo
why on earth would anyone add spoiler flags on an attempt to make the description make any sense
This comment is hidden because it contains spoiler information about the solution
In a computer you have bits. They use binary (1 or 0, on or off).
By combining these, we can begin to go from 1 to much higher numbers.
it is read right to left as powers of 2.
example:
0 0 0 0 0 // is really equal to
16 8 4 2 1 // this
So when a bit is "on" or "1", it will count the code below
EX:
0 0 1 0 1 //
16 8 4 2 1
This turns on 1 and 4 this equals 5.
1 1 1 1 1
16 8 4 2 1
This has 16+8+4+2+1 which equals 31
0 1 0 0 1 //
16 8 4 2 1 //
in this case 8 is on and 1 is on, so 8+1 = 9
This should be sufficent instruction to help you pass this.
PS I realize this is old, but others may ask.
its like the compound intrest formula
you have to iterate problem based on the weight you ger week by week
I too struggled with this until I read the discourse chats. Look for highest 5-digit "string fragment". Think "sliding window" over the string.
if you have 10 numbers as in the given circle 2 is in front of 7
This is TOP! :D
Can't you just use kata search page and filter kata of difficulty you feel appropriate for you?
https://www.codewars.com/kata/latest/my-languages
thats inspirational @rowcased:)
Well, there is an example with 91 and people says they're not consecutive...
I think the description is confusing because in the example he uses; 67890 is highest in 1234567890, numbers are consecutive as in 1,2,3 not just next to each other.
https://lmgtfy.com/?q=convert+to+binary
...or just use your calculator (on your computer, or in real)
283[91]0 <- consecutive: one after the other without interruption in the original number.
It's ok. I always wonder, how clever other solutions are and it forces me to think different while solving a next task :)
Loading more items...