Topic: Array Problem / Level: intermediate

Problem: Find the number of distinct subarrays where the sum of elements is smaller than the sum of their neighbors using a two-pointer approach.

Run the code to see the output here...