Skip to content

Instantly share code, notes, and snippets.

View almendar's full-sized avatar

Tomasz Kogut almendar

View GitHub Profile
package main
import (
"io/ioutil"
"log"
"strings"
)
type Seafloor [][]rune
package main
import (
"fmt"
"io/ioutil"
"log"
"math"
"strconv"
"strings"
)
package main
import "fmt"
type Die interface {
roll() int
}
type DeterministicDie struct {
value int
package main
import (
"fmt"
"io/ioutil"
"log"
"math"
"strings"
)
package main
import (
"fmt"
"io/ioutil"
"log"
"math"
"strconv"
"strings"
)
type SnailNumber struct {
parent, left, right *SnailNumber
value int
}
func (n *SnailNumber) Equals(otherN *SnailNumber) bool {
return n == otherN
}
func (n *SnailNumber) isNumber() bool {
package main
import (
"fmt"
"io/ioutil"
"log"
"math"
"strings"
)
package main
import (
"fmt"
"io/ioutil"
"log"
"math"
"strconv"
"strings"
)
import java.nio.file.Files
import java.nio.file.Paths
import scala.collection.mutable
import scala.collection.mutable.ArrayBuffer
import scala.util.chaining._
opaque type Cave = String
type Path = Vector[Cave]
extension (c: Cave)
package day12;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
public class Day12 {