Sorting algorithms/Bogosort: Difference between revisions
Content added Content deleted
(added C++) |
m (→{{header|Java}}: Added note about comparable types) |
||
Line 47:
=={{header|Java}}==
{{works with|Java|1.5+}}
This implementation works for all comparable types (types with <tt>compareTo</tt> defined).
<java>import java.util.Collections;
import java.util.LinkedList;
Line 68 ⟶ 69:
}
}</java>
=={{header|Prolog}}==
|