a onedimensional japanese crossword represent binary string length x an encode crossword array size n n number segment form completely 1s ai length ith segment no segment touch intersectfor example if x6 crossword 111011 encode array 32 if x8 crossword 01101010 encode array 211 if x5 crossword 11111 encode array 5 if x5 crossword 00000 encode array Mishka want create new onedimensional japanese crossword he pick length encoding crossword and need check exactly crossword length encoding equal length encoding pick help check