Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -12,8 +12,8 @@ var beadSort = Fn.new { |a|
|
|||
return res[-1..0] // return in ascending order
|
||||
}
|
||||
|
||||
var as = [ [4, 65, 2, 31, 0, 99, 2, 83, 782, 1], [7, 5, 2, 6, 1, 4, 2, 6, 3] ]
|
||||
for (a in as) {
|
||||
var array = [ [4, 65, 2, 31, 0, 99, 2, 83, 782, 1], [7, 5, 2, 6, 1, 4, 2, 6, 3] ]
|
||||
for (a in array) {
|
||||
System.print("Before: %(a)")
|
||||
a = beadSort.call(a)
|
||||
System.print("After : %(a)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue