1980. Find Unique Binary String
Problem Statement
Given an array of strings nums
containing n
unique binary strings each of length n
, return a binary string of length n
that does not appear in nums
. If there are multiple answers, you may return any of them.
Example 1:
Example 2:
Example 3:
Constraints:
n == nums.length
1 <= n <= 16
nums[i].length == n
nums[i]
is either'0'
or'1'
.All the strings of
nums
are unique.
Intuition
Links
https://leetcode.com/problems/find-unique-binary-string/description/
Video Links
https://www.youtube.com/watch?v=o8KyzI4U9M8&ab_channel=AryanMittal
Approach 1:
C++
Approach 2:
C++
Approach 3:
C++
Approach 4:
C++
Similar Problems
Last updated