Uubnewb
February 22nd, 2012, 02:39 PM
Hi everyone,
For a job interview I once had to complete a logical puzzle that basically take you through a loop to determine the answer. Something like this:
Start with some equation like: x + y = z
Give them some starting values:
x = 0
y = 1000
Then they give you some steps:
Step 1: Increase x by 5. Go to step 2.
Step 2: If y is greater than zero, decrease y by 2. Go to step 3.
Step 3: If if x is greater than 255, go to step9 otherwise go to step 7.
...
Step n: How many iterations will it take for z to be less than 0 and what will the final answer of x and y be?
Please note: this is not the problem I had to solve, it is just a quick example I sucked out of my thumb.
So my question is: Do these puzzle types have a specific name? I've tried to look for them on the internet but did not really know what to look for.
If anybody can point me in the right direction with either some search terms or a website where I can find these puzzles I'd greatly appreciate it.
Thanks in advance.
For a job interview I once had to complete a logical puzzle that basically take you through a loop to determine the answer. Something like this:
Start with some equation like: x + y = z
Give them some starting values:
x = 0
y = 1000
Then they give you some steps:
Step 1: Increase x by 5. Go to step 2.
Step 2: If y is greater than zero, decrease y by 2. Go to step 3.
Step 3: If if x is greater than 255, go to step9 otherwise go to step 7.
...
Step n: How many iterations will it take for z to be less than 0 and what will the final answer of x and y be?
Please note: this is not the problem I had to solve, it is just a quick example I sucked out of my thumb.
So my question is: Do these puzzle types have a specific name? I've tried to look for them on the internet but did not really know what to look for.
If anybody can point me in the right direction with either some search terms or a website where I can find these puzzles I'd greatly appreciate it.
Thanks in advance.