Filter interviews by
I applied via Walk-in and was interviewed before Jan 2024. There was 1 interview round.
Only family background
Top trending discussions
I was interviewed in Jan 2016.
To find the right view of a binary tree, we need to traverse the tree and keep track of the rightmost node at each level.
Traverse the tree using level order traversal
At each level, keep track of the rightmost node
Add the rightmost node to the result array
Return the result array
Find two missing numbers from an unsorted array in O(n) time complexity.
Calculate the sum of all numbers from 1 to n using the formula n*(n+1)/2
Calculate the sum of all numbers in the given array
Subtract the sum of array from the sum of all numbers to get the sum of missing numbers
Use the sum of missing numbers and the sum of squares of all numbers from 1 to n to calculate the missing numbers using simultaneous equatio
To find average salary without disclosing any one salary
Collect salaries of all employees
Add all salaries and divide by total number of employees
Do not disclose any individual salary
Divide a golden brick into minimum parts to pay daily salary to a worker.
The number of parts needed will depend on the daily salary of the worker.
The size of the parts should be equal.
The parts should be small enough to cover the daily salary but large enough to minimize the number of parts.
The formula to calculate the number of parts is: number of parts = total value of the golden brick / daily salary
I was interviewed before Feb 2021.
Round duration - 60 minutes
Round difficulty - Easy
It comprised of general aptitude questions and two coding questions. It was an offline test.
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 where no two queens threaten each other.
Use backtracking algorithm to explore all possible configurations.
Keep track of rows, columns, and diagonals to ensure queens do not attack each other.
Generate and print valid configurations where queens are placed safely.
Consider constraints and time limit for efficient solution.
Exam...
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.
Achieve sorting in a single scan over the array without using any extra space.
Round duration - 60 minutes
Round difficulty - Easy
After having a technical discussion about my CV. He gave me two questions to code.
Ninja has to determine all the distinct substrings of size two that can be formed from a given string 'STR' comprising only lowercase alphabetic characters. These su...
Find all unique contiguous substrings of size two from a given string.
Iterate through the string and extract substrings of size two
Use a set to store unique substrings
Return the set as an array of strings
Determine if a given singly linked list of integers forms a cycle or not.
A cycle in a linked list occurs when a node's next
points back to a previous node in the ...
Detect if a singly linked list forms a cycle by checking if a node's next points back to a previous node.
Traverse the linked list using two pointers, one moving one step at a time and the other moving two steps at a time.
If the two pointers meet at any point, there is a cycle in the linked list.
If one of the pointers reaches the end of the list (null), there is no cycle.
Round duration - 30 minutes
Round difficulty - Easy
This was supposed to be the HR round but out of surprise the interviewer started by giving me a question to code.
After I approached this question with the right solution he just asked about my family. After that he said to wait. After half an hour the results were announced. A total of three students were hired and I was amongst one of them.
Given an integer N
representing the number of pairs of parentheses, find all the possible combinations of balanced parentheses using the given number of pairs.
Generate all possible combinations of balanced parentheses for a given number of pairs.
Use recursion to generate all possible combinations of balanced parentheses.
Keep track of the number of open and close parentheses used in each combination.
Return the valid combinations as an array of strings.
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.
I applied via Campus Placement and was interviewed before Feb 2023. There were 4 interview rounds.
The test consisted of 4 DSA questions (1 easy, 2 medium, 1 hard) that had to be completed in 2 hours. They were standard questions from Leetcode and the test was similar to Leetcode's weekly coding contest.
Find subarray in an array with sum 0
Iterate through the array and keep track of the running sum
Store the running sum in a hashmap and check if the same sum has been seen before
If the sum is 0 or if the running sum is already in the hashmap, a subarray with sum 0 exists
Database design for a blogging website
Create tables for users, blog posts, comments, and categories
Use primary and foreign keys to establish relationships between tables
Include fields such as title, content, author, date, and tags
Implement indexing for faster retrieval of data
Consider implementing a caching mechanism for improved performance
To balance the load of requests on a single server, one can implement load balancing techniques.
Implementing a load balancer to distribute incoming requests evenly across multiple servers
Using round-robin algorithm to route requests to different servers in a sequential manner
Utilizing server health checks to monitor the performance of each server and adjust the load distribution accordingly
Design a database for a college
Create tables for students, courses, professors, departments, and grades
Establish relationships between tables using foreign keys
Include attributes such as student ID, course ID, professor ID, department ID, and grade
Consider normalization to reduce redundancy and improve data integrity
Pseudo code to validate password
Create a function that takes a password as input
Check if the password meets the required criteria (e.g. length, special characters)
Return true if the password is valid, false otherwise
I applied via Campus Placement and was interviewed before May 2023. There were 3 interview rounds.
5 questions of medium difficulty level covering topics like queue, dynamic programming, binary search, greedy.
Identify data structure based on insertion and deletion order
If insertion and deletion follow LIFO order, it is a stack
If insertion follows FIFO order and deletion follows LIFO order, it is a queue
If insertion and deletion follow priority order, it is a priority queue
Find maximum element in an array in less than O(N)
Use divide and conquer approach
Compare maximum of left and right subarrays
Recursively find maximum element
I applied via Approached by Company and was interviewed in Feb 2022. There were 2 interview rounds.
I applied via Naukri.com and was interviewed before May 2023. There was 1 interview round.
I applied via Walk-in and was interviewed in May 2024. There were 2 interview rounds.
Was bit tough and need to concentrate on work time
Was about coding in any language such as Java python
25 basic aptitude asked from train,time and work
2 coding questions which was basic and medium questions
based on 1 interview
Interview experience
Junior Engineer
54
salaries
| ₹0 L/yr - ₹0 L/yr |
Production Engineer
19
salaries
| ₹0 L/yr - ₹0 L/yr |
Maintenance Engineer
11
salaries
| ₹0 L/yr - ₹0 L/yr |
Process Engineer
8
salaries
| ₹0 L/yr - ₹0 L/yr |
Quality Engineer
8
salaries
| ₹0 L/yr - ₹0 L/yr |
ffreedom app
MagicBricks
Videocon d2h
EaseMyTrip.com