Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nachokhan/data_capture
https://github.com/nachokhan/data_capture
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nachokhan/data_capture
- Owner: nachokhan
- Created: 2023-12-12T18:09:48.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-18T17:44:16.000Z (about 1 year ago)
- Last Synced: 2024-11-16T20:43:59.432Z (2 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Data Statistics Code Challenge
This is a code challenge project that focuses on calculating statistics for a given set of integer data. It consists of two main components: `DataCapture` and `DataStatistics`. The project also includes test cases that can be run using `pytest` to ensure the correctness of the code.
## 1. Creating a python environment
To avoid installing different versions or unneeded version of libraries in your system I recommend you to create a virtua lenvironment for this project.
```bash
python -m venv .env
source .env/bin/activate
```If `python` doen't work, try `python3` or the python's version installed in your system.
## 2. Installing the required dependencies
In order to pacefully run the project/test you might need to install the needed libraries inside the environment.
Once activated you environment (step 1), run:```bash
pip install -r requirements.txt
```## 3. Running Tests
To ensure the correctness of the code, you can run the provided tests using `pytest`. Make sure you have `pytest` installed (prior step), and then run the following command in your terminal:
```bash
pytest
```For a more verbose answer:
```bash
pytest -v
```Enjoy the green ticks :)
# PERSONAL NOTES
This is just for me Don't worry about this.``````
3,9,3,4,6
3,3,4,6,9I = 0 1 2 3 4 5 6 7 8 9 10
------------------------------------------
D = 0 0 0 2 1 0 1 0 0 1 0L = 0 0 0 0 2 3 3 4 3 3 5
G = 5 5 5 3 2 2 1 1 1 0 0
[ ]3 -> 3
6 <- 3G(6) = 1
L(3) = 0L(0) - G(6) + L(3) :)
```