上一页 1 ··· 4 5 6 7 8
摘要: var data = [8, 3, 4, 1, 18, 22, 11, 3, 5, 6, 2, 1, 77]quickSort(data, 0, data.length - 1)console.log(data)var index = binarySearch(data, 18);console.l 阅读全文
posted @ 2018-07-11 10:00 飞晨信息 阅读(253) 评论(0) 推荐(0) 编辑
摘要: package mainimport ( "fmt" "sync")var waitGroup sync.WaitGroupfunc main() { data := []int{2, 3, 5, 1, 4, 5, 2, 13, 51, 9, 10, 15, 17, 6, 21, 33, 44, 7 阅读全文
posted @ 2018-07-09 13:16 飞晨信息 阅读(440) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays;public class Main { public static void main(String[] args) { int[] data = {2, 3, 5, 1, 4, 5, 2, 13, 51, 9, 10, 15, 17, 6, 21, 阅读全文
posted @ 2018-07-09 13:13 飞晨信息 阅读(505) 评论(0) 推荐(0) 编辑
摘要: package mainimport ( "unsafe" "fmt") /*#cgo CFLAGS: -I./#cgo LDFLAGS: -L./#include <test.h>*/import "C" //export printlnfunc println(str *C.char) { fm 阅读全文
posted @ 2017-08-14 12:34 飞晨信息 阅读(448) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8