@testset "862.shortest-subarray-with-sum-at-least-k.jl" begin
    @test shortest_subarray([2], 2) == 1
    @test shortest_subarray([2, -1, 2], 3) == 3
    @test shortest_subarray([1, 2], 4) == -1
    @test shortest_subarray([25, -23, 21, 24, 27, 9, -14, -11, 27, -6, 12, 9, -15, 1, -30,
                             -16, -6, 11, 19, -14, 21, -12, 0, -28, -24, 16, -1, -18, 22,
                             12, 4, 8, -11, 28, -18, -9, -14, 5, 26, -10, -29, 21, 21, -3,
                             4, -3, -19, 28, -10, 13, 30, 14, 23, 25, 10, 19, 25, -13, -28,
                             -2, -22, -13, 26, -25, 3, 1, 5, -18, 18, -28, 8, 26, -21, -26,
                             27, 8, 15, -4, 21, -1, 27, -1, -24, -7, 15, 25, 28, -21, -9,
                             21], 70) == 3
    @test shortest_subarray([25, -23, 21, 24, 27, 9, -14, -11, 27, -6, 12, 9, -15, 1, -30,
                             -16, -6, 11, 19, -14, 21, -12, 0, -28, -24, 16, -1, -18, 22,
                             12, 4, 8, -11, 28, -18, -9, -14, 5, 26, -10, -29, 21, 21, -3,
                             4, -3, -19, 28, -10, 13, 30, 14, 23, 25, 10, 19, 25, -13, -28,
                             -2, -22, -13, 26, -25, 3, 1, 5, -18, 18, -28, 8, 26, -21, -26,
                             27, 8, 15, -4, 21, -1, 27, -1, -24, -7, 15, 25, 28, -21, -9,
                             21], 86) == 4
    @test shortest_subarray([25, -23, 21, 24, 27, 9, -14, -11, 27, -6, 12, 9, -15, 1, -30,
                             -16, -6, 11, 19, -14, 21, -12, 0, -28, -24, 16, -1, -18, 22,
                             12, 4, 8, -11, 28, -18, -9, -14, 5, 26, -10, -29, 21, 21, -3,
                             4, -3, -19, 28, -10, 13, 30, 14, 23, 25, 10, 19, 25, -13, -28,
                             -2, -22, -13, 26, -25, 3, 1, 5, -18, 18, -28, 8, 26, -21, -26,
                             27, 8, 15, -4, 21, -1, 27, -1, -24, -7, 15, 25, 28, -21, -9,
                             21], 30) == 1
end