L6. Sieve of Eratosthenes | Maths Playlist
HTML-код
- Опубликовано: 16 мар 2024
- Notes/Codes/Problem links under day 8 of A2Z DSA Course: takeuforward.org/strivers-a2z...
Entire playlist: • Maths Playlist | Langu...
Follow us on our other social media handles: linktr.ee/takeuforward
Sieve of Era&%#.... something like that🤣🤣🤣
Nice Solution👍
Understood
So we did all that to decrease the TC from O(N*sqrtN) to O(N*sqrt(sqrtN) + 2N) and gained an additional SC of O(N) which is actually pretty impressive when it comes ridiculously large values of N.
For example, for N=2^32, first approach will do 2^48 operations while the latter will do 2^42 operations, which is a great deal lesser than the first one.
Understood........Thank You So Much for this wonderful video.............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
Your explanation is much better than Leetcode editorial
Understood; I'm improving my thought process in every video; Thank you bro;
Great explanation. Understood
Such a nice method!
Thanks brother, you have got very nice teaching skills
Excellent explanation sir
Nice effort sir.. 👌 😊
Arrays.fill(prime,1) in java
Understood ❤
nice !
IF WE INITIALISE VECTOR LIKE { vector arr(n+1,1)} DOES IT STILL CONSIDERED AS O(N) TIME???
Yes as it is not exact time taken.. It is just an asymptotic notation of time taken, an assumption of how fast the code will run.
Striver Sir , i am your Jabra fan
Great
understood
Sir I visited your website after Harkirat sir's webinar, But I can't able to singup in takeuforward website also no content showing loading AToZ - DSA page, why is it sir, help me out
Understood :))
thank you
Waiting for string playlist...,
understand sieve of eras thaas theens :)
Can you please bring a video on How to actually derive the time complexity based on maths, that'll be more helpful.
already have a vdo on his channel
just watch his lectures and in each one he explains in depth....aise hi seekh jaoge bhot kch.....same as me
When it will be complete?? I am confused to start . I am thinking to start this series but when it will completely end of this batch
Hey i know i am late but just an advice. Start with the A-Z sheet as soon as possible without waiting for it to be finished. Striver has left only 4-5 topics but rest 13-14 are there with detailed explanation. If you are in college trust me you will never get this time back again. It will be very hard to study DSA along with job. I am working professional and it is very difficult to study when you are tired because of work and only have weekends to study long. So fight your procrastination and start studying. All the best
@@codeman3828 thank you for your kind advice..
@@codeman3828 Really appreciative
Why the array has taken n+1
For n = 31, we get an indexing till 30 right ? So, while printing the indices we have elements till 30 and not 29, that has been done. Hope it's clear now.
31/05 Revise
Sir i have just started a2z how much time should it take to complete
It would take around 3-4 months
If you study 4 hours daily
if n is as big as 10^7 it will give TLE
nahh it will not
understood
understood
understood
understood
understood