This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Day3 do | |
# Since my last answer wasn't purely Nx, I'm going | |
# to try to stick to Nx as much as is possible, but | |
# we don't have string manipulation stuff so that will | |
# have to be done in Elixir | |
import Nx.Defn | |
def part1 do | |
File.read!("aoc/3.txt") | |
|> parse_input() |
OlderNewer