LeetCodeSolutions
LeetCodeSolutions copied to clipboard
Better algorithm for 1351
Yeah I know it's easy, but I found a possibly more efficient algorithm, especially when m>>n or n>>m. It's explained here: https://hyper-meta.blogspot.com/2023/06/m1318-description-given-3-positives.html Let me know what you think!