Skip to content

Instantly share code, notes, and snippets.

@hughdbrown
Created June 15, 2020 22:42
Show Gist options
  • Save hughdbrown/7447de45e06651c53f6d3e35cbcb1adf to your computer and use it in GitHub Desktop.
Save hughdbrown/7447de45e06651c53f6d3e35cbcb1adf to your computer and use it in GitHub Desktop.
Useful python libraries and imports
bisect: bisect_left and bisect_right
itertools: tee, count, accumulate, chain, groupby; takewhile, dropwhile
collections: defaultdict, Counter, deque; namedtuple, ChainMap useful for applications
heapq: heapify, heappush, heappop
functools: reduce, partial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment