We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 122cc36 commit 2808f47Copy full SHA for 2808f47
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