Suffix Array LeetCode 1044. Longest Duplicate Substring Solution in Java, C++, Python & Go | Explanation + Code CoderIndeed May 29, 2026