update exercises
This commit is contained in:
1 parent
55045fc5dd
commit
4dd8b4b715
1 file changed
+11
@@ -9,6 +9,17 @@
|
|||||||
|
|
||||||
# Code for exercise 3.1
|
# Code for exercise 3.1
|
||||||
|
|
||||||
|
using BenchmarkTools
|
||||||
|
x = 1:10^6;
|
||||||
|
y = collect(x);
|
||||||
|
@btime sort($x);
|
||||||
|
@btime sort($y);
|
||||||
|
@edit sort(x)
|
||||||
|
|
||||||
|
# CODES BELOW REQUIRE RE-NUMBERING
|
||||||
|
|
||||||
|
# Code for exercise 3.1
|
||||||
|
|
||||||
using Statistics
|
using Statistics
|
||||||
using BenchmarkTools
|
using BenchmarkTools
|
||||||
aq = [10.0 8.04 10.0 9.14 10.0 7.46 8.0 6.58
|
aq = [10.0 8.04 10.0 9.14 10.0 7.46 8.0 6.58
|
||||||
|
|||||||
Reference in new issue
Block a user