From 04288888e97116061b7e790aa0817c0e4b115ff9 Mon Sep 17 00:00:00 2001 From: Sapan Desai <35861214+sapan17@users.noreply.github.com> Date: Sat, 31 Oct 2020 11:10:46 +0530 Subject: [PATCH] Create QuickSort.py One line QuickSort python program. --- QuickSort.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 QuickSort.py diff --git a/QuickSort.py b/QuickSort.py new file mode 100644 index 0000000..70feef3 --- /dev/null +++ b/QuickSort.py @@ -0,0 +1 @@ +lambda L: [] if L==[] else qsort([x for x in L[1:] if x< L[0]]) + L[0:1] + qsort([x for x in L[1:] if x>=L[0]])