# [3251\. Find the Count of Monotonic Pairs II](https://leetcode.com/problems/find-the-count-of-monotonic-pairs-ii/) :::spoiler Hint ```cpp= ``` ::: :::spoiler Solution ```cpp= ``` - T: $O()$ - S: $O()$ :::