Comments by "" (@adambickford8720) on "ThePrimeTime"
channel.
-
1600
-
1100
-
809
-
494
-
376
-
256
-
238
-
171
-
165
-
161
-
127
-
100
-
96
-
76
-
73
-
70
-
70
-
64
-
57
-
27
-
26
-
25
-
25
-
19
-
18
-
17
-
15
-
14
-
14
-
14
-
14
-
13
-
12
-
12
-
10
-
10
-
10
-
9
-
8
-
8
-
8
-
8
-
7
-
7
-
7
-
7
-
7
-
7
-
7
-
6
-
6
-
6
-
6
-
6
-
5
-
5
-
5
-
5
-
5
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
4
-
3
-
3
-
3
-
3
-
3
-
3
-
3
-
3
-
3
-
3
-
3
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
Literally posts a bubble sort 'gotcha' and says he doesn't do them! When you've constrained the problem enough that there are obviously 'correct' and 'incorrect' solutions, that's a 'gotcha'. Real problems don't have ideal, provable solutions, just tradeoffs or judgment calls from experience.
I'm far more interested in someone who can articulate the kind of tradeoffs they expect they'll have to make, which tradeoffs are 'bedrock' and can't be easily changed (async/blocking, event carried state, etc). I want to hear about cost, risks, likelihood of being wrong, implicit assumptions about the solution, etc.
It should feel like 2 guys riffing on a solution and you choose the one that went the best, not just who scored the highest out of 100 possible points.
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
Because there's always that tool that wants to do it in 1 line:
record Measurement(String station, double value) {}
stream(input.split("\n"))
.map(line -> line.split(";"))
.map(vals -> new Measurement(vals[0], Double.parseDouble(vals[1])))
.collect(collectingAndThen(
groupingBy(
Measurement::station,
collectingAndThen(
toList(),
a -> a.stream()
.mapToDouble(Measurement::value)
.summaryStatistics())),
grouped -> grouped.entrySet().stream()
.sorted(comparingByKey())
.map(entry -> "%s=%.1f/%.1f/%.1f".formatted(
entry.getKey(),
entry.getValue().getMin(),
entry.getValue().getAverage(),
entry.getValue().getMax()))
.collect(joining(", ", "{", "}"))
));
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1