removed test script
This commit is contained in:
parent
a595468644
commit
e7b96e64c1
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "fabelous-autocoder",
|
"name": "fabelous-autocoder",
|
||||||
|
"version": "0.1.7",
|
||||||
"displayName": "Fabelous Autocoder",
|
"displayName": "Fabelous Autocoder",
|
||||||
"description": "A simple to use Ollama autocompletion Plugin",
|
"description": "A simple to use Ollama autocompletion Plugin",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.fabelous.app/fabel/Fabelous-Autocoder"
|
"url": "https://gitea.fabelous.app/fabel/Fabelous-Autocoder.git"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.89.0"
|
"vscode": "^1.89.0"
|
||||||
|
|
19
src/test.py
19
src/test.py
|
@ -1,19 +0,0 @@
|
||||||
def bubblesort(arr):
|
|
||||||
for i in range(len(arr)):
|
|
||||||
for j in range(i + 1, len(arr)):
|
|
||||||
if arr[j] < arr[i]:
|
|
||||||
arr[i], arr[j] = arr[j], arr[i] # swap elements
|
|
||||||
|
|
||||||
return arr
|
|
||||||
|
|
||||||
print(bubblesort([1,2,3,4,5,6,10,6]))
|
|
||||||
|
|
||||||
def quicksort(arr):
|
|
||||||
if len(arr) <= 1:
|
|
||||||
return arr
|
|
||||||
else:
|
|
||||||
pivot = arr[len(arr)//2]
|
|
||||||
left = [x for x in arr if x < pivot]
|
|
||||||
middle = [x for x in arr if x == pivot]
|
|
||||||
right = [x for x in arr if x > pivot]
|
|
||||||
return quicksort(left) + middle + quicksort(right)
|
|
Loading…
Reference in New Issue