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-05-27 21:26:26 发布
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].