Last list item: Difference between revisions

→‎{{header|Ruby}}: print initial values
(→‎{{header|Ruby}}: print initial values)
Line 1,419:
 
=={{header|Ruby}}==
<syntaxhighlight lang="ruby">p original = [6, 81, 243, 14, 25, 49, 123, 69, 11]
until original.size == 1 do
mins = original.min(2)
Line 1,427:
</syntaxhighlight>
{{out}}
<pre>[6, 81, 243, 14, 25, 49, 123, 69, 1711]
[81, 243, 14, 25, 49, 123, 69, 17]
[81, 243, 25, 49, 123, 69, 31]
[81, 243, 49, 123, 69, 56]
Line 1,436 ⟶ 1,437:
[621]
</pre>
 
=={{header|Sidef}}==
===With sorting===
1,149

edits