You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
158 B
13 lines
158 B
4 years ago
|
package tools
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestQuickSort(t *testing.T) {
|
||
|
arr:=[]int{1,8,3,9,4,5,4,7}
|
||
|
t.Log(arr)
|
||
|
QuickSort(&arr,0,len(arr)-1)
|
||
|
t.Log(arr)
|
||
|
}
|