File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 531
531
1926|[ Nearest Exit from Entrance in Maze] ( ./1926-nearest-exit-from-entrance-in-maze.js ) |Medium|
532
532
1929|[ Concatenation of Array] ( ./1929-concatenation-of-array.js ) |Easy|
533
533
1935|[ Maximum Number of Words You Can Type] ( ./1935-maximum-number-of-words-you-can-type.js ) |Easy|
534
+ 1980|[ Find Unique Binary String] ( ./1980-find-unique-binary-string.js ) |Medium|
534
535
1985|[ Find the Kth Largest Integer in the Array] ( ./1985-find-the-kth-largest-integer-in-the-array.js ) |Medium|
535
536
1996|[ The Number of Weak Characters in the Game] ( ./1996-the-number-of-weak-characters-in-the-game.js ) |Medium|
536
537
2000|[ Reverse Prefix of Word] ( ./2000-reverse-prefix-of-word.js ) |Easy|
Original file line number Diff line number Diff line change
1
+ /**
2
+ * 1980. Find Unique Binary String
3
+ * https://leetcode.com/problems/find-unique-binary-string/
4
+ * Difficulty: Medium
5
+ *
6
+ * Given an array of strings nums containing n unique binary strings each of length n,
7
+ * return a binary string of length n that does not appear in nums. If there are multiple
8
+ * answers, you may return any of them.
9
+ */
10
+
11
+ /**
12
+ * @param {string[] } nums
13
+ * @return {string }
14
+ */
15
+ var findDifferentBinaryString = function ( nums ) {
16
+ return nums . map ( ( n , i ) => n [ i ] === '0' ? '1' : '0' ) . join ( '' ) ;
17
+ } ;
You can’t perform that action at this time.
0 commit comments