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.
Approved
python new test framework is required. updated in this fork
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?
duplicate of any other basic fib sequence kata. Reversing adds nothing to it.
Actual and expected are flipped in random tests
ref sol should not be in preloaded
More random tests should be added instead of 2 only
An anti-pattern can create an error later on or cause technical debt. Which is why one should only select the columns that they need in a query. Where I disagree with this statment of using SELECT * as an anti-pattern in this instence is that Kata asked to "select all" which is literally what SELECT * means.
I like this solution the most!
We have to SELECT all the rows (*) From Table_name
Put condition (WHERE....)
For shorting We use 'ORDER BY' Clause
For Descending order we have write 'DESC', By defaul it get in Ascending orer.
What is meant by this, "anti-pattern"?
Starting with 0 or 1 is a matter of choice - today most people define the sequence's seed values as 0,1, but 1,1 is also valid
The Fibonacci Sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55
Shouldnt Fibonacci sequence start with 0? Your test cases all starts with 1. Not big issue just asking.
Well, that depends on
n
parity value.Loading more items...