Event JSON
{
"id": "841ce7b1817435f1899454d7c3bfe5157d1effe5564779d9fe57ffda66f0ad89",
"pubkey": "ee58bb9e62a0aa7a42ed42928d02a3713c1cb8f67daf8e894627553bb7ba9ea9",
"created_at": 1702301892,
"kind": 1,
"tags": [
[
"p",
"5150cec16f3fe453e8895cfc0a03f391c890712633f718c0bca1a1096cf8d547",
"wss://relay.mostr.pub"
],
[
"p",
"979383f8767c5d795fcad86f82dc7b38b384c1a473710c433014dc2c0fb0e359",
"wss://relay.mostr.pub"
],
[
"e",
"40673c04e7f905d22965d6887c3a14d0cfa82ecddd3dfb334d99b1358082125e",
"wss://relay.mostr.pub",
"reply"
],
[
"content-warning",
"Advent of Code day 11 - Rust solution"
],
[
"proxy",
"https://mastodon.online/users/teotwaki/statuses/111562056816758097",
"activitypub"
]
],
"content": "nostr:npub129gvast08lj986yftn7q5qlnj8yfqufxx0m33s9u5xssjm8c64rsve4kwg You can just treat the expansion on its own and add it at the end after you’ve calculated the manhattan distance: x1.abs_diff(x2) + y1.abs_diff(y2) + (expansion_x + expansion_y) * expansion_factor\n\nhttps://github.com/teotwaki/advent-of-code/blob/main/2023/day11/src/main.rs",
"sig": "38bc0dcd1dee68955cf7ece695ff62d08504a0c880ee02b336a9062a862c26bb2ea32d429fd194393402955a1551b02585da85d90dcae9747d518dd562d55e79"
}