Big-o-calculator

Latest version: v0.1.0

Safety actively analyzes 630450 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.0.7

Added "limit" parameter on test function to break before it takes forever to sort one array (eg. bubble Sort, Insertion Sort)

* default is True

0.0.6

Better docs

Example with more familiar sorting algorithm (quickSort with random pivot)

Generating ksorted array fixes

No warning even if it has no return (It'll check if the function sorted arrays correctly so please return the output)

it will return complexity and the execution time to sort all [10, 100, 1_000, 10_000, 100_000]

0.0.5

print the execution time

capital letters to lower cases (log(N) -> log(n))

added more test cases

test function now will return two variables (cplx, error, result -> cplx, result)

0.0.4

Added pytest cases

Added Ksorted array option

Don't assert even tho it has no return

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.