i
Pepcoding
Filter interviews by
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
To reverse an array, use a loop to swap the first and last elements until the middle is reached. To find elements in an array, use a loop to compare each element to the desired value.
To reverse an array, initialize two pointers at the beginning and end of the array. Swap the elements at the pointers and move the pointers towards the middle until they meet.
To find elements in an array, use a loop to iterate through each...
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, ...
Pepcoding interview questions for popular designations
Top trending discussions
posted on 18 Jan 2025
I am a motivated and results-driven individual with a background in sales and business development.
I have a Bachelor's degree in Business Administration.
I have experience working in sales for 3 years.
I have successfully developed new business opportunities for my previous company.
I am proficient in market research and analysis.
I am a strong communicator and negotiator.
Short-term goal is to gain experience in business development and contribute to company growth. Long-term goal is to advance to a leadership role and drive strategic initiatives.
Short-term goal: Gain experience in business development through hands-on projects and client interactions.
Short-term goal: Contribute to company growth by identifying new business opportunities and developing relationships with potential clien...
I expect a challenging role with opportunities for growth and learning.
Opportunities for career advancement
Challenging projects to work on
Supportive team environment
Training and development programs
Competitive salary and benefits
I come from a close-knit family of five, with supportive parents and two siblings.
My parents have always encouraged me to pursue my goals and dreams.
I have two siblings, an older brother who works in finance and a younger sister who is studying to become a doctor.
We often spend weekends together, going on hikes or having family dinners.
posted on 21 Jan 2025
I was interviewed in Dec 2024.
Questions were about my work experience, training, and class management strategies. i was also asked how would i choreograph a theme-based dance.
posted on 17 Feb 2025
I was interviewed in Jan 2025.
First question 1. General question.
posted on 30 Nov 2024
I applied via Approached by Company and was interviewed in Oct 2024. There were 2 interview rounds.
useMemo is used to memoize a value, while useCallback is used to memoize a function.
useMemo is used to memoize a computed value and recompute it only when its dependencies change.
useCallback is used to memoize a callback function and prevent unnecessary re-renders.
Example: useMemo can be used to memoize the result of a complex computation, while useCallback can be used to memoize an event handler function.
Error handling in JavaScript involves using try-catch blocks, throwing errors, and using error objects.
Use try-catch blocks to catch errors and handle them gracefully
Throw errors using the throw keyword to indicate when something goes wrong
Use error objects like Error, SyntaxError, TypeError, etc. to provide more information about the error
Handle asynchronous errors using promises and the .catch() method
Promises are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in JavaScript.
Promise.all() takes an array of promises and returns a single promise that resolves when all of the input promises have resolved.
A polyfill for Promise.all() can be implemented using a combination of Promise and Array.prototype.reduce().
Frontend assignment make the CRUD application using of reactj.s
posted on 19 Jan 2025
I applied via LinkedIn and was interviewed in Dec 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
based on 2 interviews
Interview experience
based on 63 reviews
Rating in categories
Product Engineer
14
salaries
| ₹4 L/yr - ₹9 L/yr |
Teaching Assistant
11
salaries
| ₹1 L/yr - ₹7.6 L/yr |
Software Developer
10
salaries
| ₹1.8 L/yr - ₹7.5 L/yr |
Front end Developer
8
salaries
| ₹1 L/yr - ₹8.4 L/yr |
Business Development Executive
8
salaries
| ₹2.2 L/yr - ₹4.3 L/yr |
Coding Ninjas
GeeksForGeeks
upGrad
Simplilearn