What is causing TLE?
Hi, recently I have attempted Leetcode problem 3897. Maximum Value of Concatenated Binary Segments.
Codeforces Round 1137 Solution Discussion