Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Feb 7, 2024
1 parent 260e469 commit 5232311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions day24/src/Day24.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ main = do

-- Part 2 explanation:
--
-- - Let each hailstone i have position p[i] and velocity v[i], effectively a 3D line
-- - We're looking for a new line with position p and v, such that for i = 1, ..., n and some t[i]:
-- - Let each hailstone i have position p[i] and velocity v[i], i.e. be a 3D line
-- - We're looking for a new line with position p and velocity v, such that for i = 1, ..., n and some t[i]:
--
-- p + t[i] * v = p[i] + t[i] * v[i] (note that t[i] is the same on both sides due to the time constraint)
-- <=> p - p[i] = t[i] * (v[i] - v) (i.e. (p - p[i]) and (v[i] - v) are collinear...)
Expand Down

0 comments on commit 5232311

Please sign in to comment.