Jump to content

Best shuffle: Difference between revisions

Kotlin output
(Kotlin output)
Line 1,704:
 
=={{header|Kotlin}}==
{{output?|kotlin}}
From Java.
<lang scala>package shuffle
Line 1,746 ⟶ 1,745:
 
fun main(words: Array<String>) = words forEach { println(BestShuffle(it)) }</lang>
 
Output:
<pre>abracadabra raaracabdab (0)
seesaw eswaes (0)
grrrrrr rgrrrrr (5)
pop ppo (1)
up pu (0)
a a (1)</pre>
 
=={{header|Liberty BASIC}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.