Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Two bugs in Linear Complexity Test #11

@ukaluzhny

Description

@ukaluzhny

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions