Segment Tree LeetCode 2179. Count Good Triplets in an Array Solution in Java, C++, Python & More | Explanation + Code CoderIndeed July 06, 2026