Skip to content

Commit 3b32f31

Browse files
committed
format code
1 parent 9175fcc commit 3b32f31

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

2021/Day13/Solution.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ IEnumerable<HashSet<Point>> GetFolds(string input) {
1313
var blocks = input.Split("\n\n");
1414
// parse points into a hashset
1515
var points = (
16-
from line in blocks[0].Split("\n")
16+
from line in blocks[0].Split("\n")
1717
let coords = line.Split(",")
1818
select new Point(int.Parse(coords[0]), int.Parse(coords[1]))
1919
).ToHashSet();
20-
20+
2121
// fold line by line, yielding a new hashset
2222
foreach (var line in blocks[1].Split("\n")) {
2323
var rule = line.Split("=");
@@ -32,9 +32,8 @@ from line in blocks[0].Split("\n")
3232

3333
string ToString(HashSet<Point> d) {
3434
var res = "";
35-
for(var y= 0;y<6;y++){
36-
37-
for(var x= 0;x<100;x++){
35+
for (var y = 0; y < 6; y++) {
36+
for (var x = 0; x < 100; x++) {
3837
res += d.Contains(new Point(x, y)) ? '#' : ' ';
3938
}
4039
res += "\n";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy