题目描述 Farmer John wants to take Bessie skiing in Colorado. Sadly, Bessie is not really a very good skier. Bessie has learned that the ski resort is offering S (0 <= S <= 100) ski classes throughout the day. Lesson i starts at time M_i (1 <= M_i &l…
Today I troubleshooted an Elasticsearch-cluster-down issue. Several lessons were learned: When many elasticsearch cluster nodes are restarted, to avoid HEAP spike, better to temporarily stop all connection attempts; Avoid setting allow_primary=true w…
Ski Course Design Farmer John has N hills on his farm (1 <= N <= 1,000), each with an integer elevation in the range 0 .. 100. In the winter, since there is abundant snow on these hills, FJ routinely operates a ski training camp. Unfortunately, FJ h…