i
Pepcoding
Filter interviews by
Clear (1)
I applied via Referral and was interviewed before Oct 2022. There were 2 interview rounds.
To invert a binary tree, swap the left and right children of each node recursively.
Start from the root node
Swap the left and right children of the current node
Recursively invert the left subtree
Recursively invert the right subtree
Repeat until all nodes are inverted
Finding the middle element of a LinkedList
Traverse the LinkedList using two pointers, one moving one step at a time and the other moving two steps at a time
When the faster pointer reaches the end of the list, the slower pointer will be at the middle element
If the LinkedList has an even number of elements, there are two middle elements
I applied via Company Website and was interviewed before Sep 2021. There was 1 interview round.
Finding the longest increasing sequence using recursion.
Define a recursive function that takes an array and the current index as parameters.
If the current index is the last index of the array, return 1.
If the current element is greater than the next element, return 1.
If the current element is less than or equal to the next element, recursively call the function with the next index and add 1 to the result.
Compare the re...
The longest increasing sum is the maximum sum of a subsequence of consecutive increasing numbers in an array.
Iterate through the array and keep track of the current sum and the maximum sum seen so far.
If the current element is greater than the previous element, add it to the current sum.
If the current sum is greater than the maximum sum, update the maximum sum.
Return the maximum sum.
Example: For the array [1, 2, 3, 2, ...
Top trending discussions
I applied via LinkedIn and was interviewed before Dec 2023. There were 2 interview rounds.
Knowledge based questions
An online portal with MCQ questions of mathematics
I applied via Referral and was interviewed in Apr 2021. There were 3 interview rounds.
I applied via Approached by Company and was interviewed in Jun 2023. There were 4 interview rounds.
I will discuss the current political issues and leadership and will talk about the country's economy.
Today, there will be a case study on the condition of India at the world level and we will talk about issues related to India.
India should move towards a mixed economy combining elements of capitalism and timeism.
India should embrace capitalism to promote economic growth and innovation.
However, it should also prioritize timeism to ensure social welfare and equitable distribution of resources.
A mixed economy can strike a balance between individual freedom and collective well-being.
Examples of successful mixed economies include countries like S...
I applied via Indeed and was interviewed in Nov 2023. There were 2 interview rounds.
based on 1 interview
Interview experience
based on 8 reviews
Rating in categories
Product Engineer
14
salaries
| ₹0 L/yr - ₹0 L/yr |
Teaching Assistant
11
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
10
salaries
| ₹0 L/yr - ₹0 L/yr |
Front end Developer
8
salaries
| ₹0 L/yr - ₹0 L/yr |
Business Development Executive
8
salaries
| ₹0 L/yr - ₹0 L/yr |
Coding Ninjas
GeeksForGeeks
upGrad
Simplilearn