We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 122cc36 + 2808f47 commit 3891df6Copy full SHA for 3891df6
1980. Find Unique Binary 1String
@@ -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