Browse Source

Modified sorting.py and it works

luislopez66 2 years ago
parent
commit
28c0210811
2 changed files with 15 additions and 14 deletions
  1. 12
    12
      .vscode/PythonImportHelper-v2-Completion.json
  2. 3
    2
      sorting.py

+ 12
- 12
.vscode/PythonImportHelper-v2-Completion.json View File

1
 [
1
 [
2
     {
2
     {
3
-        "label": "randint",
4
-        "importPath": "random",
5
-        "description": "random",
6
-        "isExtraImport": true,
7
-        "detail": "random",
8
-        "documentation": {}
9
-    },
10
-    {
11
         "label": "time",
3
         "label": "time",
12
         "kind": 6,
4
         "kind": 6,
13
         "isExtraImport": true,
5
         "isExtraImport": true,
17
         "documentation": {}
9
         "documentation": {}
18
     },
10
     },
19
     {
11
     {
20
-        "label": "merge",
21
-        "importPath": "merge",
22
-        "description": "merge",
12
+        "label": "randint",
13
+        "importPath": "random",
14
+        "description": "random",
23
         "isExtraImport": true,
15
         "isExtraImport": true,
24
-        "detail": "merge",
16
+        "detail": "random",
25
         "documentation": {}
17
         "documentation": {}
26
     },
18
     },
27
     {
19
     {
34
         "documentation": {}
26
         "documentation": {}
35
     },
27
     },
36
     {
28
     {
29
+        "label": "merge",
30
+        "importPath": "merge",
31
+        "description": "merge",
32
+        "isExtraImport": true,
33
+        "detail": "merge",
34
+        "documentation": {}
35
+    },
36
+    {
37
         "label": "heapify",
37
         "label": "heapify",
38
         "kind": 2,
38
         "kind": 2,
39
         "importPath": "heap",
39
         "importPath": "heap",

+ 3
- 2
sorting.py View File

7
 La variable veces define las veces que se va a hacer el ordenamiento
7
 La variable veces define las veces que se va a hacer el ordenamiento
8
 Al final se imprimen los promedios de cada algortimo
8
 Al final se imprimen los promedios de cada algortimo
9
 """
9
 """
10
-from random import randint
11
 import time
10
 import time
12
-from merge import merge
11
+from random import randint
12
+
13
 import heap
13
 import heap
14
+from merge import merge
14
 
15
 
15
 # Python program for implementation of MergeSort
16
 # Python program for implementation of MergeSort
16
 
17