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 dont make sense. what if the array has 100M and the 1st item is the largest one?
Great kata, loved this one! Really makes you think
damn. this kata is relative hard. I don't think that is 7 kyu...
"7 kyu"
Wow, I've completed 3kyu's I've had less trouble on. Was hoping to do a quick puzzle before bed but stayed up half the night trying to figure out what I was missing. My misconceptions before I started googling around were:
That the fib%n sequence can be calculated the same as the fib sequence. I spent resources tracking the fib sequence in all its glory,
and then modularing that answer to get the %n sequence.
That in the thousands of numbers in a sequence, 0,1 will never repeat itself within the sequence. Spent a lot of
time trying different comparison depths, first tracking that the whole sequence repeats itself at least 3 times, then twice,
then that 10 numbers repeat, that 5 numbers repeat... all of which worked but were too slow. Even scanning through the wiki it
never specifies that 0,1 was guaranteed to never repeat itself, unless I missed it.
I agree with some of the previous comments about this getting a performance tag although I've seen your previous agruments for why not. Being ranked 7kyu I also wonder if the above were problems for others, and that maybe there should be hints regarding the above, but perhaps that gives too much away.
thank you
This comment is hidden because it contains spoiler information about the solution
from wiki: all cycles start with
(0, 1)
yes, this one is too slow, even for 7 kyu :) you should refactor that second "if" statement, it is extremely slow
do Pisano periods contain subsequences that themselves ever repeat sequentially?
appreuved
Python translation
My initial reaction was "I have a solution ?!?", but apparently I do. Then I saw the other solutions. ( Then I had to read the description, because I did not actually remember the task. )
There are levels of naiveté.
There definitely are levels of naiveté. :O
Anyway, thanks.
Your solution now passes.
I'll lower the limit to pass your solution as well.
Loading more items...