tidb/mergesort/README.md
This is the Merge Sort home work for PingCAP Talent Plan Online of week 1.
There are 16, 000, 000 int64 values stored in an unordered array. Please
supplement the MergeSort() function defined in mergesort.go to sort this
array.
Requirements and rating principles:
sort.Slice().pprof.NOTE: go 1.12 is required
Please supplement the MergeSort() function defined in mergesort.go to accomplish
the home work.
NOTE:
mergesort_test.go, however, you still
can write your own unit tests.bench_test.go, you should run
this benchmark to ensure that your parallel merge sort is fast enough.How to test:
make test
How to benchmark:
make bench