Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/JortSort/AutoHotkey/jortsort-1.ahk
Normal file
9
Task/JortSort/AutoHotkey/jortsort-1.ahk
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
JortSort(Array){
|
||||
sorted:=[]
|
||||
for index, val in Array
|
||||
sorted[val]:=1
|
||||
for key, val in sorted
|
||||
if (key<>Array[A_Index])
|
||||
return 0
|
||||
return 1
|
||||
}
|
||||
4
Task/JortSort/AutoHotkey/jortsort-2.ahk
Normal file
4
Task/JortSort/AutoHotkey/jortsort-2.ahk
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Array1 := ["a", "d", "b" , "c"]
|
||||
Array2 := ["a", "b", "c" , "d"]
|
||||
MsgBox % JortSort(Array1) "`n" JortSort(Array2)
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue