SUBSETS | BIT MANIPULATION | LEETCODE | TAMIL

Gokulesh
Gokulesh
422 بار بازدید - 3 سال پیش - Given an integer array nums
Given an integer array nums of unique elements, return all possible subsets (the power set).

The solution set must not contain duplicate subsets. Return the solution in any order.

Example 1:
Input: nums = [1,2,3]
Output: [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]

Example 2:
Input: nums = [0]
Output: [[],[0]]

Follow me on Github:https://github.com/Gokulesh2001
Follow me on LinkedIn:https://www.linkedin.com/in/gokulesh-...
3 سال پیش در تاریخ 1400/03/06 منتشر شده است.
422 بـار بازدید شده
... بیشتر