Тёмный

How to create Linked List in Javascript | DSA in Javascript Series 

Sourav Singh Diaries
Подписаться 13 тыс.
Просмотров 586
50% 1

Опубликовано:

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@sourav_singh_diaries
@sourav_singh_diaries 3 месяца назад
Link to Linked List Code : leetcode.com/playground/3HcXGLFf
@sumanthprabhu11
@sumanthprabhu11 2 месяца назад
5:10 yes pls make a video on 'this' keyword
@simplyaniket844
@simplyaniket844 3 месяца назад
insightful :)
@apaarjain
@apaarjain 3 месяца назад
Thanks a lot for making the video. I think you missed a part of your video during editing at the timestamp 3.36. I had to rewatch to understand. My kind request is to keep such parts. I also have a request- May i also ask a question to validate my understanding? The this.start (that you added to the method “add” later in the video) is the old current start, and the other this.start is the new addition to be put in the start. Is that correct?
@sourav_singh_diaries
@sourav_singh_diaries 3 месяца назад
Yes there was small cut which I covered in next example. So Addition of node in start of LinkedList requires 3 steps : 1. Create a node, name it current node 2. The currentNode should point its “next” to the start of linkedList. So we did currentNode.nextNode = this.start 3. Now currentNode should become the start of LinkedList this.start = currentNode Does it make sense now? “this” here means the instance of linkedList. This in a function always points the object in creation. Here the object is “linkedList”
@sourav_singh_diaries
@sourav_singh_diaries 3 месяца назад
@@apaarjain ^
@apaarjain
@apaarjain 3 месяца назад
@@sourav_singh_diaries Thanks again. Your style is crisp. I wish you all the best. I am a beginner. If you wish to make a tutorial video for js, I would request you to watch the tutorial by Dr. Angela Yu on Udemy. I believe you are surely gonna do a huge favour to Indian students.
@sourav_singh_diaries
@sourav_singh_diaries 3 месяца назад
@@apaarjain There’s lot coming. Thanks for feedback
@WebBlows
@WebBlows 3 месяца назад
any chance for 1:1 Talk Saurabh ji ? need some guidance
@sourav_singh_diaries
@sourav_singh_diaries 3 месяца назад
We can. topmate.io/sourav_singh11
@paarthagarwal1540
@paarthagarwal1540 2 месяца назад
Hey I think there is some mistake maybe I am completely wrong pls correct me.. Like if we add 5 and then we add 6 we are getting this output LinkedList { start: Node { value: 6, nextNode: Node { value: 5, nextNode: null } }, add: [Function (anonymous)] } but should n't we get something like this LinkedList { start: Node { value: 5, nextNode: Node { value: 6, nextNode: null } }, add: [Function (anonymous)] } tbh I got confused here a bit pls do tell
@sourav_singh_diaries
@sourav_singh_diaries 2 месяца назад
The output is correct. It’s because "add" function adds the node at the start of the linkedList. This is what we assumed for the behaviour of "add" function. add5 add6 So the output would be : LinkedList { start: Node { value: 6, nextNode: Node { value: 5, nextNode: null } }, add: [Function (anonymous)] }
@Anmolgupta-coder
@Anmolgupta-coder 3 месяца назад
Sir can you make long lecture please it's a request ❤😅
@sourav_singh_diaries
@sourav_singh_diaries 3 месяца назад
Yes wait for it. The journey has just started
@WebBlows
@WebBlows 3 месяца назад
@@sourav_singh_diaries ok boss. lets follow you....
@udy1897
@udy1897 3 месяца назад
Keep making short videos long lectures are to hectic
@sourav_singh_diaries
@sourav_singh_diaries 3 месяца назад
@@udy1897 Let me know your feedback for first couple of videos . If something needs to be improved for upcoming ones
@udy1897
@udy1897 3 месяца назад
​@@sourav_singh_diaries Acc to me both lecture was good. Can you please upload like top JS and ReactJS interview questions that are asked in interviews from intermediate to advanced level?
@sourav_singh_diaries
@sourav_singh_diaries 3 месяца назад
Yes once now that we are ready with some basics. I will do this. It will be very interesting
@brajagopalmukherjee1588
@brajagopalmukherjee1588 3 месяца назад
Bhaiya thora sa 30 min ka video bana dana ? Of possible
@sourav_singh_diaries
@sourav_singh_diaries 3 месяца назад
Can make. Making long videos are easy. But many don’t have the patience. Thanks for feedback but if you did not understand any part let me know
@brajagopalmukherjee1588
@brajagopalmukherjee1588 3 месяца назад
@@sourav_singh_diaries Ok bhaiya , Actually small video pa patience nhi rah pata .. Understand every part of it
@sushilingole8448
@sushilingole8448 3 месяца назад
​@@brajagopalmukherjee1588Bhai issi video ko slow speed pe dekhlo, aapki problem solve ho jayegi
Далее
skibidi toilet 77 (part 4)
05:20
Просмотров 11 млн