Hi,
I looked into your code as a way to write something similar.
First, thank you for sharing – your code helped me more than the official test suite.
Second, in the “Liner complexity” test, IMHO, there are two mistakes in your code:
t = c[:] does not create a copy in numpy, use t = c.copy()
int(max(-2.5, ticket) + 2.5) is not what you need. It should be int(max(-3.5, ticket) + 3.5)
Please check it out if you'd like.
Uri
Hi,
I looked into your code as a way to write something similar.
First, thank you for sharing – your code helped me more than the official test suite.
Second, in the “Liner complexity” test, IMHO, there are two mistakes in your code:
t = c[:]does not create a copy innumpy, uset = c.copy()int(max(-2.5, ticket) + 2.5)is not what you need. It should beint(max(-3.5, ticket) + 3.5)Please check it out if you'd like.
Uri