This repository contains my solutions to programming challenges from the Beecrowd platform, implemented in both C++ and JavaScript.
The goal is to improve my problem-solving skills, strengthen algorithmic thinking, and become a better software engineer by solving challenges from different categories and difficulty levels.
The main objectives of this repository are:
- 🧠 Practice problem-solving with C++ and JavaScript
- ⚙️ Strengthen programming logic and algorithm fundamentals
- 🚀 Improve data structures and algorithm knowledge
- 📚 Track my learning progress through Beecrowd challenges
Languages used in this repository:
- C++
- JavaScript (Node.js)
The solutions are organized by language and Beecrowd category.
C++
│
├── BEGINNER/
├── number - name.cpp
...
├── AD-HOC/
├── number - name.cpp
...
├── DATA STRUCTURES AND LIBRARIES/
├── number - name.cpp
...
└── ...
JavaScript
│
└── BEGINNER/
├── number - name.js
├── number - name.js
└── ...
└── ...
Each solution contains:
- ✔️ Complete solution
- ✔️ Clean and readable code
- ✔️ Problem ID in the filename
- ✔️ Organized by category
Beecrowd reads the input from /dev/stdin, but this path doesn't work when running the code directly on Windows.
To test the solutions locally:
The file must be in the same folder as the JavaScript solution.
Example:
BEGINNER/
│
├── number - name.js
└── stdin
The stdin file should contain exactly the input provided by the Beecrowd problem.
When testing locally, replace:
var input = require('fs').readFileSync('/dev/stdin', 'utf8');with:
var input = require('fs').readFileSync('stdin', 'utf8');This tells Node.js to read the input from the local stdin file.
Don't forget to change the line back to:
var input = require('fs').readFileSync('/dev/stdin', 'utf8');Otherwise, the solution will not work on the Beecrowd online judge.
Summary
Local execution
var input = require('fs').readFileSync('stdin', 'utf8');Beecrowd submission
var input = require('fs').readFileSync('/dev/stdin', 'utf8');
I will continuously update this repository as I solve more Beecrowd problems and improve my programming skills.
Erick Mendes Rocha
Computer Engineering Student passionate about software development, algorithms, and technology.
https://judge.beecrowd.com/pt/profile/1036040
This repository is intended for educational purposes and personal learning.
⭐ If you find this repository useful, feel free to leave a star!