← ALL NOTES
Array

1980. Find Unique Binary String

Given nums, an array of n unique binary strings each of length n, return a binary string of length n that is not in nums. Build it by Cantor diagonalisation: take the i-th bit of the i-th string and…

Loading…