Given a positive integer N, generate all N-digit binary numbers such that for any prefix of the number, the count of 1s is greater than or equal to the count of 0s.
{
"N": 3
}[
"111",
"110",
"101"
]{
"N": 2
}[
"11",
"10"
]{
"N": 1
}[
"1"
]Sign in to Run Code and Submit