Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 20, 2025. It is now read-only.

Commit a9cfe2c

Browse files
Remove dead code
1 parent 6ede2d2 commit a9cfe2c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

‎15-2.rb‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ def initialize(input)
5959
sy = sensors[index][1]
6060
bx = beacons[index][0]
6161
by = beacons[index][1]
62-
@map[sx] = 1 if sy == @row
63-
@map[bx] = 2 if by == @row
6462

6563
manhattan_distance = (sx - bx).abs + (sy - by).abs
6664
next unless (sy - row).abs < manhattan_distance

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /