Day 13 of June LeetCode Challenge

Aanchal Patial
1 min readJun 13, 2020

Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies:

Si % Sj = 0 or Sj % Si = 0.

If there are multiple solutions, return any subset is fine.

--

--

Aanchal Patial

We never really grow up, we only learn how to act in public