This repository maintains solutions of my practice problems along with implementation of Data structures and algorithms. It contains notes on how to approach different kinds of problems in a technical interview, purely based on my own personal experience.
These are some of the code snippets that come in handy during a coding interview with certain common operations
- Get top k elements from a dictionary
sorted(dict, k = dict.get, reverse=True)[:k]