Ormuco Code Challenge
This project has been created only for demonstration purpose.
The challenge
Your goal for this question is to write a program that accepts two lines (x1,x2) and (x3,x4) on the x-axis and returns whether they overlap. As an example, (1,5) and (2,6) overlaps but not (1,5) and (6,8).
The Answer
source directory: ./overlap
usage:
- Run
pip3 install cf_lines_overlap
from overlap.overlap import overlap
result = overlap((1,5), (4,25))
# It will return True if the lines overlap, False otherwise
Metadata
Release files for cf-lines-overlap 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cf_lines_overlap-0.0.2.tar.gz | 1.6 kB | Without provenance | Details for cf_lines_overlap-0.0.2.tar.gz |
Release files / cf_lines_overlap-0.0.2.tar.gz
| Download URL | cf_lines_overlap-0.0.2.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d65d2bd58c042b44205edde0d0135cacfccf32cfba8532e6f57cff5f56741ced
|
|
BLAKE2b-256 checksum How to use checksums |
e29caa663fac3f721e588b736d7e2eeb1099a57cfbd6fdd9b715559f3768f082
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for cf-lines-overlap 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.