summaryrefslogtreecommitdiff
path: root/algo/sort_and_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'algo/sort_and_search.py')
-rw-r--r--algo/sort_and_search.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/algo/sort_and_search.py b/algo/sort_and_search.py
new file mode 100644
index 0000000..2c89fe5
--- /dev/null
+++ b/algo/sort_and_search.py
@@ -0,0 +1,10 @@
+
+import bisect
+from collections import namedtuple
+
+bisect.bisect_left()
+
+l = [1, 3, 2]
+l.sort()
+
+namedtuple