i
Moglix
Filter interviews by
Merge two sorted arrays into one sorted array in reverse order.
1. Initialize two pointers for each array starting from the end.
2. Compare elements from both arrays and add the larger one to the result.
3. Continue until all elements from both arrays are processed.
4. If any elements remain in either array, add them to the result.
5. Reverse the result array to get the final output.
Remove duplicates from a string by retaining the first occurrence of each character.
Use a set to track seen characters. Example: 'hello' -> 'helo'.
Iterate through the string and build a new result string. Example: 'banana' -> 'ban'.
Consider using a dictionary to maintain order if needed. Example: 'abracadabra' -> 'abrcd'.
The maximum sum of a subarray is to be found.
Use Kadane's algorithm to find the maximum sum of a subarray.
Initialize two variables, maxSum and currentSum, to track the maximum sum.
Iterate through the array and update currentSum by adding the current element.
If currentSum becomes negative, reset it to 0.
If currentSum is greater than maxSum, update maxSum.
Return maxSum as the maximum sum of a subarray.
Find the length of the longest substring with distinct characters in a given string.
Use a sliding window approach to keep track of the current substring.
Maintain a set or map to check for duplicate characters within the window.
Update the maximum length of the substring whenever a longer substring is found.
Check if a string is a palindrome using recursion.
A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward.
To check if a string is a palindrome using recursion, compare the first and last characters of the string.
If they are equal, recursively check the substring without the first and last characters.
Continue this process until the string is empty or only has...
The question asks to merge two sorted arrays and delete a node in a linked list.
To merge two sorted arrays, we can use a two-pointer approach.
To delete a node in a linked list, we need to update the pointers of the previous and next nodes.
Example: Merge [1, 3, 5] and [2, 4, 6] to get [1, 2, 3, 4, 5, 6].
Example: Delete node with value 3 from linked list [1, 2, 3, 4, 5] to get [1, 2, 4, 5].
I applied via Referral and was interviewed in Oct 2023. There were 4 interview rounds.
So after Resume shortlisting you have Round 1 as Programming Test (60%) & Aptitude Test (40%) in which you will be asked 15 aptitude questions and 2 DSA problems. You will get 1 hour to write the test.
DSA problems:
1. Merge 2 sorted arrays
2. find the target sum in given array and return their indexes
Aptitude questions and two coding question
I applied via Referral and was interviewed before Jan 2024. There was 1 interview round.
I was fine with a lot of dsa
I appeared for an interview before Mar 2024, where I was asked the following questions.
Detects a loop in a linked list and identifies the starting point of the loop using Floyd's Cycle Detection algorithm.
Use two pointers: slow and fast. Slow moves one step, fast moves two steps.
If slow and fast meet, a loop exists.
To find the starting point, reset one pointer to head and move both one step until they meet again.
Remove duplicates from a string by retaining the first occurrence of each character.
Use a set to track seen characters. Example: 'hello' -> 'helo'.
Iterate through the string and build a new result string. Example: 'banana' -> 'ban'.
Consider using a dictionary to maintain order if needed. Example: 'abracadabra' -> 'abrcd'.
I applied via Referral and was interviewed before Nov 2022. There were 2 interview rounds.
The question asks to merge two sorted arrays and delete a node in a linked list.
To merge two sorted arrays, we can use a two-pointer approach.
To delete a node in a linked list, we need to update the pointers of the previous and next nodes.
Example: Merge [1, 3, 5] and [2, 4, 6] to get [1, 2, 3, 4, 5, 6].
Example: Delete node with value 3 from linked list [1, 2, 3, 4, 5] to get [1, 2, 4, 5].
Top trending discussions
I applied via Recruitment Consulltant and was interviewed in Sep 2021. There were 2 interview rounds.
Apti and coding
I applied via Campus Placement and was interviewed before May 2023. There were 3 interview rounds.
Easy mcq questions basend on ur profile frontend or backend
Medium and easy dsa questions and tech stack related questions
I applied via Campus Placement and was interviewed before Jul 2022. There were 4 interview rounds.
I applied for frontend developer role so a test was given that had mcq questions based on Javascript
I applied via Naukri.com and was interviewed before Jun 2022. There were 4 interview rounds.
Basic python code test along with api questions
based on 6 interview experiences
Difficulty level
Duration
based on 12 reviews
Rating in categories
Assistant Manager
352
salaries
| ₹4 L/yr - ₹8.3 L/yr |
Deputy Manager
312
salaries
| ₹6 L/yr - ₹11 L/yr |
Senior Executive
184
salaries
| ₹2.7 L/yr - ₹6.2 L/yr |
Senior Manager
144
salaries
| ₹16.5 L/yr - ₹28.7 L/yr |
Manager
126
salaries
| ₹10 L/yr - ₹16 L/yr |
Udaan
Swiggy
CARS24
BlackBuck