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.
our task is to generate the Fibonacci sequence to n places , with each alternating value as "skip"
So, there must ben
sections separated by spaces to form the big string. Since only every 2nd value will beskip
, if it is an even number, it must end withskip
.There is a problem where in the answers some of the random tests say for example that '1 skip 2 skip 5' should equal '1 skip 2 skip 5 skip' so some of the random answers have trailing skips that shouldnt be there. I think this is for python only.
Edit: I've now realised that the extra skip is expected if n is even. Why is this the case?
Ok I know what the problem Is this is very helpful.
Thanks
The problem occurs for longer strings(length >= 30). For example, for this input
lhxksmv9apd1vxcb8im12v35c5nzfwkr9vg
, I get this error'liznwrb9ayn1hkcq8ze12q35c5nahzor9co' should equal 'liznwrb9ayn1hkcq8ze12q35c5nihzor9go'
.What is wrong I'm not sure where the problem is could you explain more? Where is the problem?
It just means that it should handle strings longer than 26 letters.
Sorry I will fix this later this is only my first kata.
Also, as mentioned below, the expected values (and the reference solution) is bugged. Please check your work.
Please don't make another trivial variant of Caesar cipher, it's a duplicate to many existing katas.
Logic underlining
is unspecified.
I'm pretty sure it's bugged
The "longer input" part is unclear to me.
Can this kata be solved by adhering to the spec?
How do i make random tests
better luck next time: https://docs.codewars.com/authoring