[LeetCode] Rearrange Array to Maximize Prefix Score

2587. Rearrange Array to Maximize Prefix Score

You are given a 0-indexed integer array nums. You can rearrange the elements of nums to any order (including the given order).

Let prefix be the array containing the prefix sums of nums after rearranging it. In other words, prefix[i] is the sum of the elements from 0 to i in nums after rearranging it. The score of nums is the number of positive integers in the array prefix.

Return the maximum score you can achieve.

Read more
[LeetCode] Count the Number of Vowel Strings in Range

2586. Count the Number of Vowel Strings in Range

You are given a 0-indexed array of string words and two integers left and right.

A string is called a vowel string if it starts with a vowel character and ends with a vowel character where vowel characters are ‘a’, ‘e’, ‘i’, ‘o’, and ‘u’.

Return the number of vowel strings words[i] where i belongs to the inclusive range [left, right].

Read more
[CS Academy] Attack and SpeedRead more
[CS Academy] AnomaliesRead more
[CS Academy] Election SpiesRead more
[CS Academy] Eliminate EdgesRead more
[CS Academy] AspirationsRead more
[AtCoder] E - Active InfantsRead more
[AtCoder] A - Xor BattleRead more
[AtCoder] D - Knapsack Queries on a treeRead more