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

  Рет қаралды 21,850

RoadsideCoder

RoadsideCoder

Күн бұрын

Пікірлер: 43
@RoadsideCoder
@RoadsideCoder Жыл бұрын
➡ Download my DSA with JS E-Book - topmate.io/roadsidecoder/491565 👤 Join the RoadsideCoder Community Discord - discord.gg/2ecgDwx5EE 🟪 Follow me on Instagram and u will clear your interview 🤓 - instagram.com/roadsidecoder/
@avinashkumar8306
@avinashkumar8306 Жыл бұрын
Please explain this with a real world example as well, like if we are developing a website with React.JS, where this linked list will be useful, how can we use this in Frontend development. This way, this will be more useful and will be more understandable. Thank you.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Yes, I will explain that in my next video🔥
@mohammadabbas1623
@mohammadabbas1623 Жыл бұрын
I'm relying on ur channel for Frontend Interviews ❤
@shivendradwivedi8887
@shivendradwivedi8887 Ай бұрын
While deleting from random index we can't include size because if size is 5 then max index is 4, so if the given index to delete is 5 , then it will give error.
@RavindraSingh-lp9pl
@RavindraSingh-lp9pl Жыл бұрын
@Roadside coder-- I was recently asked below interview question- Display the bellow 2 cart items separately in the list on a screen e.g cartA = ["apples", "bananas", "grapes", "oranges", "pears", "pineapple"] cartB = ["potatoes", "beans", "carrots", "spinnach", "kale", "broccoli"] Add a button on the screen, on click of the button swap only the odd item from cart A, with odd items in cart B. Can you please give me solution for above problem please?
@ankittyagi6706
@ankittyagi6706 Жыл бұрын
const cartA = ["apples", "bananas", "grapes", "oranges", "pears", "pineapple"] const cartB = ["potatoes", "beans", "carrots", "spinnach", "kale", "broccoli"] function swap(){ for(let i=0; i
@ankittyagi6706
@ankittyagi6706 Жыл бұрын
or just don't return anything, it will uodate the orignal array
@ankittyagi6706
@ankittyagi6706 Жыл бұрын
import React, {useState} from 'react' import ReactDOM from 'react-dom' function App() { const [cartA, setCartA] = useState([ 'apples', 'bananas', 'grapes', 'oranges', 'pears', 'pineapple', ]) const [cartB, setCartB] = useState([ 'potatoes', 'beans', 'carrots', 'spinnach', 'kale', 'broccoli', ]) function swap(cartA, cartB) { const tempA = [...cartA] const tempB = [...cartB] for (let i = 0; i < cartA.length; i++) { if (i % 2 !== 0) { ;[tempA[i], tempB[i]] = [tempB[i], tempA[i]] } } setCartA(tempA) setCartB(tempB) } return ( {cartA?.map((val, index) => ( {val} ))} {cartB?.map((val, index) => ( {val} ))} swap(cartA, cartB)}>Swap ) } ReactDOM.render(, document.getElementById('root'))
@ankittyagi6706
@ankittyagi6706 Жыл бұрын
run it inside codesandbox
@RavindraSingh-lp9pl
@RavindraSingh-lp9pl Жыл бұрын
@@ankittyagi6706 thanks bro
@UmeshChandraVankadhara
@UmeshChandraVankadhara 6 ай бұрын
Hi Piyush, please make a video on doubly and circular linked list also .
@ritvijverma2420
@ritvijverma2420 3 ай бұрын
Plz upload next Videos & plz complete this series...
@vridhiwadhawan6523
@vridhiwadhawan6523 3 ай бұрын
please make a video on class and constructor @RoadsideCoder
@prashantnath4967
@prashantnath4967 Жыл бұрын
Hey piyush it would be great if you could create an oop in js which would contain classes concept and all ❤
@caresbruh
@caresbruh Жыл бұрын
there are already enough source material avaiable for oops on the Internet
@aadhi9857
@aadhi9857 5 ай бұрын
Hi sir , First of all thankyou for the great video its help more to fullfill my doubts . In the addAt function have MISTAKE when we adding a new value into the first position of linkedlist we cant add becouse you have already written a condition for that if index===0 its a invalid text . Sir please chack this and update me becouse i have lerning this into only looking you video . I will wait for your replay to complete my study
@venkateshak.s9290
@venkateshak.s9290 7 ай бұрын
Its really a good video to understand singly linked list. Pls also make video on double and circular linked list.
@RoadsideCoder
@RoadsideCoder 7 ай бұрын
already made
@motivationalmusic3721
@motivationalmusic3721 7 ай бұрын
Circular linked list 👍👍 please made a video
@mohammedfaseeullah6095
@mohammedfaseeullah6095 Жыл бұрын
Bro ,,.. make a video on class and constructors... Doubly and circular linked list too..
@motivationalmusic3721
@motivationalmusic3721 7 ай бұрын
This DSA sheet is only for javascript DSA or for any interview exam ? Please reply
@ashutoshanndate3222
@ashutoshanndate3222 Жыл бұрын
Javascript king bro❤
@javascript-sl4wv
@javascript-sl4wv 9 ай бұрын
sir, the removeat (index) function is not working
@ARAVIN007
@ARAVIN007 Жыл бұрын
Bro pls upload a separate video for prototype, inheritance, class
@shortflicks83
@shortflicks83 Жыл бұрын
Love you man please upload videos fastly as much as possible
@mayurghuge8846
@mayurghuge8846 3 ай бұрын
Thank you.
@mohammedfaseeullah6095
@mohammedfaseeullah6095 Жыл бұрын
Bro ,, is your dsa book suitable for mern stack interview....
@RoadsideCoder
@RoadsideCoder Жыл бұрын
If that company has a DSA round, then yes
@caresbruh
@caresbruh Жыл бұрын
great video, but why did you release another DSA sheet when there are already hundreds of sheets available on the internet?
@RoadsideCoder
@RoadsideCoder Жыл бұрын
because this one is specific to Frontend interviews
@Maxthompson630
@Maxthompson630 Жыл бұрын
@@RoadsideCoder i bought your sheet brother but it is not openinng
@ujjwalnagar9582
@ujjwalnagar9582 Жыл бұрын
@@Maxthompson630 I had the same issue. Just add the .pdf extension to the name of the file.
@harshalpatil2568
@harshalpatil2568 10 ай бұрын
Perfect ❤
@anshunarayan8056
@anshunarayan8056 Жыл бұрын
Bhai non-linear data-structure wale pr bhi video bnana aap jaldi
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Yes, on the way
@chinmayjain9705
@chinmayjain9705 9 ай бұрын
first seen here then c++ linklist then again this video 😅 finally i got it 😂😂
@chandruloganathan3725
@chandruloganathan3725 Жыл бұрын
Bro before solving "Linked List" please tell how come there is comments in the videos which is 2 and 3 days old but for me showing video is realised just 2hrs before🤔🤔🤔
@RoadsideCoder
@RoadsideCoder Жыл бұрын
I scheduled the video to be uploaded today - 2 days ago, so u can put the reminder in advance
@chandruloganathan3725
@chandruloganathan3725 Жыл бұрын
@@RoadsideCoder Thanks bro doubt cleared
@mohammedfaseeullah6095
@mohammedfaseeullah6095 Жыл бұрын
❤❤🎉 most awaited....
@aadhi9857
@aadhi9857 5 ай бұрын
Hi sir
Linked List in React JS - Real World Application in Frontend 🔥
29:16
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 48 МЛН
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН
Linked List Data Structure | JavaScript
29:36
Traversy Media
Рет қаралды 208 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 243 М.
Linked Lists: Basics in Javascript
16:57
Code Brew Latte
Рет қаралды 2,9 М.
Learn Linked Lists in 13 minutes 🔗
13:24
Bro Code
Рет қаралды 322 М.
How to Check if a User Exists Among Billions! - 4 MUST Know Strategies
12:44
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 48 МЛН