Skip to content

Commit 0a2d5e8

Browse files
aoc 2024 in java; day01
1 parent 67df5df commit 0a2d5e8

26 files changed

+1524
-2411
lines changed

.gitignore

Lines changed: 42 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,44 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
9-
# Diagnostic reports (https://nodejs.org/api/report.html)
10-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11-
12-
# Runtime data
13-
pids
14-
*.pid
15-
*.seed
16-
*.pid.lock
17-
18-
# Directory for instrumented libs generated by jscoverage/JSCover
19-
lib-cov
20-
21-
# Coverage directory used by tools like istanbul
22-
coverage
23-
*.lcov
24-
25-
# nyc test coverage
26-
.nyc_output
27-
28-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29-
.grunt
30-
31-
# Bower dependency directory (https://bower.io/)
32-
bower_components
33-
34-
# node-waf configuration
35-
.lock-wscript
36-
37-
# Compiled binary addons (https://nodejs.org/api/addons.html)
38-
build/Release
39-
40-
# Dependency directories
41-
node_modules/
42-
jspm_packages/
43-
44-
# TypeScript v1 declaration files
45-
typings/
46-
47-
# TypeScript cache
48-
*.tsbuildinfo
49-
50-
# Optional npm cache directory
51-
.npm
52-
53-
# Optional eslint cache
54-
.eslintcache
55-
56-
# Microbundle cache
57-
.rpt2_cache/
58-
.rts2_cache_cjs/
59-
.rts2_cache_es/
60-
.rts2_cache_umd/
61-
62-
# Optional REPL history
63-
.node_repl_history
64-
65-
# Output of 'npm pack'
66-
*.tgz
67-
68-
# Yarn Integrity file
69-
.yarn-integrity
70-
71-
# dotenv environment variables file
72-
.env
73-
.env.test
74-
75-
# parcel-bundler cache (https://parceljs.org/)
76-
.cache
77-
78-
# Next.js build output
79-
.next
80-
81-
# Nuxt.js build / generate output
82-
.nuxt
83-
dist
84-
85-
# Gatsby files
86-
.cache/
87-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88-
# https://nextjs.org/blog/next-9-1#public-directory-support
89-
# public
90-
91-
# vuepress build output
92-
.vuepress/dist
93-
94-
# Serverless directories
95-
.serverless/
96-
97-
# FuseBox cache
98-
.fusebox/
99-
100-
# DynamoDB Local files
101-
.dynamodb/
102-
103-
# TernJS port file
104-
.tern-port
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea/modules.xml
9+
.idea/jarRepositories.xml
10+
.idea/compiler.xml
11+
.idea/libraries/
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### Eclipse ###
20+
.apt_generated
21+
.classpath
22+
.factorypath
23+
.project
24+
.settings
25+
.springBeans
26+
.sts4-cache
27+
bin/
28+
!**/src/main/**/bin/
29+
!**/src/test/**/bin/
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
38+
### VS Code ###
39+
.vscode/
40+
41+
### Mac OS ###
42+
.DS_Store
10543

10644
/.idea
107-
108-
**/input.txt

README.md

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,27 @@
1-
# Advent of Code 2023
1+
# Advent of Code 2024
22

33
Here are my solutions. Enjoy!\
44
They aren't the most efficient or best performant, but they work in their own way.
55

66
## Info
77

8-
Language: `TypeScript`\
9-
Runtime: `Node.js`\
10-
IDE: `Visual Studio Code`
8+
Language: `Java 21`\
9+
IDE: `IntelliJ IDEA Ultimate`
1110

1211
## Overview
1312

1413
| Day | Part 1 | Part 2 | | Day | Part 1 | Part 2 |
15-
| --- | ------ | ------ | --- | --- | ------ | ------ |
16-
| 1 | ✔️ | ✔️ | | 13 |||
17-
| 2 | ✔️ || | 14 |||
18-
| 3 | | | | 15 |||
19-
| 4 | | | | 16 |||
20-
| 5 | ❌️ | ❌️ | | 17 |||
21-
| 6 | ❌️ | ❌️ | | 18 |||
22-
| 7 | ❌️ || | 19 |||
23-
| 8 | ❌️ || | 20 |||
24-
| 9 | ❌️ || | 21 |||
25-
| 10 | ❌️ || | 22 |||
26-
| 11 | ❌️ || | 23 |||
27-
| 12 | ❌️ || | 24 |||
14+
|-----|--------|--------|-----|-----|--------|--------|
15+
| 1 | ✔️ | ✔️ | | 13 | | |
16+
| 2 | || | 14 | | |
17+
| 3 | | | | 15 | | |
18+
| 4 | | | | 16 | | |
19+
| 5 | ❌️ | ❌️ | | 17 | | |
20+
| 6 | ❌️ | ❌️ | | 18 | | |
21+
| 7 | ❌️ | | | 19 | | |
22+
| 8 | ❌️ | | | 20 | | |
23+
| 9 | ❌️ | | | 21 | | |
24+
| 10 | ❌️ | | | 22 | | |
25+
| 11 | ❌️ | | | 23 | | |
26+
| 12 | ❌️ | | | 24 | | |
2827

29-
## Usage
30-
31-
### Install dependencies
32-
33-
```bash
34-
npm install
35-
```
36-
37-
```bash
38-
yarn install
39-
```
40-
41-
### Run
42-
43-
```bash
44-
npm start
45-
```
46-
47-
```bash
48-
yarn start
49-
```
50-
51-
And then type in the day you want to run.

build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
plugins {
2+
id("java")
3+
}
4+
5+
group = "de.sachsenspielt"
6+
version = "1.0-SNAPSHOT"
7+
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
dependencies {
13+
testImplementation(platform("org.junit:junit-bom:5.10.0"))
14+
testImplementation("org.junit.jupiter:junit-jupiter")
15+
}
16+
17+
tasks.test {
18+
useJUnitPlatform()
19+
}

gradle/wrapper/gradle-wrapper.jar

59.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Sun Dec 01 15:43:50 CET 2024
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)