I think I did it before. Sort the array, then every time push current vector, and avoid duplicate, i.e. skip nums[i] == nums[i - 1].
leecode-90-Subsets II
最新推荐文章于 2024-11-04 19:19:20 发布
I think I did it before. Sort the array, then every time push current vector, and avoid duplicate, i.e. skip nums[i] == nums[i - 1].