Arrays - Data Structures and Algorithms in Javascript | Frontend DSA Interview Questions

preview_player
Показать описание

In this video, we will dive into Array methods in JavaScript and explore their various use cases. We will also discuss commonly DSA interview questions related to Arrays and how to solve them using JavaScript.
This is the most Entertaining and Knowledge Packed Data Structures and Algorithms in Javascript Interview Course on Youtube !

#javascriptinterviewquestions #datastructures #datastructuresandalgorithms

🟦 Follow me on Twitter and u will clear your interview 🤓 -

➡️ Source Code -

📄 Homework Questions ( I will make videos on these questions as well ) -

🔗 Complete Data Structures and Algorithms with JS Course -

🔗 Big O Notation Video -

🔗 Functions Video -

🔗 Map, filter and reducr video -

🔗 Frontend Machine Coding Interview Series -

🔗 Cars24 Interview Experience -

🔗 Unacademy Interview Experience -

🔗 Tazorpay Interview Experience -

🔗 MERN Stack Tutorial with Redux -

🔗 React Beginner's Project Tutorials -

-------------------------------------------------------------------------

00:00:00 Intro
00:00:54 Creating an Array
00:01:34 Initializing an Array
00:02:24 What all can array store?
00:03:24 Array length Property
00:03:54 Add / Remove items in Array
00:03:58 Push and Pop method
00:05:32 shift and unshift method
00:06:29 Looping the Arrays
00:06:49 "for" loop
00:07:37 "while" loop
00:08:09 Inbuilt Traversal Methods
00:08:25 map() in Arrays
00:10:14 filter() in Arrays
00:10:59 reduce() in Arrays
00:12:55 some() in Arrays
00:13:25 every() in Arrays
00:14:01 find() in Arrays
00:14:42 Spread and Rest Operators
00:17:51 More Array Methods
00:17:56 concat() in Arrays
00:19:19 slice() in Arrays
00:21:13 splice() in Arrays
00:22:47 fill() in Arrays
00:23:58 findIndex() in Arrays
00:25:09 flat() in Arrays
00:26:19 Technical Glitch
00:26:48 reverse() in Arrays
00:27:18 sort() in Arrays
00:29:44 DSA Interview Questions on Array in Javascript
00:29:50 Ques 1 - Second Largest Number
00:30:28 Solution #1 - Brute Force Approach
00:34:46 Time Complexity of this Algorithm
00:36:33 Solution #2 - Optimised Approach
00:39:30 Explanation of Solution #2
00:41:29 Time Complexity of this Algorithm
00:42:26 Space Complexity of this Algorithm
00:42:49 Ques 2 - Rotate Array by K
00:43:51 Solution #1 - Using Inbuilt JS Functions
00:48:40 Time Complexity of this Algorithm
00:49:24 Solution #2 - Without Inbuilt Functions
00:56:26 Time Complexity of this Algorithm
00:57:29 Space Complexity of this Algorithm
00:58:16 Ques 3 - Remove Duplicates from Sorted Array
00:59:20 Solution #1 - With Inbuilt JS Methods
01:03:08 Time Complexity of this Algorithm
01:03:32 Space Complexity of this Algorithm
01:03:41 Solution #2 - Two Pointer Approach
01:07:28 Explanation of above algorithm
01:10:22 Time / Space Complexity of this Algorithm

-------------------------------------------------------------------------

⭐ Support the channel and learn from me One on One -

Special Thanks to our members -
Рекомендации по теме
Комментарии
Автор

If this video gets good response, I will make more DSA videos, so do share it with others 🔥

RoadsideCoder
Автор

please please please dont quit this course....please keep uploading

shivamkumar-zzkp
Автор

// Ques 2 - Rotate Array by K

// Given an integer array nums, rotate the array to the right by k steps,

// where k is non - negative.

// Input: nums = [1, 2, 3, 4, 5, 6, 71, k = 3
// Input: nums = (-1, -100, 3, 99], k = 2Output: [5, 6, 7, 1, 2, 3, 4]Output: [3, 99, -1, -100]

solution :
function rotateIT(nums, a) {
for (let i = 0; i < a; i++) {
nums.unshift(nums.pop());
}
return nums;
}
let num1 = [1, 2, 3, 4, 5, 6, 7]
let num2 = [-1, -22, 33, 4 - 2]

console.log(rotateIT(num1, 3));

damandeepsingh
Автор

size > k || size < k should also be there in case, size < k 49:50

chinmaay
Автор

Excellent session!
Looking forward to the whole series.

Also,
#FreeAlgoAgarwal 🚩

Android-
Автор

Wow, ab to video aur acchi hoti ja rahi hai day by day

purusharma
Автор

Khatrnak bhaii.. All array clear in one video my frnd also thx me for your video🎉❤

ThelookAt
Автор

Great content, would be awesome if you could upload more and continue with DSA's (going into string manipulation and potentially some common toy problems in JS!) 🙏👑

#FreeAlgoAgarwal

lucaliebenberg
Автор

best video..please continue this great work

dipalikumari
Автор

I have purchased DSA JS e-Book, really helpful...direct links to leetcode....thank you for preparing

tpadma
Автор

Moving forward from that joke was a better decision than anything else

wizzy
Автор

thanks bro . we really needed quality dsa guidance in Javascript

VarunKapoor-tcje
Автор

Hats off to you man ❤, the way you're explaining is so simple to understand any methods in this array video

shubhamsharaff
Автор

Bro, thanks a lot for making this video. I've been waiting to watch a tutorial that covers most of the functions with arrays.

avinashgardasalgonquin
Автор

Thank you so much brother your all videos are very needful...!!!

gauravdhenge
Автор

✨Nice Explaintion of the and logic its very helpful plz do such videos thank you fpr knowledge✨

hushjem
Автор

Thumbnail is very good 🔥 and also the concepts are well explained in organised manner. Problems on those concepts make more understanding.

ajitpatil
Автор

How did you calculate the time complexity of splice method to be O(1) at 1:03:15? In my opinion it should be O(n) since it has to modify the whole array.

ravanabuddha
Автор

Very knowledgable content, almost all my approaches are similar to yours !! ❤😎

ashishmadan
Автор

Please make strings problems they really help in interview as well as general coding

kedarkulkarni