Where can i find the java program to sodoku and goFigure puzzle?

sodoku
java1285 asked:


I have a puzzle! any one knows what this puzzle is called??
You will be provided with five numbers in the command line. The

first four numbers are operands of the expression,
and the fifth is the result. Use any mathematical operator with

the supplied operands to achieve the result.

The Program should be :

- Able to accept 5 numerical values from command line, separated

by spaces.

- First four numbers will be the operands.

- The operands should be used in the same order in which they are

specified on the command line.

- You can use any of the mathematical operators (+, -, *, /) to

obtain the fifth number.
Note:

l Use any operand only once.

l The order of operands is fixed. (As per the input from command

line).

l Possible operators are : +, -, *, /

l Expression is to be evaluated in strict left to right manner.
l You can use the same operator multiple times.

Example: $ java GoFigure 6 7 4 1 47
6 * 7 + 4 + 1 = 47
Can any 1 pls help me to find java pgmming logic for this?
since operators can be repeated and operands should not repeat, and at any time 3 operators can be used on 4 operands.

The total combination for each of the operator starting ‘+’, ‘-’,'*’,'/’ would be 21*3= 63

the other 4 combination of + + + ,- – - ,* * *, / / /
so it is 63+4=67
which is lengthy!!!

If any one one knows any other to solve this program! Pls let me know!

Emmanuel

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
This entry was posted on Wednesday, May 14th, 2008 at 3:26 am and is filed under Sudoku FAQ. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “Where can i find the java program to sodoku and goFigure puzzle?”

  1. jillnicole2oo7 Says:

    Im not sure what go figure is…but i play sodoku on msn games so maybe you can find it there…

  2. sgtnoodle Says:

    Dude… If you genuinly just want a quick solution to a puzzle you are curious about, then good luck…

    Are you trying to find an EXACT implementation of a program you are supposed to write for a programming class?

    The best place to look would probably be your computer screen after 5-30 hours of thought and coding.

    You won’t fail your class for cheating, you will be less likely to fail your next project that you can’t find a solution to online, and you might actually learn something…

Leave a Reply