[LeetCode] Minimum Sum of Mountain Triplets I

2908. Minimum Sum of Mountain Triplets I

You are given a 0-indexed array nums of integers.

A triplet of indices (i, j, k) is a mountain if:

  • i < j < k
  • nums[i] < nums[j] and nums[k] < nums[j]

Return the minimum possible sum of a mountain triplet of nums. If no such triplet exists, return -1.

Read more
[Hacker Cup 2023 Round 2] Problem C: Wiki RaceRead more
[Hacker Cup 2023 Round 2] Problem B: Meta GameRead more
[Hacker Cup 2023 Round 2] Problem A2: Ready, Go (Part 2)Read more
[Hacker Cup 2023 Round 2] Problem A1: Ready, Go (Part 1)Read more
[Codeforces] Bubble Cup 12 - Finals [Online Mirror, unrated, Div. 2] G. HarvesterRead more
[Codeforces] Technocup 2020 - Elimination Round 1 D. Sequence SortingRead more
[Codeforces] Round 590 (Div. 3) E. Special PermutationsRead more
[Codeforces] Global Round 5 D. Balanced PlaylistRead more
[Codeforces] Round 592 (Div. 2) C. The Football SeasonRead more