andyb
12/23/2020, 10:49 AMandyb
12/23/2020, 10:56 AMephemient
12/23/2020, 11:26 AMJakub Gwóźdź
12/23/2020, 3:20 PMclass Cup(val id: Int) {
lateinit var next: Cup
}
🧌Jakub Gwóźdź
12/23/2020, 3:21 PMNir
12/23/2020, 3:39 PMNir
12/23/2020, 3:39 PMtodd.ginsberg
12/23/2020, 5:14 PMCup
!) can do a toString()
until it loops around and has a function to gather the next n
cups into a list (which I use twice). Most everything else is in my Cups
class, which looks a bit different. It takes ~5s on my machine to do P2, which I guess is fine.Jakub Gwóźdź
12/23/2020, 6:28 PMtodd.ginsberg
12/23/2020, 6:36 PMephemient
12/23/2020, 6:47 PMtodd.ginsberg
12/23/2020, 6:50 PMtodd.ginsberg
12/23/2020, 9:03 PMtodd.ginsberg
12/23/2020, 9:03 PMLuke
12/23/2020, 9:45 PMoperator fun componentX
to extract the few next ones without building intermediate lists, but I can't chain calls with that approachNir
12/24/2020, 12:15 AMNir
12/24/2020, 12:15 AMNir
12/24/2020, 12:15 AMbjonnh
12/27/2020, 12:26 AMbjonnh
12/27/2020, 12:28 AMbjonnh
12/27/2020, 12:28 AMbjonnh
12/27/2020, 12:34 AMbjonnh
12/27/2020, 12:34 AMbjonnh
12/27/2020, 1:17 AMbjonnh
12/27/2020, 1:17 AM