i
ZeMoSo Technologies
Filter interviews by
I appeared for an interview before Feb 2023.
Finding the least common ancestor of two nodes in a tree
Use a method like Lowest Common Ancestor (LCA) to find the least common ancestor of two nodes in a tree
Traverse the tree to find the paths from the root to each node, then compare the paths to find the LCA
Consider edge cases like when one node is the ancestor of the other or when one of the nodes is not in the tree
Structure in C++ is a user-defined data type that allows grouping of variables of different data types under a single name.
Structures are used to create complex data types by grouping variables together.
They can contain variables of different data types.
Structures are defined using the 'struct' keyword.
Example: struct Person { string name; int age; };
Example: Person p1;
I appeared for an interview in Nov 2021.
Round duration - 45 minutes
Round difficulty - Easy
There were around 20 mcq's on Aptitude.
1 Coding Question
Given an array ARR
of size N
, your objective is to determine the sum of the largest and smallest elements within the array.
Can you achie...
Find sum of maximum and minimum elements in an array with least number of comparisons.
Iterate through the array and compare elements in pairs to find maximum and minimum simultaneously.
Keep track of current maximum and minimum as you iterate through the array.
After iterating through the array, sum up the maximum and minimum found.
Example: For input [1, 3, 5, 7, 9], compare 1 with 3, 5 with 7, and 3 with 9 to find min a...
Round duration - 60 minutes
Round difficulty - Easy
Create a data structure that maintains mappings between keys and values, supporting the following operations in constant time:
1. INSERT(key, value): Add or update t...
Design a constant time data structure for key-value mappings with operations like INSERT, DELETE, SEARCH, GET, GET_SIZE, and IS_EMPTY.
Use a hash table to store key-value pairs for constant time operations.
Implement INSERT by hashing the key and storing the value at the corresponding index.
For DELETE, simply remove the key-value pair from the hash table.
SEARCH can be done by checking if the key exists in the hash table.
...
Tip 1 : Prepare OOPS Concepts
Tip 2 : Build good knowledge in Data Structure and Algorithms.
Tip 3 : Practice SQL queries.
Tip 1 : Do not put false things on resume
Tip 2 : Mention atleast 2 projects.
Top trending discussions
posted on 15 Sep 2021
I appeared for an interview before Sep 2020.
Round duration - 45 minutes
Round difficulty - Medium
Online coding round.
We could only write pseudo code and couldn't test against test cases.
You are given a binary tree of integers. Your task is to return the level order traversal of the given tree.
The first line contains an integer 'T', representing...
Return the level order traversal of a binary tree given in level order.
Use a queue to perform level order traversal of the binary tree
Start by pushing the root node into the queue
While the queue is not empty, dequeue a node, print its value, and enqueue its children
Round duration - 50 minutes
Round difficulty - Easy
It was onsite face to face technical round where i was asked 2 coding questions.
It lasted for 40-50 minutes.
You are given an arbitrary binary tree consisting of N
nodes numbered from 1 to N
, an integer K
, and a node TARGET_NODE_VAL
from the tree. Your task is to find the Kth ancest...
Find the Kth ancestor of a given node in a binary tree.
Traverse the tree to find the path from the target node to the root node.
Store the path in a list and return the Kth element from the end.
Handle cases where the Kth ancestor does not exist by returning -1.
You are given an array/list named 'SEQUENCE', which consists of 'N' integers. The task is to identify all equilibrium indices in this sequence.
An equilibr...
Identify equilibrium indices in a given sequence by finding positions where sum of elements before and after is equal.
Iterate through the sequence and calculate prefix sum and suffix sum at each index
Compare prefix sum and suffix sum to find equilibrium indices
Handle edge cases where no equilibrium index exists
Return the indices as a sequence of integers or an empty sequence
Round duration - 50 minutes
Round difficulty - Medium
Only 7 students were shortlisted after the first face to face round out of 40 students.
The interviewer seemed cool and was trying to calm down me as i was getting nervous.
Again there were 2 coding questions.
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to reverse the list
Use three pointers to keep track of current, previous, and next nodes
Update the head of the reversed linked list once the reversal is complete
Round duration - 90 minutes
Round difficulty - Medium
This was the last technical round and there were only 5 students left at the end of day.
The interview started at around 6:30 in the evening.
Convert a given binary search tree (BST) with 'N' nodes into a Greater Tree. In the Greater Tree, each node's data should be updated to the sum of its o...
Convert a binary search tree into a Greater Tree by updating each node's data to the sum of its original data plus the data of all nodes with greater or equal values.
Traverse the BST in reverse inorder (right, root, left) to update nodes with the sum of greater nodes.
Keep track of the sum of greater nodes encountered so far while traversing.
Update each node's data with the sum of greater nodes and continue traversal.
You are given a collection of 'N' nuts and 'N' bolts, each having unique sizes. Your objective is to match each nut with its corresponding bolt based on size, adhering to a one-to-o...
Matching nuts and bolts based on size in a one-to-one mapping strategy.
Iterate through the nuts and bolts arrays to find matching pairs based on size.
Use sorting algorithms like quicksort to efficiently match nuts and bolts.
Ensure the implementation modifies the input arrays directly to reflect the proper matched order.
Tip 1 : Take your time before directly jumping onto the solution even if you have done the code already, it might be possible that interviewer would add any constraints of his own choice.
Tip 2 : Speak out loud, that's very important. If you are stuck onto something in between the interview, don't just sit idle or give up. Talk to your interviewer, let him/her know what's going in your mind, what approach are you trying to implement. The interviewer is your only friend in that room.
Tip 3 : Don't worry if you haven't been into Competitive Programming before, you can still crack a lot of companies with decent DSA skills, projects are add on.
Tip 4 : For preparation, go through coding ninja's course thoroughly. It's very likely to encounter same questions that are already in the course itself. Common problems like, stock span, balanced parentheses, edit distance-DP, etc.
Tip 5 : Don't panic on seeing a question that you haven't done before. Try to break the given problem into small problems first just like we do in DP, it will surely help you out in building logic if not solution.
Tip 1 : Take a nice template for resume, you can even refer sites like novoresume.com. It has got good templates, just pick any with no fancy fonts and colors. Keep it simple.
Tip 2 : Be very specific. Write out important stuff only if you applying for a tech job. No one's going to see your dance/acting skills while interviewing you.
Tip 3 : If you have mentioned your projects, make sure you add your source code's link/github repo link as hyperlink to it. That's very important, it helps interviewer know that you have done this project and you're not faking it.
posted on 4 Sep 2022
I applied via Company Website and was interviewed before Sep 2021. There were 2 interview rounds.
DSA Medium Level Questions. Solve within 3 Hours.
posted on 28 Jul 2021
I applied via Campus Placement and was interviewed before Jul 2020. There was 1 interview round.
Check if binary tree is balanced or not.
A balanced binary tree has the height of left and right subtrees differ by at most 1.
Recursively check the height of left and right subtrees and compare.
Use a helper function to calculate the height of a subtree.
Time complexity: O(nlogn) for a balanced tree, O(n^2) for a skewed tree.
Detect loops in a linked list.
Use two pointers, one moving at a faster pace than the other.
If there is a loop, the faster pointer will eventually catch up to the slower one.
To detect the start of the loop, reset one pointer to the head and move both pointers at the same pace.
I applied via Walk-in and was interviewed before Mar 2021. There were 3 interview rounds.
Aptitude test
Current affairs
posted on 15 Jul 2022
I applied via Referral and was interviewed before Jul 2021. There were 3 interview rounds.
If you are a fresher , then this is for you else almost no coding test for experienced candidates.
I applied via Campus Placement and was interviewed before Mar 2022. There were 4 interview rounds.
Questions regarding quants, logical reasoning, verbal assessment and also a coding part
I applied via Walk-in
Basic aptitude questions were asked by interviewer, the way of communication of interviewer was pretty cool. overall good experience throughout the interview process.
Oops concepts, basic dbms questions, cloud computing questions etc
based on 1 interview
Interview experience
based on 3 reviews
Rating in categories
Senior Software Engineer
83
salaries
| ₹9.3 L/yr - ₹30 L/yr |
Associate Software Engineer
45
salaries
| ₹6.5 L/yr - ₹7.3 L/yr |
Software Engineer
37
salaries
| ₹6 L/yr - ₹17 L/yr |
Senior Software Engineer 1
34
salaries
| ₹12.5 L/yr - ₹22 L/yr |
Software Engineer2
31
salaries
| ₹10 L/yr - ₹14 L/yr |
Saama Technologies
JoulestoWatts Business Solutions
Cyfuture
DISYS