Tip 1: Build a strong foundation in the basics.
Tip 2: Focus on strategy and pattern-based approaches to solving DSA problems.
Tip 3: Keep appearing for interviews to gain experience and improve.
Tip 1: Include keywords in your resume that match the job description.
Tip 2: Use numbers and metrics when describing your current projects in your company.
At 10 AM in the morning, the HR asked about my previous work experience and the reason for leaving.
How would you design a parking lot? For example, what classes and APIs would you include?
Tip 1: Gather all requirements beforehand.
Tip 2: Provide concrete class names.
Tip 3: Use OOP principles in LLD.



Input arrays/lists can contain duplicate elements.
The intersection elements printed would be in the order they appear in the first array/list(ARR1)
Stepwise Approach:
Convert both arrays to sets:
This will help remove duplicates and allow fast lookups.
Find the intersection:
Use the set intersection operation to identify common elements between the two sets.
Return the result:
Convert the intersection to a list and return it.



Input: 'INTERVALS' = [[1, 2], [1, 3], [2, 3], [3, 4]]
Output: 1
After rescheduling the worker with the interval [1, 3] it is possible to get the non-overlapping working times.
The idea is to use a greedy approach to select the interval to be removed so that the removal count is minimized. First, we sort the intervals by their starting values. Then, we traverse through the interval array and check if any interval has a starting point smaller than the ending point of the previous interval (i.e., there is an overlap). In case of overlap, remove the interval with the greater ending point.



If the array is 2,5 and 6
2 XOR 5 is 7
2 XOR 6 is 4
5 XOR 6 is 3
Hence the answer is 7.
Started with a brute force approach but was not able to solve it optimally.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?