For improvement we can use map of map i.e. create a map for of eventName which will have a new map of callbacks as it's value. The value for map of callback will be no.of time the callback is used for that particular event. Current Time complexity Subscribe : O(1) Release : O(n) Emit : O(n) n= no of callbacks for a particular event
Hi Sourav, Are you sure that you will be completing this series? I mean if you have planned to push videos in this series consistently, I can make a schedule to watch your video as soon as it comes. Actually I have a full time job also so I need to plan it accordingly. I don't want to ask you more but if we can know how many days this series will take ?
@@akashddeepchitransh4537 Every week you can expect ~2 videos on this. Thats the pace I can promise. Because I have a full time job as well. Hope this helps
Sir, I completed my BCA in August. Sir, I have pretty good knowledge on the front end. Sir, please provide what type of project I should do and one more thing: how to build an online connection through LinkedIn or X.
This is pretty complicated question but you should try to create clones like Giphy, Netflix etc if you are a beginner. Otherwise do some more valuable projects like building a real time video call app, Chat app, build cool frontend widgets like e.g When you hover over a player seekbar, you see a frame of image related to that timestamp, Image carousels.
Can you guess the time complexity of both “subscribe” and “emit” functions ? How can you improve it
For improvement we can use map of map i.e. create a map for of eventName which will have a new map of callbacks as it's value.
The value for map of callback will be no.of time the callback is used for that particular event.
Current Time complexity
Subscribe : O(1)
Release : O(n)
Emit : O(n)
n= no of callbacks for a particular event
@@s2sengar Sounds perfect
awesome, waiting for more ❤
amazing video...waiting for the next ones..
More to come!
Hi Sourav,
Are you sure that you will be completing this series?
I mean if you have planned to push videos in this series consistently, I can make a schedule to watch your video as soon as it comes.
Actually I have a full time job also so I need to plan it accordingly.
I don't want to ask you more but if we can know how many days this series will take ?
@@akashddeepchitransh4537 Every week you can expect ~2 videos on this. Thats the pace I can promise. Because I have a full time job as well.
Hope this helps
And this much I can promise that I will be completing this series
@@sourav_singh_diaries Yes definitely it helps Sourav.
I'll be following this series consistently. And thanks for the response 🙂
Sir, I completed my BCA in August. Sir, I have pretty good knowledge on the front end. Sir, please provide what type of project I should do and one more thing: how to build an online connection through LinkedIn or X.
This is pretty complicated question but you should try to create clones like Giphy, Netflix etc if you are a beginner.
Otherwise do some more valuable projects like building a real time video call app, Chat app, build cool frontend widgets like e.g When you hover over a player seekbar, you see a frame of image related to that timestamp, Image carousels.
Thank you so much sir @@sourav_singh_diaries
Sir I have completed JavaScript tutorial now can I have to do project or js question 🙏🙏🙏🙏🙏🙏🙏🙏 pls reply
Start with JS coding from Big Frontend dev
bro ye series AtoZ complete kr dena plz
@@jhonsnow534 it will happen
O(n)
You can specify for both subscribe and emit function ?