react-optimization.pdf
680 KB
Preparing for an interview in React? Checkout Optimization related questions. Go through this pdf, found this on linkedin
π1
Checkout these leetcode questions asked in Network 18, Full Stack Interview.
https://youtu.be/RsoWDqOh0aE?feature=shared
https://youtu.be/PUaWtILPLNA?feature=shared
https://youtu.be/RsoWDqOh0aE?feature=shared
https://youtu.be/PUaWtILPLNA?feature=shared
YouTube
LeetCode Problem: 162. Find Peak Element | Java Solution
Problem Statement: Given a 0-indexed integer array nums, find a peak element, and return its index. If the array contains multiple peaks, return the index to any of the peaks. | Java Solution
https://leetcode.com/problems/find-peak-element/description/
β¦
https://leetcode.com/problems/find-peak-element/description/
β¦
I was asked these crucial React questions at Mai Labs. These are the kinds of questions you encounter when you face issues while coding in React and keep exploring solutions.
https://youtu.be/Sx5YFM6OsOk?feature=shared
https://youtu.be/9suUE1Ro7Zo?feature=shared
https://youtu.be/Sx5YFM6OsOk?feature=shared
https://youtu.be/9suUE1Ro7Zo?feature=shared
YouTube
React JS Machine Coding Interview Questions - useImperativeHandle with an Example
This hook is useful when you want to expose some methods or properties from a child component to the parent component without exposing the entire child component instance.
π₯ Complete playlist of React Interview Questions
https://www.youtube.com/watch?v=β¦
π₯ Complete playlist of React Interview Questions
https://www.youtube.com/watch?v=β¦
During the managerial round at Aakash + Byjus, I was asked to solve a problem; powers of 2. Although it seems like a basic question, they asked me to write a solution using recursion and divide-and-conquer technique.
https://youtu.be/HjmGKckrBF8?feature=shared
https://youtu.be/HjmGKckrBF8?feature=shared
YouTube
LeetCode Problem: 231. Power of Two | Java Solution
Given an integer n, return true if it is a power of two. Otherwise, return false.
https://leetcode.com/problems/power-of-two
https://leetcode.com/problems/power-of-three
https://leetcode.com/problems/power-of-four
π₯ Complete playlist of LeetCode Problemsβ¦
https://leetcode.com/problems/power-of-two
https://leetcode.com/problems/power-of-three
https://leetcode.com/problems/power-of-four
π₯ Complete playlist of LeetCode Problemsβ¦
JavaScript Array Based Coding Question asked in a frontend Interview
Remove duplicates from the Array
[1,2,3,1,2,4,4,5,6,7,8,9]
Remove duplicates from the Array
[1,2,3,1,2,4,4,5,6,7,8,9]
JavaScript Question asked in a frontend Interview
Write the code for Infinite Function Currying in JavaScript
multiply(2)(2,3,4,5)(4)(6)(8)()
Write the code for Infinite Function Currying in JavaScript
multiply(2)(2,3,4,5)(4)(6)(8)()
JavaScript Question asked in a frontend Interview
Write the code for Infinite Function Currying in JavaScript
multiply(2)(2)(4)(6)(8)()
Write the code for Infinite Function Currying in JavaScript
multiply(2)(2)(4)(6)(8)()
1. What is Event Propagation in JavaScript?
2. What are the phases of Event Propagation?
3. How can we stop Event Propagation?
4. What is Event Delegation?
2. What are the phases of Event Propagation?
3. How can we stop Event Propagation?
4. What is Event Delegation?
π1
Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements.
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]
What will be the output?
var a = 1;
function x(params) {
console.log(a)
if(a) var a = 9;
console.log(a)
}
x(10)
var a = 1;
function x(params) {
console.log(a)
if(a) var a = 9;
console.log(a)
}
x(10)
A Teacher of California institute of Technology takes people on yearly trips to museums of science and development for a mind refreshing tour. Total of children depend on their passing percentage and people appearing for the exam. For every section of the museum, the teacher always stands in line and checks if anyone is missing from the queue. All students will be standing in no order in the queue.
Write a code to find the missing child from the queue
Total Students:
Jina, Jeniffer, John, Ronald, Jacob, Joe, Ralph, Surya, Scully, Nina, Scarlet
In Applied science queue standing people
Ronald, Ralph, Scully, Scarlet, Jina, Jeniffer, Joe, Nina, Surya, Jacob
Write a code to find the missing child from the queue
Total Students:
Jina, Jeniffer, John, Ronald, Jacob, Joe, Ralph, Surya, Scully, Nina, Scarlet
In Applied science queue standing people
Ronald, Ralph, Scully, Scarlet, Jina, Jeniffer, Joe, Nina, Surya, Jacob
π1
Remove duplicates from a sorted non-decreasing Array
input: [1,2,3,3,4,5,5,6]
output: [1,2,3,4,5,6]
input: [1,2,3,3,4,5,5,6]
output: [1,2,3,4,5,6]
π3
These are some questions I faced in my recent interviews. If you're getting ready for a frontend interview, make sure to review and practice these questions. I'll be sharing more questions over the next few days.