leetcode-potd

368. Largest Divisible Subset

leetcode-potd

Given a set of distinct positive integers nums, return the largest subset answer such that every pair (answer[i], answer[j]) of elements in this subset satisfies: answer[i] %

2551. Put Marbles in Bags

leetcode-potd

You have k bags. You are given a 0-indexed integer array weights where weights[i] is the weight of the ith marble. You are also given the integer k. Divide the marbles

Scroll to Top