[Codeforces] ABBYY Cup 2.0 - Hard B1. Greedy MerchantsRead more
[Codeforces] ABBYY Cup 2.0 - Hard F3. Representative SamplingRead more
[Codeforces] ABBYY Cup 2.0 - Hard F2. Representative SamplingRead more
[Codeforces] ABBYY Cup 2.0 - Hard F1. Representative SamplingRead more
[Codeforces] Round 116 (Div. 2, ACM-ICPC Rules) A. DefragmentationRead more
[Codeforces] Round 116 (Div. 2, ACM-ICPC Rules) E. CubesRead more
[LeetCode] Missing Ranges

163. Missing Ranges

You are given an inclusive range [lower, upper] and a sorted unique integer array nums, where all elements are within the inclusive range.

A number x is considered missing if x is in the range [lower, upper] and x is not in nums.

Return the shortest sorted list of ranges that exactly covers all the missing numbers. That is, no element of nums is included in any of the ranges, and each missing number is covered by one of the ranges.

Read more
[CS Academy] Min PairingRead more
[CS Academy] Min Coin PaymentRead more
[CS Academy] Interval Expected MaxRead more