Anonymous user
Solve the no connection puzzle: Difference between revisions
m
→{{header|Java}}: added comment
m (→{{header|Java}}: small changes) |
m (→{{header|Java}}: added comment) |
||
Line 717:
=={{header|Java}}==
The backtracking is getting tiresome, we'll try a stochastic solution for a change.<br>
{{works with|Java|8}}
<lang java>import static java.lang.Math.abs;
Line 765:
}
}</lang>
(takes about 500 shuffles on average)
<pre> 4 5
2 8 1 7
|