We can solve the problem using a greedy approach. We can start by creating an empty 2D array and an empty set. We then iterate through each element in the nums ...
確定! 回上一頁