Greatest Sum Divisible by Three - Leetcode 1262 - Python
NeetCodeIO · 15:41 · Watch on YouTube
The video solves LeetCode's "Greatest Sum Divisible by Three" greedily. Add up every number. If the total isn't divisible by 3, subtract the smallest subset sum that has the same remainder as the total. That subset is...