Python Quick Cheatsheet

This post is based on hereVariablesPython has no command for declaring a variable. A variable is created the moment you first assign a value to it. Variables do not need to be declared with any partic

- Expand -

Python Random Notes

Using max heapThe post is taken from here.We use heapq class to implement Heaps in Python. By default Min Heap is implemented by this class.To implement MaxHeap not limiting to only numbers but any ty

- Expand -