Filter interviews by
Clear (1)
I was interviewed before Mar 2021.
Round duration - 70 Minutes
Round difficulty - Medium
This online coding round, consisted of 3 DSA problems and we were supposed to solve them in 70 mins.
Programming Languages allowed: C, C++, JAVA
Note: Python was not available.
Given a binary tree with 'N' nodes and a specific node in this tree, you need to determine and return a sorted list of the values of the node's cousins. The cousin...
Given a binary tree and a specific node, return a sorted list of the values of the node's cousins.
Traverse the binary tree to find the parent of the given node and its depth.
Traverse the tree again to find nodes at the same depth but with different parents.
Return the sorted list of cousin node values or -1 if no cousins exist.
Your task is to determine the maximum possible sum of a simple path between any two nodes (possibly the same) in a given binary tree of 'N' nodes with integer values.
Find the maximum sum of a simple path between any two nodes in a binary tree.
Use a recursive approach to traverse the binary tree and calculate the maximum sum path.
Keep track of the maximum sum path found so far while traversing the tree.
Consider all possible paths between any two nodes in the tree to find the maximum sum.
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 2D gold mine matrix.
Create a function that takes the gold mine matrix and dimensions as input
Implement a dynamic programming approach to find the maximum amount of gold that can be collected
Consider the constraints and optimize the solution for efficiency
Traverse the matrix from left to right, calculating the ma...
Round duration - 45 Minutes
Round difficulty - Medium
This was the first technical round and those who cleared the online coding assessment round were eligible for this round. This round consisted of questions from DSA, CS Fundamentals, my projects and questions related to frontend.
What are the various formatting tags in HTML? What is DOM? What is the significance of and tag in HTML?
Given a string str
of size N
, your task is to recursively remove consecutive duplicates from this string.
T (number of test cases)
N (length of the ...
Recursively remove consecutive duplicates from a given string.
Iterate through the string and remove consecutive duplicates using recursion.
Keep track of the current character and compare it with the next character.
If they are the same, remove the next character and continue recursively until no consecutive duplicates are left.
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 point to the previous node instead of the next node.
Use three pointers to keep track of the current, previous, and next nodes while reversing the linked list.
Update the head of the reversed linked list as the last node encountered during the reversal process.
Design and implement a Trie (prefix tree) to perform the following operations:
insert(word)
: Add a string "word" to the Trie.search(word)
: Verify if the string "w...Implement a Trie data structure to insert, search, and determine if a string starts with a given prefix.
Create a TrieNode class with children and isEndOfWord attributes.
Implement insert() to add words by traversing the Trie.
Implement search() to check if a word exists by traversing the Trie.
Implement startsWith() to check if any word starts with a given prefix.
Use lowercase English letters a-z for words.
Handle queries
A process in an operating system is an instance of a program that is being executed.
A process is a unit of execution within an operating system.
Each process has its own memory space, resources, and state.
Processes can communicate with each other through inter-process communication.
Examples of processes include web browsers, word processors, and media players.
Round duration - 45 Minutes
Round difficulty - Medium
This was the second technical round and those who cleared the previous interview round were eligible for this round. This round consisted of questions from DSA, CS Fundamentals majorly OOPS, and my projects. How can we club two or more rows or columns into a single row or column in an HTML table?
You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N ma...
Find all possible paths for a rat in a maze from source to destination.
Use backtracking to explore all possible paths in the maze.
Keep track of visited cells to avoid revisiting them.
Recursively move in all directions (up, down, left, right) until reaching the destination.
Return the list of valid paths sorted in alphabetical order.
The four pillars of OOP are encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Allowing a new class to inherit properties and behaviors from an existing class.
Polymorphism: The ability for objects of different classes to respond to the same message in different ways.
Abstraction: Hiding the complex implementation det...
Tip 1 : You should be proficient in one of the 2 languages: C++, Java
Tip 2 : For each of the 4 pillars of OOPS, focus on 4 important aspects i.e. definition, use case, real-world eg., advantages.
Tip 3 : Learn about general design patterns like, Singelton, Factory, Builder etc.
Tip 1 : Mentions your past experiences.
Tip 2 : Mention at least 2 projects.
Top trending discussions
I was interviewed 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 was interviewed in Jan 2017.
I applied via Approached by Company and was interviewed in Oct 2022. There were 2 interview rounds.
Method for deleting a node from a Linked List
Find the node to be deleted
Update the previous node's next pointer to skip the deleted node
Free the memory occupied by the deleted node
No, it is not possible in Java due to circular inheritance.
Circular inheritance is not allowed in Java.
It creates an infinite loop and leads to compile-time errors.
To avoid this, inheritance hierarchy should be designed carefully.
Example: Class A extends B, B extends C, and C extends D.
This creates a linear inheritance hierarchy and is allowed in Java.
Creating a custom immutable class in Java
Make the class final
Make all fields private and final
Do not provide any setter methods
Provide a constructor to initialize all fields
Override equals() and hashCode() methods
Prevent modification of mutable objects passed in constructor
Code to check if two strings are anagrams of each other.
Create two character arrays from the strings
Sort the arrays
Compare the sorted arrays
Time complexity of linked list operations is O(n) for traversal, insertion and deletion.
Traversal, insertion and deletion in linked lists take linear time.
Insertion and deletion at the beginning of the list is faster than at the end.
Doubly linked lists have slightly higher time complexity due to maintaining two pointers.
I applied via Approached by Company and was interviewed before Aug 2021. There were 3 interview rounds.
C++ & C Based Questions Mostly from Arrays, Linked List, Queues
To reverse a string, iterate through the string and append each character to a new string in reverse order.
Create an empty string to store the reversed string
Iterate through the original string from the end to the beginning
Append each character to the new string
Return the new string
A pn junction diode is a semiconductor device that allows current to flow in one direction only.
Consists of p-type and n-type semiconductor materials
When forward biased, allows current to flow easily
When reverse biased, blocks current flow
I applied via Naukri.com and was interviewed before Jul 2020. There were 4 interview rounds.
I applied via Naukri.com and was interviewed before Jun 2021. There were 2 interview rounds.
Networking and linux internals
I applied via Referral and was interviewed before Apr 2022. There were 5 interview rounds.
General mathematics questions we be asked
Program name will be given we have write the coding
I applied via Campus Placement and was interviewed before Oct 2022. There were 3 interview rounds.
1 question on Data Structures and Algorithms
Sales Executive
1.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant Manager
959
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
871
salaries
| ₹0 L/yr - ₹0 L/yr |
Manager
526
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Engineer
481
salaries
| ₹0 L/yr - ₹0 L/yr |
Apple
LG Electronics
Sony
Xiaomi