All: Cleanup all files

Add newline to end of files and remove whitespace from end of lines
This commit is contained in:
2024-01-24 14:43:46 +02:00
parent 3441f63298
commit dfe5a2d665
226 changed files with 466 additions and 460 deletions

View File

@@ -52,7 +52,7 @@ BAN::Vector<BAN::Vector<i64>> parse_grid(FILE* fp)
line = line.substring(0, line.size() - 1);
if (line.empty())
break;
MUST(grid.emplace_back(line.size()));
for (size_t i = 0; i < line.size(); i++)
grid.back()[i] = line[i] - '0';
@@ -95,7 +95,7 @@ i64 solve_general(FILE* fp)
BAN::HashSet<Position> visited;
BAN::HashSet<Position> pending;
MUST(pending.insert({ 0, 0 }));
while (!pending.empty())
{
auto position = *pending.begin();
@@ -175,7 +175,7 @@ i64 puzzle1(FILE* fp)
i64 puzzle2(FILE* fp)
{
return solve_general<4, 10>(fp);
return solve_general<4, 10>(fp);
}
int main(int argc, char** argv)