Welcome to my solution for the CODE100 final challenge! I am excited to apply as a challenger for the WeAreDevelopers World Congress in Berlin on July 17-19, 2024. This repository contains my solution to determine how many points from a given dataset fall within the black regions of the "100" logo.
To qualify for the CODE100 final, we are required to solve a puzzle that involves analyzing a dataset containing a coordinate system and numerous points. The objective is to identify which of these points lie within the black regions of the "100" logo, as illustrated below:
main.py: The main script that processes the dataset and identifies the points within the black regions.requirements.txt: The dependencies required for the project.
The vertical bar is defined by the following ranges:
- Horizontal range:
145 <= x <= 165 - Vertical range:
75 <= y <= 225
The first "0" is a ring centered at (250, 150) with:
- Inner radius:
55 units - Outer radius:
75 units
The second "0" is a ring centered at (410, 150) with:
- Inner radius:
55 units - Outer radius:
75 units
- Load Data: The coordinates are loaded from
dataset.csvor I loaded directly. - Define Regions: The function
bpixelsdetermines if a point lies within any of the black regions. - Apply Function: The function is applied to each point in the dataset.
- Filter and Count: Points meeting the criteria are filtered, and their count is reported.
The project requires the following Python library:
pandas
Install the dependencies using:
pip install -r requirements.txt