🎉 Solved a Leetcode medium problem from Weekly Contest 418! 🚀 I did make a couple of mistakes during implementation, though, so I'd consider it a bit of a miss for an interview setting. The approach I used is pretty straightforward and works well for the specific case of triplets based on the task description—although it might feel a bit overkill to some. 😅 There are also a few interesting, more optimal solutions involving comparisons, etc. Hope you found something useful in this! 💡 Keep learning and growing! 🌟
https://leetcode.com/problems/maximum...