semvec/pypi-packages huggingface dataset:
cf-compare-versions 0.0.2
Compare version strings
License: MIT

## Ormuco Code Challenge

This project has been created only for demonstration purpose.
>
> ### The challenge
>
> The goal of this question is to write a software library that accepts 2 version string as input and returns whether one is greater than, equal, or less than the other. As an example: “1.2” is greater than “1.1”. Please provide all test cases you could think of.
>


### The Answer

source directory: `./compare_versions`

- Run `pip3 install cf_compare_versions`

usage: 
```
from compare_versions.compare_versions import compare_versions

result = compare_versions('1.0.0.2.9', '1.0.0.3.4')

# It will return:
#     A positive number: If the first version is greater than the second  
#     A negative number: If the first version is smaller than the second
#     Zero: If the versions are equals
```
cf-lines-overlap 0.0.2
Check if 2 lines overlap
License: MIT

## 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
```