summaryrefslogtreecommitdiff
path: root/sort/merge.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-08-08 17:32:23 +0100
committerPaul Buetow <pbuetow@mimecast.com>2020-08-08 17:32:23 +0100
commitdda16974366e91036b32d0eeea33b766c2439feb (patch)
treef76a3fd0a08e5daa18c65271db55a3f290882a59 /sort/merge.go
parent36573e16d9e8b511aec24a82797a5d13ceef6aa4 (diff)
fortune not found
Quick commit
Diffstat (limited to 'sort/merge.go')
-rw-r--r--sort/merge.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/sort/merge.go b/sort/merge.go
index 601c378..4d5a862 100644
--- a/sort/merge.go
+++ b/sort/merge.go
@@ -13,7 +13,8 @@ func Merge(a ds.ArrayList) ds.ArrayList {
func mergeSort(a, aux ds.ArrayList) {
l := len(a)
- if l <= 1 {
+ if l <= 10 {
+ Insertion(a)
return
}