summaryrefslogtreecommitdiff
path: root/progs/unparsable_programs/a464.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/unparsable_programs/a464.py')
-rw-r--r--progs/unparsable_programs/a464.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/unparsable_programs/a464.py b/progs/unparsable_programs/a464.py
new file mode 100644
index 0000000..19a3c54
--- /dev/null
+++ b/progs/unparsable_programs/a464.py
@@ -0,0 +1,6 @@
+def kth_element(arr, n, k):
+ for i in range(n):
+ for j in range(0, n-i-1):
+ if arr[j] > arr[j+1]:
+ arr[j], arr[j+1] == arr[j+1], arr[j]
+ return arr[k-1] \ No newline at end of file