Filter interviews by
I applied via Naukri.com and was interviewed in Feb 2024. There were 3 interview rounds.
Structure is a collection of different data types under one name, while union is a single memory location that can hold different data types at different times.
Structure allows each member to have its own memory location, while union shares a single memory location for all members.
In a structure, all members can be accessed simultaneously, while in a union, only one member can be accessed at a time.
Example: struct Pers...
Structure padding is adding empty bytes to align data in memory. Packing a structure removes padding to save memory.
Structure padding ensures that data members are aligned to memory boundaries for efficient access
Padding bytes are added between data members to ensure alignment
Packing a structure removes padding to save memory but may impact performance
Example: struct example { char a; int b; } - sizeof(struct example)
To check for stack overflow, monitor stack usage and set a limit to trigger an alert if exceeded.
Monitor stack usage by tracking the stack pointer and comparing it to the stack size.
Set a limit for stack usage and trigger an alert if the limit is exceeded.
Use tools like stack analyzers or profilers to detect stack overflow.
Implement stack canaries or guard zones to detect stack corruption.
A semaphore is a signaling mechanism while a mutex is a locking mechanism used to control access to shared resources in multithreaded environments.
Semaphore is used to control access to a pool of resources, while mutex is used to control access to a single resource.
Semaphores can be used to allow multiple threads to access a shared resource simultaneously, while mutex allows only one thread to access the resource at a ...
Task priority can be set using priority levels or scheduling algorithms in firmware development.
Use priority levels to assign importance to tasks
Higher priority tasks are executed before lower priority tasks
Implement scheduling algorithms like preemptive scheduling or round-robin scheduling to manage task priorities
I appeared for an interview before Nov 2020.
Round duration - 150 Minutes
Round difficulty - Medium
Have to attempt 2 programming questions within 2:30 hours. Can take any time over the weekend. Relatively easy problems. Questions were long, but the solution code was small.
Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette when viewed from a distance. Each building is ...
Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette.
Iterate through the buildings and create a list of critical points (x, y) where the height changes.
Sort the critical points based on x-coordinate and process them to generate the skyline.
Merge consecutive horizontal segments of equal height to ensure no duplicates in the output.
You are given a Singly Linked List of integers. Your task is to sort the list using the 'Merge Sort' algorithm.
The input consists of a single line contain...
Sort a Singly Linked List using Merge Sort algorithm.
Implement the Merge Sort algorithm for linked lists.
Divide the list into two halves, sort each half recursively, then merge them.
Use a fast and slow pointer to find the middle of the list for splitting.
Handle the base case of a single node or empty list.
Example: Input: 4 3 2 1 -1, Output: 1 2 3 4
Round duration - 240 Minutes
Round difficulty - Medium
Had to solve 1 programming question in 4 hours. It was in the morning on a weekend. The environment was not so good. It was a small institute and got very crowded. The platform was also buggy. but the question was not difficult. Was able to solve it in just 1 hour and leave.
Alex has acquired a machine that can photocopy photos in batches of a minimum size 'K'. Given 'N' photos with resolutions represented in an integer array photos
, the machine prod...
Minimize maximum error by splitting photos into batches of size at least 'K'.
Sort the array of resolutions in ascending order.
Iterate through the array and calculate the error for each possible batch.
Return the minimum possible maximum error found.
Round duration - 30 Minutes
Round difficulty - Easy
It was in the afternoon. The interviewer basically asked me what technologies I have worked on. Checked my knowledge of those technologies with simple questions. Told me what I'll be working on if I get selected.
Given an integer array arr
of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.
The first line contains an integer 'T' representing the n...
Sort an integer array containing only 0s, 1s, and 2s in linear time complexity.
Use three pointers to keep track of the positions of 0s, 1s, and 2s in the array.
Iterate through the array and swap elements based on the values encountered.
Maintain left pointer for 0s, right pointer for 2s, and current pointer for traversal.
Example: If current element is 0, swap it with element at left pointer and increment both pointers.
E...
Round duration - 90 Minutes
Round difficulty - Hard
It was also in the afternoon. The interviewer was the member of the team I'll be working on if I get selected. He asked me some basic questions about related technologies.
Gave me 2-3 DS & Algo problems and asked me to solve them.
Calculate the sum of all elements in an array of length N
.
Line 1: An integer N indicating the size of the array.
Line 2: N integers, the elements of the array, separated by ...
Calculate the sum of all elements in an array of length N.
Iterate through the array and add each element to a running sum.
Return the final sum as the output.
An alien dropped its dictionary while visiting Earth. The Ninja wants to determine the order of characters used in the alien language, based on the given list of wor...
Determine the order of characters in an alien language based on a list of words.
Create a graph where each character is a node and there is a directed edge from character 'a' to character 'b' if 'a' comes before 'b' in any word.
Perform a topological sort on the graph to get the order of characters.
Return the order as a string in lexicographical order.
Tip 1 : It's a Daily process. Not weekly, Not monthly. DAILY!
Tip 2 : Take part in Online Contests. HackerEarth is best for Contests posted by companies.
Tip 3 : Even after you have solved some problem, try to find a better solution for it online. Companies don't want a solution, they want optimized solution.
Tip 1 : Modify resume for each job you are applying for. It should show why you are suitable for that particular job.
Tip 2 : Remove any extra things like interests and hobbies. No one cares.
I applied via Naukri.com and was interviewed before Jun 2021. There were 2 interview rounds.
Networking and linux internals
I appeared for an interview before Jan 2021.
Round duration - 120 Minutes
Round difficulty - Hard
This round had 3 preety good questions to be solved under 2 hours . The first question was from Graphs and DSU , the second question was related to DP and the third one was from Recursion.
On a 2-D plane, there are ‘N’ stones placed at some integer coordinate points. Each coordinate point can have at most one stone. A stone can be removed if it sh...
Given a 2-D plane with stones at integer coordinate points, find the maximum number of stones that can be removed by sharing the same row or column.
Iterate through the stones and create a graph where stones in the same row or column are connected.
Use depth-first search (DFS) to find connected components in the graph.
The maximum number of stones that can be removed is the total number of stones minus the number of conne
You are provided with a gold mine, represented as a 2-dimensional matrix of size N x M with N rows and M columns. Each cell in this matrix contains a positive integer represent...
The task is to determine the maximum amount of gold a miner can collect by moving in allowed directions in a gold mine represented as a 2D matrix.
Create a 2D DP array to store the maximum gold collected at each cell
Iterate through the matrix from left to right and update the DP array based on the allowed directions
Return the maximum value in the last column of the DP array as the final result
Given a positive integer N
, generate all possible sequences of balanced parentheses using N
pairs of parentheses.
A sequence of brackets is called bala...
Generate all possible sequences of balanced parentheses using N pairs of parentheses.
Use backtracking to generate all possible combinations of balanced parentheses.
Keep track of the number of opening and closing parentheses used.
Add opening parentheses if there are remaining, and add closing parentheses only if there are more opening parentheses than closing.
Recursively generate all valid combinations.
Return the list o
Round duration - 60 Minutes
Round difficulty - Medium
This round had 2 questions from DSA. Both the questions were preety straightforward and were asked to check my implementation skills and how well do I handle Edge Cases for tricky problems.
Develop a Stack Data Structure to store integer values using two Queues internally.
Your stack implementation should provide these public functions:
Implement a stack using two queues to store integer values.
Use two queues to simulate stack operations: push elements to one queue, then move all elements to the other queue to simulate pop and top operations.
Maintain the size of the stack and check for empty stack using the size of the queues.
Handle edge cases such as popping or getting top element from an empty stack.
Ensure the implementation follows the specified pu...
Given a square matrix 'MATRIX' of non-negative integers, rotate the matrix by 90 degrees in an anti-clockwise direction using only constant extra space.
Rotate a square matrix by 90 degrees in an anti-clockwise direction using constant extra space.
Iterate through each layer of the matrix and swap elements in groups of 4
Transpose the matrix and then reverse each row to achieve the rotation
Ensure to handle edge cases like odd-sized matrices
Round duration - 60 Minutes
Round difficulty - Medium
This round also had 2 questions related to DSA where I was first expected to explain my approaches and then discuss the time and space complexities of my solution. After that , I was asked some core concepts related to OOPS and OS.
Given an array ARR
consisting of N
integers, find all distinct triplets in the array that add up to a given number K
.
T = 2
N = 5
ARR = [1, 2, 3, 4, 5]
K = 9
N = 4
...
Find all distinct triplets in an array that add up to a given number.
Use three nested loops to iterate through all possible triplets.
Sort the array first to easily skip duplicates.
Use two-pointer technique to find the remaining element for each triplet.
Handle edge cases like empty list or no triplet summing up to K.
You are given a long type array/list ARR
of size N
, representing an elevation map. The value ARR[i]
denotes the elevation of the ith
bar. Your task is to determine th...
Calculate the total amount of rainwater that can be trapped between given elevations in an array.
Iterate through the array and calculate the maximum height on the left and right of each bar.
Calculate the amount of water that can be trapped at each bar by taking the minimum of the maximum heights on the left and right.
Sum up the trapped water at each bar to get the total trapped water for the entire array.
Diamond Problem is a multiple inheritance issue in C++ where a class inherits from two classes that have a common base class.
Diamond Problem occurs when a class inherits from two classes that have a common base class, leading to ambiguity in accessing members.
It can be resolved in C++ using virtual inheritance, where the common base class is inherited virtually to avoid duplicate copies of base class members.
Example: c...
Thrashing in operating systems occurs when the system is spending more time swapping data between memory and disk than actually executing tasks.
Occurs when the system is constantly swapping data between memory and disk
Causes a decrease in system performance as it spends more time on swapping than executing tasks
Usually happens when the system does not have enough physical memory to handle the workload efficiently
Round duration - 30 Minutes
Round difficulty - Easy
This was my last round and I hoped it to go good just like the other rounds. The interviewer was very straight to point and professional. The interview lasted for 30 minutes.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
Balloon Burst Problem - Given n balloons, each with a number of coins, maximize the number of coins collected by bursting the balloons.
Use dynamic programming to solve the problem
Consider each balloon as the last balloon to be burst
Calculate the maximum coins that can be collected for each subarray of balloons
Use the calculated values to find the maximum coins for the entire array
I appeared for an interview in Oct 2016.
My hobbies include hiking, playing guitar, and cooking.
Hiking: I enjoy exploring nature trails and challenging myself physically.
Playing guitar: I love learning new songs and improving my skills.
Cooking: I like experimenting with different recipes and creating delicious meals.
In 5 years, I see myself as a senior software developer leading a team and working on complex projects.
Leading a team of developers
Working on complex projects
Continuously learning and improving my skills
Contributing to the growth and success of the company
I want to join DELL because of their innovative technology solutions and strong reputation in the industry.
DELL is known for their cutting-edge technology solutions which align with my passion for software development.
I admire DELL's strong reputation in the industry and their commitment to customer satisfaction.
I believe joining DELL will provide me with opportunities for growth and career advancement.
I appeared for an interview in Jan 2017.
I appeared for an interview in Sep 2016.
based on 2 interviews
Interview experience
Software Technologist 1
196
salaries
| ₹10 L/yr - ₹31.2 L/yr |
Software Technologist 2
190
salaries
| ₹16 L/yr - ₹34 L/yr |
Software Engineer
188
salaries
| ₹5.8 L/yr - ₹21.3 L/yr |
Senior Accounting Specialist
173
salaries
| ₹5.6 L/yr - ₹20.2 L/yr |
Deputy Manager
160
salaries
| ₹8.5 L/yr - ₹27 L/yr |
Samsung
Vivo
OPPO
Dell