Tip 1: Regarding DSA preparation, I have a theory. Twenty percent of the questions will be asked in 80 percent of the interviews, and 80 percent will be asked in 20 percent of the interviews. In short, some questions have a very high chance of coming up during the interviews, and some have a meager chance.
Tip 2: We should focus more on the questions that have more chance of coming up in the interview.
Tip 1: Make Sure your resume is simple, and try to fit all the information on only one page.
Tip 2: Have at least two projects with the latest technologies; Github link of projects should be provided



1. get(key) - Return the value of the key if the key exists in the cache, otherwise return -1.
2. put(key, value), Insert the value in the cache if the key is not already present or update the value of the given key if the key is already present. When the cache reaches its capacity, it should invalidate the least recently used item before inserting the new item.
Type 0: for get(key) operation.
Type 1: for put(key, value) operation.
1. The cache is initialized with a capacity (the maximum number of unique keys it can hold at a time).
2. Access to an item or key is defined as a get or a put operation on the key. The least recently used key is the one with the oldest access time.



Each product can cross the integer limits, so we should take modulo of the operation.
Take MOD = 10^9 + 7 to always stay in the limits.
Can you try solving the problem in O(1) space?



The given linked lists may or may not be null.
If the first list is: 1 -> 4 -> 5 -> NULL and the second list is: 2 -> 3 -> 5 -> NULL
The final list would be: 1 -> 2 -> 3 -> 4 -> 5 -> 5 -> NULL



For given N = 4, M = 4,

The connection between system node 0 and 1 is a critical connection.



As the answer can be large, return your answer modulo 10^9 + 7.
Can you solve this using not more than O(S) extra space?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?