Filter interviews by
Clear (1)
I applied via Naukri.com and was interviewed in Jun 2022. There were 4 interview rounds.
I applied via Hackerearth contest and was interviewed in Oct 2021. There was 1 interview round.
Reverse a linked list
Iterate through the linked list and change the direction of the pointers
Use three pointers to keep track of the current, previous, and next nodes
Make sure to update the head and tail pointers accordingly
Swap 2 numbers without using a third variable
Use the XOR operation to swap the numbers
Assign the first number to the second number using XOR
Assign the second number to the first number using XOR
Height of a binary tree is the maximum number of edges from the root node to any leaf node.
The height of an empty tree is 0.
The height of a tree with only one node is 1.
The height of a tree can be calculated recursively by finding the height of its left and right subtrees and adding 1 to the maximum of the two heights.
The time complexity of finding the height of a binary tree is O(n), where n is the number of nodes in
Sum queries on a 2D matrix
Iterate through each query and calculate the sum of elements in the given range
Use prefix sum technique to optimize the solution
Preprocess the matrix to store the sum of elements in each row and column for faster calculation
I applied via LinkedIn and was interviewed before Sep 2021. There were 2 interview rounds.
Easy tree questions from basic DSA sheets
Top trending discussions
posted on 13 Jul 2021
I applied via Company Website and was interviewed before Jul 2020. There were 4 interview rounds.
posted on 3 Nov 2022
I applied via Company Website and was interviewed before Nov 2021. There were 4 interview rounds.
General Aptitude, Reasoning & English
Coding Round with 2 questions for 1 hr
posted on 14 Jun 2021
posted on 30 Jul 2021
I applied via Referral and was interviewed in Jun 2021. There were 3 interview rounds.
posted on 18 Jul 2021
An array is a collection of elements of the same data type, stored in contiguous memory locations.
Arrays have a fixed size and can be accessed using an index.
Elements in an array can be of any data type, including other arrays.
Arrays are commonly used in programming for storing and manipulating data.
Example: int[] numbers = {1, 2, 3, 4, 5};
Example: char[] letters = {'a', 'b', 'c'};
posted on 23 Nov 2022
Quant and verbal questions, along with statistics
Basic array and string questions. Some stack and queue questions was also there.
posted on 21 Aug 2022
15 Aptitude Question
2 coding Question
Time- 1H 30Min
based on 2 reviews
Rating in categories
Software Engineer
1.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Engineer
639
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
548
salaries
| ₹0 L/yr - ₹0 L/yr |
Chief Engineer
377
salaries
| ₹0 L/yr - ₹0 L/yr |
Engineer
322
salaries
| ₹0 L/yr - ₹0 L/yr |
Microsoft Research
IBM Research
Intel
TCS