leetcode

Leetcode 146. LRU Cache: Multiple Solutions in Python Code

“Design LRU cache” is a very typical interview problem asked in FAANG. This question shows the design capability of the candidate and how he selects the datatype while programming. Caches are an integral component of any computing system. These are tiny containers that store data fragments to make them accessible easily thus, reducing computing time.  …

Leetcode 146. LRU Cache: Multiple Solutions in Python Code Read More »

Leetcode 1: Two Sum problem – Multiple Solutions in Python

Two Sum problem is considered easy and is frequently asked in Amazon phone interviews. We will see how we can start with a brute force solution and try to improve the code by introducing more data structures. Problem Statement: Given an array of integers nums and an integer target return indices of the two numbers …

Leetcode 1: Two Sum problem – Multiple Solutions in Python Read More »

Scroll to Top