Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

New answers tagged

7 votes

Advent of code 2023 day 5 in Java: mapping integer ranges to new integer ranges

Use proper types / Avoid abusing Arrays and Collections Put on yourself in the shoes of the code reader and try to answer the question: "What do they make of this type?" ...
Alexander Ivanchenko's user avatar
9 votes
Accepted

Advent of code 2023 day 5 in Java: mapping integer ranges to new integer ranges

Your code needs a complete rewrite. I'll show you some pointers towards the next iteration. import java.io.File; // read file Forget these comments. The reason why ...
TorbenPutkonen's user avatar

Top 50 recent answers are included