Tip 1: Participate in live contests on coding platforms as much as possible.
Tip 2: Practice previous interview questions.
Tip 3: Thoroughly revise Computer Science subjects like DBMS and OOPS.
Tip 1: Start your resume with a brief summary or objective statement that highlights your qualifications and career goals. Keep it concise and impactful, summarizing your key strengths and areas of expertise.
Tip 2: Instead of merely listing job responsibilities, emphasize your achievements and the impact you made in previous roles. Quantify your accomplishments where possible, using numbers and metrics to demonstrate the results of your work. This approach helps showcase your abilities and differentiate yourself from other candidates.
In addition to DSA questions, the technical interview also included inquiries related to DBMS. We were asked to demonstrate our knowledge of database concepts such as normalization, indexing, querying, and transaction management. The interviewer gauged our ability to design efficient database schemas and optimize query performance.
Input: ARR = [4, 3, 2, 6]
Output: true
Explanation: Given array can be transformed like this [3, 6, 2, 4] which follows the rule 'ARR[2 * i + 1]' = 2 * 'ARR[2 * i]' for every 0 <= i < 'N' / 2.
Sort the array in ascending order.
Initialize an empty dictionary to keep track of the count of each element in the array.
Iterate through the sorted array.
For each element, check if its double (2 * element) exists in the dictionary and has a count greater than zero.
If yes, decrease the count of both the element and its double in the dictionary.
If no, check if the element itself exists in the dictionary and has a count greater than zero.
If yes, decrease the count of the element in the dictionary.
If no, return False as there is no valid pair.
If you successfully iterate through the entire array without returning False, return True.






1. The length of each array is greater than zero.
2. Both the arrays are sorted in non-decreasing order.
3. The output should be in the order of elements that occur in the original arrays.
4. If there is no intersection present then return an empty array.
Create two dictionaries, dict1 and dict2, to store the frequency of each element in both arrays.
Iterate through the first array and update dict1 with the frequency of each element.
Iterate through the second array and check if each element exists in dict1. If it does, decrease its frequency in dict1 and add it to the result array.
Finally, return the result array containing the common elements.



Input: 'a' = [7, 12, 1, 20]
Output: NGE = [12, 20, 20, -1]
Explanation: For the given array,
- The next greater element for 7 is 12.
- The next greater element for 12 is 20.
- The next greater element for 1 is 20.
- There is no greater element for 20 on the right side. So we consider NGE as -1.
Create an empty stack and a result array of the same length as the input array, initialized with -1 values.
Iterate through the input array from right to left.
While the stack is not empty and the current element is greater than the element at the top of the stack, pop elements from the stack and update their corresponding positions in the result array with the current element.
Push the current element onto the stack.
Finally, return the result array.

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?