Microsoft Interview Question
Software Engineer in Testsdo you want a program that will tell whether a 9X9 array is a solution?
or
do you want to generate the possible solutions?
want to know the best solution for this. I did this by creating 2D array but seems like interviwere wasn't impressed
hate_Indians, you must be an indian, thats why you understood the language, shame on you!
<pre lang="java" line="1" title="CodeMonkey90789" class="run-this">/* The class name doesn't have to be Main, as long as the class is not public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in));
String s;
while (!(s=r.readLine()).startsWith("42")) System.out.println(s);
}
}
</pre>
en.wikipedia.org/wiki/Algorithmics_of_sudoku
- S August 12, 2010