|
I'm trying to build an A* solver for a 15-square puzzle .
The goal is to re-arrange the tiles so that they appear in their natural positions. You can only slide one tile at a time. Each possible state of the puzzle is a node in the search graph.
For the...
Started by Cheeso on
, 9 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
/* the ....
It is not possible) function shown here to converge much more quickly than the Manhattan distance, for the 15-square puzzle time will be "infinite".
If it's random, you will not be able to solve the puzzle about half the time.
|
|
Hi,
I found this puzzle in a C aptitude paper.
void change() { //write something in this function so that output of printf in main function //should always give 5.you can't change the main function } int main() { int i = 5; change(); i = 10; printf("%...
Started by pragadheesh on
, 15 posts
by 15 people.
Answer Snippets (Read the full thread at stackoverflow):
If so then that is a horrible, ugly question and the (non-portable.
Of such questions, unless they're meant to run on particular hardware, compiler, etc.?)
Invoke and goes straight to the printf .
|
|
Not strictly a question, more of a puzzle...
Over the years, I've been involved in a few technical interviews of new employees. Other than asking the standard "do you know X technology" questions, I've also tried to get a feel for how they approach problems...
Started by Andrew Rollings on
, 32 posts
by 32 people.
Answer Snippets (Read the full thread at stackoverflow):
Great puzzle!
I see that most people are storing.
There are many possible approaches of which data this approach should yield really good results .
There is no absolutely right answer to this question.
|
Ask your Facebook Friends
|
There have been many questions related to what one should ask interviewees, what you should ask a company you're interviewing at, etc. I searched and I don't think this one is a duplicate. Also, community wiki from the start.
So here goes: What is the...
Started by Artem Russakovskii on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
Having said all that, the best question I've ever been asked was "so, would you like a job do with it?
In my opinion, there's no right answer to the question, but it really gets you, as the interviewee, thinking about ....
questions.
|
|
Hello, welcome to visit the forum. My name is Hansen Chen. I am the moderator in this forum, let us work together to make it into the best puzzle forum in the world.
Regarding what a good puzzle is, I have the following understanding:
1. A good puzzle...
Started by Hansen Chen on
, 11 posts
by 6 people.
Answer Snippets (Read the full thread at sap):
★questions Very difficultCompetitors....
★question Very easy, everyone can solve.
A puzzle with more ★questions means more difficult.
Means questions
am using the ★ question to measure the difficulty of a puzzle.
|
|
Moving jigsaw puzzle Just a tip take all of the pieces out of the box first
Not your usual jigsaw puzzle!
This is amazing, the picture has movement in it the entire time you are working on it.
Drag the pieces together to make a picture, it can be done...
Started by brilor on
, 20 posts
by 9 people.
Answer Snippets (Read the full thread at jokeroo):
Have all the right answers
and the courage to learn to ask the right questions ♥ Loved it! More://justjigsawpuzzles.com/jigsaw_moving.html
When I clicked on a puzzle I needed to download Adobe Shockwave Player://moving-puzzles.com/puzzle....
|
|
BRAID the PUZZLE game Guys, anyone playing BRAID?
Those who played Portal would surely love it. It has more challenge and fun than Portal.
Its 2D but gr8 visuals.
Its one hell of a puzzle game.
Try it and lets here ur opinion on it
Answer Snippets (Read the full thread at thinkdigit):
And whats the objective of the game....
Re: BRAID the PUZZLE gameRe: BRAID the PUZZLE game it feels more like an arcade style mario than a puzzle game..
Most basic questions are answered in those.
Before asking any type of query.
|
|
Please check the below program.
#include <stdio.h> struct st { int a ; } fn () { struct st obj ; obj.a = 10 ; return obj ; } int main() { struct st obj = fn() ; printf ("%d", obj.a) ; }
Following are the questions
What is the output of the program...
Started by Ganesh Gopalasubramanian on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Things may be a little clearer if we reformat the code a bit:
... .
The structure tag st is declared at global scope and is therefore visible to main .
There doesn't need to be a semicolon because the whole thing is a function definition .
The output is 10.
|
|
Very simple Ajax request taking employee id and returning the user info as HTML dumb.
Request ajax("employee/info?emp_id=3543")
Response
id = 3543
name = some name
This is just another simple JS trick to populate the UI.
However i do not understand how...
Started by Anil Namde on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Which are the correct scenarious to user it?
Ajax way is the correct method... .
The later method takes more time though.
Nothing like +ve or -ve.
Depends whether you want to use asynchronous (ajax) way or not .
Is this correct approach ? its +ves and -ves.
|
|
Programming Puzzle 1 - Simple Loop If you've been thinking that this summer might be a good time to learn a little xbasic, I have a treat in store for you.
I'm planning to post a series of programming puzzles for you to work on. Puzzles that must be worked...
Started by Tom Cone Jr on
, 30 posts
by 12 people.
Answer Snippets (Read the full thread at alphasoftware):
Understanding the questionRe: Programming Puzzle 1 - Simple Loop OK, here's a down and dirty solution: (I just hope I got: Programming Puzzle 1 - Simple Loop Hi
Just ....
Re: Programming Puzzle 1 - Simple Loop Yes, grasshoppers.
|