Solving Leetcode 2872: Find the Maximum K-Divisible Components
Leetcode Question Link: https://leetcode.com/problems/maximum-number-of-k-divisible-components/description/
Intuition
Initially, I thought of approaching it with array and tree traversal but didn't think of any other method. I got struck on how to pr...
5p7ro0t.hashnode.dev2 min read