Skip to content

Instantly share code, notes, and snippets.

@Bradysm
Created August 18, 2020 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bradysm/68a08e3c814733052ebada42db017115 to your computer and use it in GitHub Desktop.
Save Bradysm/68a08e3c814733052ebada42db017115 to your computer and use it in GitHub Desktop.
# convert all of the points to integers
points = [(int(p[0]), int(p[1]), int(p[2])) for p in pattern.findall(input_points)]
# use a heap of size k to complete the problem...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment