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.
What is Promise in JavaScript and how can you implement a Promise with .then?
What is the output?
console.log(1);
setTimeout(()=>{console.log('setTimeOut')}, 0);
Promise.resolve().then(()=>{
console.log('P1');
}).then(()=>{
console.log('P2');
}).then(()=>{
console.log('P3');
});
console.log(2);
console.log(1);
setTimeout(()=>{console.log('setTimeOut')}, 0);
Promise.resolve().then(()=>{
console.log('P1');
}).then(()=>{
console.log('P2');
}).then(()=>{
console.log('P3');
});
console.log(2);
π2β€1
What is the output?
(function(){
var a = b = 1;
})();
console.log('b', b);
console.log('a', a);
(function(){
var a = b = 1;
})();
console.log('b', b);
console.log('a', a);
What is the output?
console.log(test3);
console.log(test3());
var test3 = function(){return 3;}
console.log(test3);
console.log(test3());
var test3 = function(){return 3;}
What is memoization and how can you memoize a function in JavaScript
Which is more optimized for finding a value in JavaScript: using an object or a map?
π1
Why do we need middleware in Node.js when we can write the same code in controller functions?
Would you like me to create videos covering all the JavaScript interview questions?
Anonymous Poll
88%
Yes, it would be a valuable resource!
12%
No, I'm not preparing for a JavaScript interview
π8
Back with the Node.js series π»
Join me and learn step by step
https://www.youtube.com/playlist?list=PL_6klLfS1WqHJ9c4KBJNw3qKV0zYilwIk
Join me and learn step by step
https://www.youtube.com/playlist?list=PL_6klLfS1WqHJ9c4KBJNw3qKV0zYilwIk
I have completed my Node.js series where I have covered all the essential Node.js topics, including:
* Node.js Fundamentals
* Modules
* File System (FS)
* HTTP Module
* Event Loop
* Streams & Buffers
* Express.js
* Routing
* Middleware
* REST APIs
* MongoDB & Mongoose
* Authentication & JWT
* File Uploads
* Error Handling
* Environment Variables
* MVC Architecture
* Deployment
* And much more.
Join me and learn step by step
https://www.youtube.com/playlist?list=PL_6klLfS1WqHJ9c4KBJNw3qKV0zYilwIk
* Node.js Fundamentals
* Modules
* File System (FS)
* HTTP Module
* Event Loop
* Streams & Buffers
* Express.js
* Routing
* Middleware
* REST APIs
* MongoDB & Mongoose
* Authentication & JWT
* File Uploads
* Error Handling
* Environment Variables
* MVC Architecture
* Deployment
* And much more.
Join me and learn step by step
https://www.youtube.com/playlist?list=PL_6klLfS1WqHJ9c4KBJNw3qKV0zYilwIk
π3
π₯ The DSA journey starts NOW!
Iβve started a brand-new Data Structures & Algorithms series! π
And weβre starting with the most important foundation β BIG O NOTATION.
If youβve ever wondered:
β Why is one solution better than another?
β How do we measure code efficiency?
β What does O(n), O(log n) or O(nΒ²) actually mean?
This first video will make it simple. π―
π¬ DSA Series β Episode 1: Big O Notation
π Watch here: https://youtu.be/XifeSvLhKtk?si=nRVA3uaBdDzVE6mg
More DSA topics coming soon. Stay tuned! ππ₯
Iβve started a brand-new Data Structures & Algorithms series! π
And weβre starting with the most important foundation β BIG O NOTATION.
If youβve ever wondered:
β Why is one solution better than another?
β How do we measure code efficiency?
β What does O(n), O(log n) or O(nΒ²) actually mean?
This first video will make it simple. π―
π¬ DSA Series β Episode 1: Big O Notation
π Watch here: https://youtu.be/XifeSvLhKtk?si=nRVA3uaBdDzVE6mg
More DSA topics coming soon. Stay tuned! ππ₯
YouTube
Big O Notation Explained for Beginners | Time & Space Complexity | DSA #1
Big O Notation is one of the most important concepts you need to understand before learning Data Structures & Algorithms (DSA). In this video, we'll understand Big O Notation from the basics and learn how to analyze the time and space complexity of algorithms.β¦