Filter interviews by
Binary search is a search algorithm that finds the position of a target value within a sorted array.
Binary search works by repeatedly dividing the search interval in half.
It compares the target value with the middle element of the array.
If the target value matches the middle element, the position is returned.
If the target value is less than the middle element, the search continues on the lower half of the array.
If the ...
An algorithm based on graph is a set of instructions designed to solve problems related to graphs.
Graph algorithms are used to solve problems related to graphs, such as finding the shortest path between two nodes, detecting cycles, and determining connectivity.
Some common graph algorithms include Dijkstra's algorithm for finding the shortest path, Kruskal's algorithm for finding the minimum spanning tree, and Depth Fir...
Scheduling is the process of planning and organizing tasks or resources over a period of time.
Scheduling involves determining the start and end times for tasks or activities.
It helps in optimizing resources and ensuring efficient use of time.
Examples include project scheduling, employee scheduling, and appointment scheduling.
Round robin is a scheduling algorithm that assigns equal time slices to each process in a circular queue.
Each process is given a small unit of time to execute before being moved to the end of the queue.
It ensures fairness by preventing a single process from monopolizing the CPU.
Example: In a round robin scheduling with time quantum of 10ms, processes A, B, and C will each get 10ms of CPU time before moving to the end o...
Top trending discussions
I applied via Naukri.com and was interviewed in Oct 2019. There were 3 interview rounds.
A program to convert numbers into their English word representation, handling numbers from 1 to infinity.
Use a recursive function to break down numbers into manageable parts.
Handle special cases for numbers like 11-19 (e.g., eleven, twelve).
Use arrays or dictionaries to map numbers to words for efficiency.
Example: 1543 is broken down into 1000 + 500 + 40 + 3, resulting in 'one thousand five hundred forty three'.
I appeared for an interview before Apr 2024, where I was asked the following questions.
I applied via Naukri.com and was interviewed in Jun 2024. There were 2 interview rounds.
MCQs on hdfs, sql and spark. One data structures coding test
I appeared for an interview before Oct 2023.
It was based on frontend technologies
I applied via LinkedIn and was interviewed before Apr 2023. There was 1 interview round.
posted on 24 May 2024
Using async/await with try catch block in Javascript
Use async keyword before the function declaration to make it asynchronous
Use await keyword before the function call to wait for the promise to resolve
Wrap the async/await code in a try catch block to handle errors
posted on 16 Sep 2021
I appeared for an interview in Dec 2020.
Round duration - 75 minutes
Round difficulty - Easy
This round was conducted in Hackerrank portal for a total duration of 75 minutes and was divided into 4 sections.
1st Section : Aptitude Section : 14 questions , 28 minutes
2nd Section : Technical Section : 12 questions , 17 minutes
3rd Section :1 coding Questions : 20 minutes+30 minutes
This Round was Conducted on Hackerrank (Webcam Enabled).
To find and correct a bug in code, analyze problem statement, review code, use debugging tools, and test different scenarios.
Understand the problem statement and expected output
Review the code for syntax errors, logical errors, and potential bugs
Use debugging tools like breakpoints, print statements, and IDE debuggers
Test the code with different inputs and edge cases to identify the bug
Make necessary corrections and re...
Given a Binary Tree of distinct integers and two integers, target
and K
, return a list of values of all nodes located at a distance K
from the target no...
Find nodes at distance K from target node in a Binary Tree.
Use BFS to traverse the tree and keep track of the distance of each node from the target node.
Maintain a set to keep track of visited nodes to avoid revisiting them.
Return the values of nodes at distance K from the target node.
Round duration - 90 minutes
Round difficulty - Medium
I was shared a link of Google Meet and the Google Docs was shared where there was 1 coding problem to be coded there and then the code was run on an IDE to check the sample tests.
Then the interview was followed by a lot of Operating System and Computer System Architecture Questions.
There were 2 Interviewers and both were helpful.
The timing was from 2:30 PM to 4:00 PM
Determine the length of the largest subarray within a given array of 0s and 1s, such that the subarray contains an equal number of 0s and 1s.
Input beg...
Find the length of the largest subarray with equal number of 0s and 1s in a given array.
Iterate through the array and maintain a count of 0s and 1s encountered so far.
Store the count difference in a hashmap with the index as key.
If the same count difference is encountered again, the subarray between the two indices has equal 0s and 1s.
Return the length of the longest subarray found.
Round duration - 45 minutes
Round difficulty - Easy
The round was held on Google Meet with HR from 2:30 PM to 3:15 PM.
The HR was friendly and asked the basic questions.
Tip 1 : Practice daily 4-5 medium level problems on sites like Leetcode, CodeZen, Hackerearth
Tip 2 : Even though Data Structures and Algorithms is the base but study Course Subjects like DBMS,OS,OOPS too.
Tip 3 : Try to Participate in Contests on LeetCode,Codeforces.
Tip 1 : Mention atleast 1 project and past work experience as it sets good impression.
Tip 2 : Keep your resume up to date for the role you are applying.
Tip 3 : Try to keep your resume of 1 Page.
posted on 27 Oct 2021
I appeared for an interview in Feb 2021.
Round duration - 90 Minutes
Round difficulty - Hard
The test was at 6 pm with cam on and in fullscreen mode.
You are given three strings 'A', 'B', and 'C'. Determine if 'C' is formed by interleaving 'A' and 'B'.
String 'C' is an interleaving of 'A' and 'B' if the lengt...
The problem involves determining if a string 'C' is formed by interleaving two given strings 'A' and 'B'.
Check if the length of 'C' is equal to the sum of the lengths of 'A' and 'B'.
Verify if all characters of 'A' and 'B' exist in 'C' while maintaining their order.
Return 'True' if 'C' is an interleaving of 'A' and 'B', otherwise return 'False'.
Given two lists representing the inorder and postorder traversal of a binary tree of integer type with 'N' nodes, construct the binary tree and r...
Construct a binary tree from inorder and postorder traversal lists and return its root.
Create a map to store the indices of elements in the inorder traversal list for quick access during tree construction.
Use the postorder list to determine the root of the tree and recursively build left and right subtrees.
Construct the tree by recursively dividing the inorder list based on the root index in postorder list.
Return the r...
Round duration - 45 Minutes
Round difficulty - Easy
At 10:00 AM. Interviewer was very friendly and young but his cam was off.
Kevin has sketched a series of integers, forming a diagram that represents a binary tree. Challenged by a friend, Kevin needs to find all paths from the root to the leaf where th...
Round duration - 45 Minutes
Round difficulty - Easy
It was held at 4 p.m. The interviewer was senior compared to the one in the previous round. Also, his cam was also on, but he wasn't speaking much and neither giving any expressions.
Given a set of boxes represented by an array gainPower
, where each box has a certain power value, along with an initial power value 'power', your task is to maximize the t...
Maximize total score by selecting boxes optimally based on power values and operations.
Iterate through the boxes and perform operations based on power values and current score
Keep track of power, score, and selected boxes to maximize total score
Example: For input [3, 50, [20, 30, 40]], select boxes with power 20 and 30 to get a score of 2
Tip 1 : DSA is the key. Starting from scratch, one can become proficients in a couple of months.
Tip 2 : Solve questions just a bit outside your comfort zone. Solve too easy to too hard questions is not of any use.
Tip 3 : Be consistent, make a habit of following good coding practices.
Tip 4 : Get to know the ins and out of your projects. You must be very confident while explaining those.
Tip 5 : Don't just directly to system-design, brush up on OOPS principles, networks, OS, DBMS before that.
Tip 1 : Keep it crisp and to the point. Make bullet points.
Tip 2 : Bold the things you want to be paid attention to. Use numbers rather than vague sentences.
Tip 3 : Only put the things you are confident about.
Tip 4 : Don't put things irrelevant to the job, it only dilutes the main content.
posted on 30 Jan 2024
I applied via Campus Placement and was interviewed in Jul 2023. There were 2 interview rounds.
Online test with two section one is general aptituide and Basic cs concepts. And Second round containing the 2 dsa question with intermediate level question.
The median of two sorted arrays merged in ascending order.
Merge the two sorted arrays into a single sorted array.
Find the median of the merged array.
If the merged array has an odd length, the median is the middle element.
If the merged array has an even length, the median is the average of the two middle elements.
based on 1 interview experience
Senior Business Analyst
203
salaries
| ₹5.4 L/yr - ₹9 L/yr |
Business Analyst
125
salaries
| ₹4 L/yr - ₹6 L/yr |
Business Strategy Manager
90
salaries
| ₹7.5 L/yr - ₹14 L/yr |
Senior Associate
41
salaries
| ₹4 L/yr - ₹11 L/yr |
Media Associate
32
salaries
| ₹3 L/yr - ₹7 L/yr |
R.R. Donnelley
Epsilon
ChannelPlay
Affinity Express