Topic: Array Problem / Level: intermediate

Problem: Find the number of subarrays where the sum of elements is smaller than the sum of their neighbors using dynamic programming.

Run the code to see the output here...