Bobby-Joe Bob XXVII is a physicist/scientist/genius who has transferred himself to the second dimension, where he finds an four by four grid. He needs to get from the bottom left edge to the top right edge. Assuming he only goes right or up, how many different ways can he get to the top?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Here's a Python solution that uses strings, such as "lluluulu" or "ullluluu", to represent when Bobby-Joe Bob XXVII goes left, or if he goes up. Bobby-Joe is kept on the plane by limiting the number times he can go left or up to 4. The number of possible ways Bobby-Joe can go will be represented by the number of generated strings of length 8.