update Readme files
This commit is contained in:
parent
e546c0cfe7
commit
79ac70de51
@ -48,3 +48,9 @@ To avoid this unacceptable situation, the Elves would instead like to know the t
|
||||
In the example above, the top three Elves are the fourth Elf (with 24000 Calories), then the third Elf (with 11000 Calories), then the fifth Elf (with 10000 Calories). The sum of the Calories carried by these three elves is 45000.
|
||||
|
||||
Find the top three Elves carrying the most Calories. How many Calories are those Elves carrying in total?
|
||||
|
||||
|
||||
--- Idea ---
|
||||
1. Calculate Each Elf's Total: For each Elf, the script sums up their calorie counts.
|
||||
2. Identify Top Three: The script then sorts these sums to find the top three highest values.
|
||||
3. Calculate Total for Top Three: Finally, it sums the calorie counts of these top three Elves.
|
54
README.md
54
README.md
@ -32,7 +32,28 @@ I aim to complete each day's puzzle on the same day, but as with any challenge,
|
||||
|-----|----------|----------|-------------|
|
||||
| 01 | ✅ | ✅ | [Day01 README](/Day01/README.md) |
|
||||
| 02 | ❓ | ❓ | [Day02 README](/Day02/README.md) |
|
||||
| ... | ... | ... | ... |
|
||||
| 03 | ❓ | ❓ | [Day25 README](/Day03/README.md) |
|
||||
| 04 | ❓ | ❓ | [Day25 README](/Day04/README.md) |
|
||||
| 05 | ❓ | ❓ | [Day25 README](/Day05/README.md) |
|
||||
| 06 | ❓ | ❓ | [Day25 README](/Day06/README.md) |
|
||||
| 07 | ❓ | ❓ | [Day25 README](/Day07/README.md) |
|
||||
| 08 | ❓ | ❓ | [Day25 README](/Day08/README.md) |
|
||||
| 09 | ❓ | ❓ | [Day25 README](/Day09/README.md) |
|
||||
| 10 | ❓ | ❓ | [Day25 README](/Day10/README.md) |
|
||||
| 11 | ❓ | ❓ | [Day25 README](/Day11/README.md) |
|
||||
| 12 | ❓ | ❓ | [Day25 README](/Day12/README.md) |
|
||||
| 13 | ❓ | ❓ | [Day25 README](/Day13/README.md) |
|
||||
| 14 | ❓ | ❓ | [Day25 README](/Day14/README.md) |
|
||||
| 15 | ❓ | ❓ | [Day25 README](/Day15/README.md) |
|
||||
| 16 | ❓ | ❓ | [Day25 README](/Day16/README.md) |
|
||||
| 17 | ❓ | ❓ | [Day25 README](/Day17/README.md) |
|
||||
| 18 | ❓ | ❓ | [Day25 README](/Day18/README.md) |
|
||||
| 19 | ❓ | ❓ | [Day25 README](/Day19/README.md) |
|
||||
| 20 | ❓ | ❓ | [Day25 README](/Day20/README.md) |
|
||||
| 21 | ❓ | ❓ | [Day25 README](/Day21/README.md) |
|
||||
| 22 | ❓ | ❓ | [Day25 README](/Day22/README.md) |
|
||||
| 23 | ❓ | ❓ | [Day25 README](/Day23/README.md) |
|
||||
| 24 | ❓ | ❓ | [Day25 README](/Day24/README.md) |
|
||||
| 25 | ❓ | ❓ | [Day25 README](/Day25/README.md) |
|
||||
|
||||
- ✅ Completed
|
||||
@ -40,31 +61,52 @@ I aim to complete each day's puzzle on the same day, but as with any challenge,
|
||||
|
||||
## Running the Solutions
|
||||
Each solution is a standalone script.
|
||||
|
||||
## Python
|
||||
To run any of the solutions, navigate to the respective day's directory and run the script using a Python interpreter.
|
||||
Make sure you have Python installed on your machine. The solutions are developed using Python 3.x.
|
||||
For example:
|
||||
|
||||
```bash
|
||||
cd Day01
|
||||
python part2.py
|
||||
cd Day01/python
|
||||
python3 part2.py test.txt # for testing (not all Days will have that)
|
||||
python3 part2.py
|
||||
```
|
||||
|
||||
Make sure you have Python installed on your machine. The solutions are developed using Python 3.x.
|
||||
|
||||
## Rust
|
||||
For Rust you have to use the rust project generated in each Day.
|
||||
Make sure you have Rust and Cargo installed.
|
||||
You can either test or run the solution:
|
||||
|
||||
```bash
|
||||
cd Day01/rust
|
||||
cargo test
|
||||
cargo run
|
||||
cargo test #running tests
|
||||
cargo run # run with the actual input file
|
||||
```
|
||||
|
||||
## C++
|
||||
Install a C++ compiler like g++ on your machine. Then:
|
||||
```bash
|
||||
cd Day01/cpp
|
||||
g++ -o solution solution.cpp # compile
|
||||
./solution #run the binary
|
||||
```
|
||||
|
||||
## JavaScript
|
||||
Using solutions in JavaScript requires NodeJS installed on your system. Then:
|
||||
```bash
|
||||
cd Day01/js
|
||||
node solution.js
|
||||
```
|
||||
|
||||
## TypeScript
|
||||
Normally you can use compile the TS file to JS using the tsc compiler. But for ease in this simple scripts i suggest installing: `npm install -g typescript ts-node`. With this you can just run the TS file at once and get the output without compiling and running over and over.
|
||||
```bash
|
||||
cd Day01/ts
|
||||
ts-node solution.ts
|
||||
```
|
||||
|
||||
## Feedback and Collaboration
|
||||
I'm always open to feedback and suggestions for improving the solutions.
|
||||
If you have ideas or find an issue, feel free to open an issue or submit a pull request.
|
||||
|
Loading…
Reference in New Issue
Block a user