Jump to content
BrainDen.com - Brain Teasers

Leaderboard


Popular Content

Showing content with the highest reputation since 11/11/18 in Posts

  1. 1 point
  2. 1 point
    An oldie but a goody (IMO): ****************************** Five-walled open house Shut my door and make it four. I know exactly who you are, Where you sleep, friends you keep. A loyal soldier out on tour I take my leaves overseas. So pin the gold upon my breast, Give me orders crossing borders.
  3. 1 point
    Wait a minute, wait a minute, Mr
  4. 1 point
    Though seldom seen, I'm world renowned Ever in flight above the ground. Teeth chewing, gnashing in time gnawing on knots, shunning the find. My hands at the ready, arms at the stay Heart like the sun, burning away. Ears like a rabbit's, pinned to the side-- Listening close, far and wide.
  5. 1 point
  6. 1 point
    I’m the acrobat at your command, Give me a turn, or put me on the stand. I’m the sentinel, doorman you need, Give me a go, a go-ahead from me. Hit me, poke me, nail me in your wake, Without my flips, weak knees would quake. I live in one state and travel to another, Sunny side up or fumble in the other.
  7. 1 point
  8. 1 point
    The answer should be 25. My "proof" is a brute force programming solution. I have a psuedocode c++ bruteforce solution. I can give the full version if requested. It takes a few seconds to brute force all possible paths. This might count as a proof, depending on if you trust the computer to be reliable. Basically what it does is it generates all possible paths, and then prunes as it goes along so the program dosen't take basically forever, or 6^27 moves. Now a proof will involve some theorems in graph theory, which I don't yet know all that well. Assume the XYZ plane void recursive_dumb_solution( A 3D cube,Position of X, Y, and Z of current spot,direction it went twice ago, direction it went to get here){ if traveled along a direction twice in a row, return to the above function. else if( x<0 || x > 2 || y < 0 || y > 2 || z < 0 || z > 2) AKA if it exited the cube, return. else if(cube[x][y][z] == 1) AKA if visited spot already visited, then return. else{ //mark the current position of the cube as visited. cube[x][y][z] = 1; /////Moves in every direction possible. recursive_dumb_solution(cube, x+1, y, z, length+1,'x',prev_dir); recursive_dumb_solution(cube, x-1, y, z, length+1,'x',prev_dir); recursive_dumb_solution(cube, x, y+1, z, length+1,'y',prev_dir); recursive_dumb_solution(cube, x, y-1, z, length+1,'y',prev_dir); recursive_dumb_solution(cube, x, y, z+1, length+1,'z',prev_dir); recursive_dumb_solution(cube, x, y, z-1, length+1,'z',prev_dir); cube[x][y][z] = 0; return; } }
  9. 1 point
×