Filter interviews by
Threading is a way for a program to execute multiple tasks concurrently. Different scheduling algorithms determine the order in which threads are executed.
Threading allows multiple tasks to run concurrently within a single process.
Scheduling algorithms determine the order in which threads are executed, such as First-Come-First-Served (FCFS), Round Robin, Priority-Based Scheduling, etc.
FCFS schedules threads based ...
Given a positive integer N
, find the number of ways to express N
as a sum of cubes of two integers, A
and B
, such that:
N = A^3 + B^3
Ensure you adhere to the following co...
The problem involves finding the number of ways to express a given integer as a sum of cubes of two integers.
Iterate through all possible values of A and B within the given constraints.
Check if A^3 + B^3 equals the given integer N.
Count the valid pairs of A and B that satisfy the condition.
Return the count of valid pairs for each test case.
Given the head node of a singly linked list, return a pointer pointing to the middle node of the linked list. In case the count of elements is even, return the node ...
Return the middle node of a singly linked list, or the second middle node if count is even.
Traverse the linked list with two pointers, one moving twice as fast as the other
When the fast pointer reaches the end, the slow pointer will be at the middle
If count is even, return the second middle node
Handle edge cases like single node or no midpoint
Discussing the low-level design of a system similar to Flipkart
Divide the system into modules like user authentication, product catalog, shopping cart, payment gateway
Discuss the data flow between these modules and how they interact with each other
Explain the database schema design for storing user information, product details, and order history
Consider scalability and performance optimizations like caching, load ...
Designing an app like Uber involves creating a platform for connecting riders with drivers for on-demand transportation services.
Develop a user-friendly interface for riders to request rides and for drivers to accept requests.
Implement a real-time tracking system to show the location of drivers and estimated arrival times.
Incorporate a payment system for seamless transactions between riders and drivers.
Include a r...
You are given the start and end times of 'N' intervals. Write a function to determine if any two intervals overlap.
If an interval ends at time T and another...
Determine if any two intervals overlap based on start and end times.
Iterate through intervals and check for any overlapping intervals by comparing start and end times.
Sort the intervals based on start times to optimize the solution.
Consider edge cases where intervals end and start at the same time but are not considered overlapping.
You are provided with two singly linked lists containing integers, where both lists converge at some node belonging to a third linked list.
Your task is to determine th...
Find the node where two linked lists merge, return -1 if no merging occurs.
Traverse both lists to find the lengths and the last nodes
Align the starting points of the lists by adjusting the pointers
Traverse again to find the merging node or return -1 if no merging occurs
I appeared for an interview in Dec 2021.
Round duration - 90 Minutes
Round difficulty - Easy
In this round, I was asked about my role, tools, and tech stacks used in my current company. I was also asked 1 coding question and 1 system design question
You are provided with two singly linked lists containing integers, where both lists converge at some node belonging to a third linked list.
Your task is to determine t...
Find the node where two linked lists merge, return -1 if no merging occurs.
Traverse both lists to find the lengths and the last nodes
Align the starting points of the lists by adjusting the pointers
Traverse again to find the merging node or return -1 if no merging occurs
Discussing the low-level design of a system similar to Flipkart
Divide the system into modules like user authentication, product catalog, shopping cart, payment gateway
Discuss the data flow between these modules and how they interact with each other
Explain the database schema design for storing user information, product details, and order history
Consider scalability and performance optimizations like caching, load balan...
Round duration - 120 minutes
Round difficulty - Medium
3 coding questions were asked
Given the head node of a singly linked list, return a pointer pointing to the middle node of the linked list. In case the count of elements is even, return the node...
Return the middle node of a singly linked list, or the second middle node if count is even.
Traverse the linked list with two pointers, one moving twice as fast as the other
When the fast pointer reaches the end, the slow pointer will be at the middle
If count is even, return the second middle node
Handle edge cases like single node or no midpoint
Given a positive integer N
, find the number of ways to express N
as a sum of cubes of two integers, A
and B
, such that:
N = A^3 + B^3
Ensure you adhere to the following c...
The problem involves finding the number of ways to express a given integer as a sum of cubes of two integers.
Iterate through all possible values of A and B within the given constraints.
Check if A^3 + B^3 equals the given integer N.
Count the valid pairs of A and B that satisfy the condition.
Return the count of valid pairs for each test case.
You are given the start and end times of 'N' intervals. Write a function to determine if any two intervals overlap.
If an interval ends at time T and anothe...
Determine if any two intervals overlap based on start and end times.
Iterate through intervals and check for any overlapping intervals by comparing start and end times.
Sort the intervals based on start times to optimize the solution.
Consider edge cases where intervals end and start at the same time but are not considered overlapping.
Round duration - 90 Minutes
Round difficulty - Easy
This was mostly system design round and some os questions were asked
Designing an app like Uber involves creating a platform for connecting riders with drivers for on-demand transportation services.
Develop a user-friendly interface for riders to request rides and for drivers to accept requests.
Implement a real-time tracking system to show the location of drivers and estimated arrival times.
Incorporate a payment system for seamless transactions between riders and drivers.
Include a rating...
Threading is a way for a program to execute multiple tasks concurrently. Different scheduling algorithms determine the order in which threads are executed.
Threading allows multiple tasks to run concurrently within a single process.
Scheduling algorithms determine the order in which threads are executed, such as First-Come-First-Served (FCFS), Round Robin, Priority-Based Scheduling, etc.
FCFS schedules threads based on th...
Tip 1 : Stay focused
Tip 2 : Practice coding questions
Tip 3 : View previous interviews of the company applying to
Tip 1 : Have atleast 3 great project
Tip 2 : Write only what you know and prepare well
Top trending discussions
I applied via Approached by Company and was interviewed before Jun 2021. There were 2 interview rounds.
Frameworks provide structure and pre-built components for software development, but can also limit flexibility and require learning curve.
Advantage: Provides structure and pre-built components for faster development
Advantage: Can improve code quality and maintainability
Disadvantage: Can limit flexibility and customization
Disadvantage: Requires learning curve and potential dependency issues
Example: ReactJS provides a fr...
Oops stands for Object-Oriented Programming. It is a programming paradigm that uses objects to represent real-world entities.
Advantages: code reusability, modularity, encapsulation, inheritance, polymorphism
Disadvantages: complexity, steep learning curve, performance overhead
Example: creating a class 'Car' with properties like 'make', 'model', and 'year', and methods like 'start_engine' and 'stop_engine'
I applied via Naukri.com and was interviewed before Sep 2021. There was 1 interview round.
I am a software engineer with experience in developing web applications and mobile apps.
Proficient in programming languages such as Java, Python, and JavaScript
Experience in developing RESTful APIs and integrating third-party APIs
Familiarity with front-end frameworks such as React and Angular
Strong understanding of database management systems such as MySQL and MongoDB
Passionate about learning new technologies and keepi...
Software industry offers endless opportunities for innovation and growth.
Software industry is constantly evolving and offers opportunities to work on cutting-edge technologies.
It provides a platform to solve complex problems and create innovative solutions.
The demand for software engineers is high and the industry offers competitive salaries.
Core industries may have limited scope for growth and innovation compared to s...
Program to print a given string in reverse
Create a character array of the given string
Loop through the array from end to start and print each character
Mux is a device that selects one of several input signals and forwards the selected input into a single output line.
Mux stands for Multiplexer.
It is used in digital circuits to select one of several input signals and forward the selected input into a single output line.
It is used in communication systems to combine multiple signals into a single channel for transmission.
It is used in video and audio systems to switch b...
DeMux is short for Demultiplexer. It is a digital circuit that takes one input and directs it to multiple outputs.
DeMux is used in digital communication systems to separate signals that have been combined for transmission.
It is also used in computer memory systems to select a specific memory location.
DeMux is used in video and audio systems to separate different channels of information.
It is used in automation systems ...
Decoder converts encoded data into a readable format while Demux separates a single input into multiple outputs.
Decoder is used to decode encoded data such as binary data into a readable format.
Demux is used to separate a single input into multiple outputs based on the control signals.
Decoder is a combinational circuit while Demux is a sequential circuit.
Decoder is used in applications such as remote controls, computer...
Amadeus Labs is a leading technology company in the travel industry.
Amadeus Labs provides opportunities to work on cutting-edge technologies.
The company has a strong focus on innovation and research.
Amadeus Labs has a global presence and offers a diverse and inclusive work environment.
Working at Amadeus Labs provides the opportunity to make a real impact on the travel industry.
The company values work-life balance and o...
Yes, I am comfortable working for Testing.
I have experience in testing and understand its importance in software development.
I am willing to learn new testing techniques and tools.
I am comfortable working with testing teams and collaborating with them to ensure quality software.
I understand the importance of testing in ensuring customer satisfaction and reducing costs.
Examples: I have experience in manual and automated...
I have the necessary skills and experience to excel in the developer role.
I have a degree in computer science and have completed multiple coding projects.
I am proficient in programming languages such as Java, Python, and C++.
I have experience working with databases and web development frameworks.
I am a quick learner and enjoy solving complex problems.
I am a team player and have collaborated with other developers on var...
AVL tree balance checking ensures that the tree maintains its height-balanced property after insertions and deletions.
An AVL tree is a self-balancing binary search tree.
The balance factor (BF) of a node is defined as the height of the left subtree minus the height of the right subtree.
A node is considered balanced if its BF is -1, 0, or +1.
To check balance, recursively calculate the height of left and right subtrees fo...
Find median of 2 sorted arrays in O(log N) time complexity and O(1) space complexity
Use binary search to find the partition point in both arrays
Calculate the median based on the partition point and array sizes
Adjust the partition points based on the median value
Repeat until the partition points are at the median
Handle edge cases such as empty arrays and uneven array sizes
Anagram of strings in O(1) space complexity
Use a fixed size array of integers to store the frequency of characters in the first string
Iterate through the second string and decrement the frequency of each character in the array
If all the frequencies are zero, then the strings are anagrams
Return true or false accordingly
Level order traversal of a tree using Queue
Create a queue and add the root node to it
While the queue is not empty, remove the front node and print its value
Add the left and right child nodes of the removed node to the queue
Repeat until the queue is empty
Reverse level order traversal of a tree using Queue
Create a queue and push the root node into it
While the queue is not empty, pop the front node and push its children into the queue
Add the popped node to a stack
Once the queue is empty, pop elements from the stack and print them
BFS and DFS are graph traversal algorithms. BFS explores nodes level by level while DFS explores nodes depth by depth.
BFS uses a queue while DFS uses a stack or recursion.
BFS is optimal for finding shortest path while DFS is optimal for finding a path between two nodes.
BFS requires more memory as it stores all the nodes at each level while DFS requires less memory.
BFS can be used to find connected components while DFS ...
Check if parentheses in a string are balanced using a stack-based approach.
Use a stack to track opening parentheses: '(', '{', '['.
For each closing parenthesis: check if it matches the top of the stack.
If the stack is empty at the end, parentheses are balanced.
Example: '((){})' is balanced, but '((())' is not.
Find product of each element of an array except that element in O(N) time complexity without using / operation
Use prefix and suffix products
Multiply prefix and suffix products for each element to get the final product
Handle edge cases where array has 0 or 1 element separately
Recursively delete a linked list
Create a recursive function that takes the head of the linked list as input
Base case: if the head is null, return
Recursively call the function with the next node as input
Delete the current node
Recursively delete a linked list from the end.
Start from the head and recursively traverse to the end of the list.
Delete the last node and set the second last node's next pointer to null.
Repeat until the entire list is deleted.
Use a recursive function to implement the deletion process.
Recursively delete a tree by deleting all its child nodes and then the parent node.
Start from the leaf nodes and delete them first.
Then move up to the parent nodes and delete them.
Repeat until the root node is deleted.
Use post-order traversal to ensure child nodes are deleted before parent nodes.
Recursively delete elements from the end of an array.
Create a recursive function that removes the last element of the array.
Call the function recursively until the desired number of elements are removed.
Handle edge cases such as empty arrays and removing more elements than the array contains.
Floyd Warshall finds shortest path between all pairs of vertices while Djikstra finds shortest path from a single source.
Floyd Warshall is used for dense graphs while Djikstra is used for sparse graphs.
Floyd Warshall has a time complexity of O(n^3) while Djikstra has a time complexity of O((n+m)logn).
Floyd Warshall can handle negative edge weights while Djikstra cannot.
Floyd Warshall can detect negative cycles while Dj...
There is no known algorithm to find shortest path in 2-D space in O(log N) time.
The best known algorithm for finding shortest path in 2-D space is Dijkstra's algorithm which has a time complexity of O(N^2).
Other algorithms like A* and Bellman-Ford have better time complexity but still not O(log N).
If the points are on a grid, Lee algorithm can be used which has a time complexity of O(N).
Design a system for putting newspapers using classes and functions
Create a Newspaper class with attributes like title, date, and content
Create a Publisher class with methods to publish and distribute newspapers
Create a Subscriber class with methods to subscribe and receive newspapers
Use inheritance to create different types of newspapers like daily, weekly, etc.
Implement a database to store newspaper information and ha...
I believe practical experience is more valuable than higher studies.
I have gained valuable experience through internships and projects.
I prefer hands-on learning and problem-solving over theoretical knowledge.
I am constantly learning and improving my skills through online courses and workshops.
I applied via Naukri.com and was interviewed before Jul 2020. There were 4 interview rounds.
I applied via Recruitment Consultant and was interviewed in May 2019. There were 4 interview rounds.
Recent issues faced in the organization include project delays, communication gaps, and technical debt impacting productivity.
Project Delays: We encountered delays in project timelines due to unforeseen technical challenges, such as integrating legacy systems with new technologies.
Communication Gaps: Miscommunication between teams led to misunderstandings about project requirements, resulting in rework and wasted resou...
I applied via Recruitment Consultant and was interviewed before Jun 2020. There were 4 interview rounds.
I applied via Company Website and was interviewed before Jun 2020. There were 5 interview rounds.
Senior Software Engineer
379
salaries
| ₹19.9 L/yr - ₹37 L/yr |
fresher
248
salaries
| ₹1.8 L/yr - ₹5.1 L/yr |
Software Engineer
236
salaries
| ₹10 L/yr - ₹18 L/yr |
Lead Software Engineer
220
salaries
| ₹30.8 L/yr - ₹55 L/yr |
Product Specialist
146
salaries
| ₹3.5 L/yr - ₹11.5 L/yr |
Zoho
Salesforce
Thomson Reuters
Oracle Cerner