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.
This comment is hidden because it contains spoiler information about the solution
Python:
Write a function f(n), which returns the n-th member of sequence.
Function name is
sequence(n)
in Javascript, the error message is somewhat useless:
It would be interesting to know for which ordinal number in the sequence this is.
Hey I'm a bit confused by the description. Can someone tell me what is my function supposed to return here??
Can someone help me with generators?
I use python and the poblem is that i cant get the numbers to evaluate the steps.
function(nothing):
code
How can i with this type of func structure get the numbers to computate steps?
It would be much easier if the func was
function(num):
code
can you give me advice?
This is not the most friendly way to - I think - fail overly long source code. Can't you just fail a test ( preferably while also testing the values ) ?
( I just wanted to know if my values are correct. )
You should avoid byte conversion and give
BASE_75
as a binary string - since any character is ascii encoded and takes only 1 byte.I'm really lost here... how come sequence(5) should return 10??
Doesn't 0,5,10 form arithmic progression? Shouldn't it be 12 instead??
Also, is the given input part of the sequence or not?
I feel like this kata doesn't give enough examples, could have put in more examples, for example sequence(6), sequence(7).