Skip to content

Commit 3891df6

Browse files
authored
Create 1980. Find Unique Binary 1String (#721)
2 parents 122cc36 + 2808f47 commit 3891df6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

1980. Find Unique Binary 1String

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Solution {
2+
public:
3+
string findDifferentBinaryString(vector<string>& nums) {
4+
for (int i = 0; i < nums.size(); i++)
5+
nums[0][i] = nums[i][i] == '1' ? '0' : '1';
6+
return nums[0];
7+
}
8+
};

0 commit comments

Comments
 (0)