[Tutor] error in python code.

Danny Yoo dyoo at hashcollision.org
Wed Jun 22 00:29:34 EDT 2016


> You need to state some definitions so that we are sharing common
> terminology.  What does "skew" mean, for example?

Note to others: I'm guessing that this has something to do with GC
skew as described in https://en.wikipedia.org/wiki/GC_skew.  But I'd
rather not guess.  I'd like Riaz to explain in some detail what the
purpose of the function is supposed to be.


Otherwise, a technically correct solution to the problem that
satisfies the test dataset is the following silly function:

####################################
def Skew(genome):
    return ['0', '-1', '0', '-1', '-1', '0', '0', '0', '1', '1',
           '1', '1', '2', '1', '1', '0', '1', '1', '0', '0', '1',
           '1', '2', '2', '1', '1', '0']
#####################################


We know this can't be possibly right, but given what we know so far,
that's actually a good solution until we're given a purpose statement
of what the function is trying to compute.


More information about the Tutor mailing list