i
Moglix
Filter interviews by
Aptitude question based on time speed and logic
I applied via Referral and was interviewed in Jan 2023. There were 4 interview rounds.
It was both aptitude and coding test.
Comprises of around same weightage.
Coding questions were some famous easy questions.
Adding a node in LinkedList involves creating a new node and updating pointers. Removing a duplicate node requires iterating through the list and comparing values.
To add a node, create a new node with the desired value and update pointers accordingly.
To remove a duplicate node, iterate through the list and compare each node's value with others to identify duplicates.
After identifying a duplicate node, update pointers t
Print a matrix in spiral order using clean and efficient code
Create four variables to keep track of the boundaries of the matrix
Use a while loop to iterate through the matrix in a spiral order
Print each element as you iterate through the matrix
Update the boundaries of the matrix after each iteration
I was interviewed in Oct 2017.
I applied via Campus Placement and was interviewed in Jan 2023. There were 3 interview rounds.
In the first round test was conducted on hackerrank platform
it consist of one coding question and one sql question and total 4 mcq are there
the difficulty of coding(dsa) problem is leetcode medium-hard and sql is hard
posted on 12 May 2024
posted on 4 Jul 2024
HAckerrank based test
I was interviewed before May 2021.
Round duration - 90 Minutes
Round difficulty - Medium
1 easy and 2 medium-hard DSA problems to solve
Kevin is playing a hurdle game where he must jump over hurdles to clear levels. Each level ‘i’ consists of ‘i’ hurdles (e.g., Level 6 has 6 hurdles).
Given the total number ...
Given the total number of hurdles Kevin has jumped, determine how many levels he has cleared.
Iterate through levels while subtracting hurdles from total jumped until remaining hurdles are less than current level
Return the current level as the number of levels cleared
Given an integer N
, find all possible placements of N
queens on an N x N
chessboard such that no two queens threaten each other.
A queen can attack another queen if they ar...
The N Queens Problem involves finding all possible placements of N queens on an N x N chessboard without threatening each other.
Use backtracking algorithm to explore all possible configurations.
Keep track of rows, columns, and diagonals to ensure queens do not threaten each other.
Generate valid configurations recursively and backtrack when a solution is not possible.
Bob is given a triangular pyramid with vertices 'O', 'X', 'Y', and 'Z'. He is also provided with an integer 'N'. Bob can move to any adjacent vertex in a single ste...
Calculate the number of ways Bob can complete a journey in a triangular pyramid after N steps.
Bob can move to any adjacent vertex in a single step
Bob must return to vertex 'O' after exactly 'N' steps
Calculate the number of different ways Bob can complete the journey
Return the result modulo 1000000007
Consider the constraints provided
Round duration - 60 Minutes
Round difficulty - Medium
2 DSA problems and computer subject questions
Given an integer K
, your task is to produce all binary strings of length 'K' that do not contain consecutive '1's.
The input begins with an integer ...
Generate all binary strings of length 'K' with no consecutive '1's in lexicographically increasing order.
Use backtracking to generate all possible binary strings of length 'K' with no consecutive '1's.
Start with an empty string and recursively add '0' or '1' based on the condition of no consecutive '1's.
Sort the generated strings in lexicographically increasing order before outputting them.
You are provided with three strings A
, B
, and C
. The task is to determine if C
is formed by interleaving A
and B
. C
is considered an interleaving of A
and B
if:
Check if a string is formed by interleaving two other strings.
Iterate through characters of A, B, and C simultaneously to check if C is formed by interleaving A and B.
Use dynamic programming to efficiently solve the problem.
Handle edge cases like empty strings or unequal lengths of A, B, and C.
Example: A = 'aab', B = 'abc', C = 'aaabbc' should return True.
Round duration - 60 Minutes
Round difficulty - Easy
DSA round
You are given coordinates for two lines on a 2D plane: Line 'AB' is defined by points 'A' and 'B', and Line 'PQ' is defined by points 'P' and 'Q'. Your task is to find the ...
Find the intersection point of two lines on a 2D plane given their coordinates.
Calculate the slopes of both lines using the given coordinates.
Use the slope-intercept form of a line to find the equations of the two lines.
Solve the equations simultaneously to find the intersection point.
Return the coordinates of the intersection point with precision up to 6 decimal places.
Determine if a given directed graph contains a cycle. If the graph has at least one cycle, return true
. Otherwise, return false
.
The first line of input contains...
Detect cycles in a directed graph and return true if a cycle exists, false otherwise.
Use Depth First Search (DFS) to detect cycles in the directed graph.
Maintain a visited array to keep track of visited vertices and a recursion stack to detect back edges.
If a vertex is visited and is present in the recursion stack, then a cycle exists.
Example: For the input 4 4, the graph has a cycle 0 -> 1 -> 2 -> 3 -> 1.
Round duration - 30 Minutes
Round difficulty - Easy
It is a managerial round
A URL is a web address that specifies the location of a resource on the internet. A load balancer distributes incoming network traffic across multiple servers to ensure optimal resource utilization and prevent overload.
A URL (Uniform Resource Locator) is a reference to a web resource that specifies its location on a computer network and the mechanism for retrieving it.
URLs typically consist of a protocol (such as HTTP ...
Tip 1 : Practice Trees, Graphs, DP
Tip 2 : Be sure about your projects
Tip 1 : Be genuine about your resume
Tip 2 : Have at least two projects on resume
Some of the top questions asked at the Moglix Software Developer interview -
based on 2 interviews
Interview experience
based on 1 review
Rating in categories
Assistant Manager
325
salaries
| ₹0 L/yr - ₹0 L/yr |
Deputy Manager
269
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Executive
179
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Manager
131
salaries
| ₹0 L/yr - ₹0 L/yr |
Manager
120
salaries
| ₹0 L/yr - ₹0 L/yr |
Udaan
ShopX
Power2sme
NowPurchase