0
. Now in every subsequent row, we look at the previous row and replace each occurrence of0
with01
, and each occurrence of1
with10
.N
and indexK
, return theK
-th indexed symbol in rowN
. (The values ofK
are 1-indexed.) (1 indexed).N
will be an integer in the range[1, 30]
.K
will be an integer in the range[1, 2^(N-1)]
.