3388. Count Beautiful Splits in an Array
You are given an array nums.
A split of an array nums is beautiful if:
Return the number of ways you can make this split.
Examples
Example 1
Input: nums = [1,1,2,1]
Output: 2
Explanation:
The beautiful splits are:
Example 2
Input: nums = [1,2,3,4]
Output: 0
Explanation:
There are 0 beautiful splits.
Constraints
1 <= nums.length <= 50000 <= nums[i] <= 50