Automatic commit performed through alias...
This commit is contained in:
@@ -32,11 +32,13 @@
|
||||
" 1 1 0 0 <br>\n",
|
||||
"\n",
|
||||
"### A couple things that shake out of this,\n",
|
||||
"1. The total length of a sequence of moves is the equal to Length + Width of the grid.\n",
|
||||
"1. The total length of a sequence of moves is the equal to Length + Width of the grid.<br>\n",
|
||||
" 1. So, for a 20x20, each sequence will be 40 moves in length.\n",
|
||||
" 1. That could 2**40 possible combinations, most of which will not be valid.\n",
|
||||
"2. Each unique sequence of moves has a twin which is a mirror across the diagonal.\n",
|
||||
"3. Each valid sequence has an equal number of RIGHT and DOWN moves.\n",
|
||||
"\n",
|
||||
"### I'm sure there is some combinatorial mathematics that describes how to do this analytically, but I'd rather practice programming a loop, than researching an elegant solution. \n",
|
||||
"### I'm sure there is some combinatorial mathematics that describes how to do this analytically. That will require some research, so I'll save this problem for another day.\n",
|
||||
"\n",
|
||||
"---"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user