|_|_|_|
####
| | | |
##
##
1 1
|1|1|1|
##
##
1
1
|1|1|1|
##
##
1) |1|1| |
2) | |1|1|
1
3) | | |1|
4) and so on
##
##
1) | |1|1|
2) |1|1| |
3) |11| | |
4) | |11| |
5) and so on
##
##
1) | | |11| => ||11 => 0 0 2
2) |1|1| | => 1|1| => 1 1 0
3) | |11| | => |11| => 0 2 0
4) etc
##
##
1) 0011 => 0 0 2
2) 1010 => 1 1 0
3) 0110 => 0 2 0
##
##
0000 - start with string of all zeros
.00. - take some zeroes that way
1001 - and replace with ones
0..0 - take some zeroes that way
0110 - and replaces with ones
00.. - then that way
0011 - you got the idea