L6. Sieve of Eratosthenes | Maths Playlist

  Рет қаралды 31,478

take U forward

take U forward

4 ай бұрын

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

Пікірлер: 46
@keshavbadhekar
@keshavbadhekar Ай бұрын
Sieve of Era&%#.... something like that🤣🤣🤣 Nice Solution👍 Understood
@rishujeetrai5780
@rishujeetrai5780 21 күн бұрын
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.
@pmanideep39
@pmanideep39 3 ай бұрын
Your explanation is much better than Leetcode editorial
@trailblazer555
@trailblazer555 Ай бұрын
Understood; I'm improving my thought process in every video; Thank you bro;
@stith_pragya
@stith_pragya 3 ай бұрын
Understood........Thank You So Much for this wonderful video.............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@ChannelBCD
@ChannelBCD 6 күн бұрын
Bro explained it smooth like butter
@ipshitatandon5134
@ipshitatandon5134 Ай бұрын
Such a nice method!
@jivrajsinghshekhawat
@jivrajsinghshekhawat 2 ай бұрын
Thanks brother, you have got very nice teaching skills
@codeman3828
@codeman3828 3 ай бұрын
Great explanation. Understood
@prabhakaran5542
@prabhakaran5542 2 күн бұрын
Understood ❤
@Therealtalk123
@Therealtalk123 4 ай бұрын
Nice effort sir.. 👌 😊
@saicharanthammi143
@saicharanthammi143 4 ай бұрын
Excellent explanation sir
@sanchitsanyam7359
@sanchitsanyam7359 Ай бұрын
Striver Sir , i am your Jabra fan
@taqimustafa7665
@taqimustafa7665 4 ай бұрын
Arrays.fill(prime,1) in java
@2amCoder
@2amCoder 4 ай бұрын
nice !
@AkOp-bf9vm
@AkOp-bf9vm 2 ай бұрын
IF WE INITIALISE VECTOR LIKE { vector arr(n+1,1)} DOES IT STILL CONSIDERED AS O(N) TIME???
@kshitijjha6737
@kshitijjha6737 2 ай бұрын
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.
@drishtirai864
@drishtirai864 4 ай бұрын
Understood :))
@yashkalia2311
@yashkalia2311 Ай бұрын
Great
@chiragbansod8252
@chiragbansod8252 4 ай бұрын
understood
@user-vg5tz5lu9e
@user-vg5tz5lu9e 4 ай бұрын
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
@vipuljamod4119
@vipuljamod4119 Ай бұрын
Waiting for string playlist...,
@muhammadfarhaan6951
@muhammadfarhaan6951 4 ай бұрын
Can you please bring a video on How to actually derive the time complexity based on maths, that'll be more helpful.
@jayant9416
@jayant9416 3 ай бұрын
already have a vdo on his channel
@hashcodez757
@hashcodez757 2 ай бұрын
just watch his lectures and in each one he explains in depth....aise hi seekh jaoge bhot kch.....same as me
@tharungr7701
@tharungr7701 2 ай бұрын
understand sieve of eras thaas theens :)
@Shivi32590
@Shivi32590 Ай бұрын
thank you
@user-qj6vm9si8x
@user-qj6vm9si8x 13 күн бұрын
Instead of filling the arrays with one and then changing them to zeros, isn't it better to use the default zero and change it to 1 accordingly?
@valagautam727
@valagautam727 8 күн бұрын
It is not going to change anything. By default all elements of array are not zero some of them are zero and some of them are one or garbage so we have to fill all the elements with zero which is same .
@codevibez2023
@codevibez2023 4 ай бұрын
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
@codeman3828
@codeman3828 3 ай бұрын
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
@codevibez2023
@codevibez2023 3 ай бұрын
@@codeman3828 thank you for your kind advice..
@user-oz2eu7rs8v
@user-oz2eu7rs8v 3 ай бұрын
@@codeman3828 Really appreciative
@adityabirdy8996
@adityabirdy8996 4 ай бұрын
Sir i have just started a2z how much time should it take to complete
@ravindrarangwani102
@ravindrarangwani102 4 ай бұрын
It would take around 3-4 months If you study 4 hours daily
@28deekshitha.b78
@28deekshitha.b78 3 ай бұрын
Why the array has taken n+1
@Kumaar_Ritesh
@Kumaar_Ritesh 2 ай бұрын
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.
@tej.askamble
@tej.askamble 2 ай бұрын
31/05 Revise
@sainathpatil2674
@sainathpatil2674 2 ай бұрын
if n is as big as 10^7 it will give TLE
@animefan4841
@animefan4841 Ай бұрын
nahh it will not
@reddygopichand2002
@reddygopichand2002 4 ай бұрын
Understood ❤
@abhinanda7049
@abhinanda7049 4 ай бұрын
understood
@anshgupta8860
@anshgupta8860 2 ай бұрын
understood
@shaiksoofi3741
@shaiksoofi3741 Ай бұрын
understood
@hardikpatel352
@hardikpatel352 Ай бұрын
understood
@shashankvashishtha4454
@shashankvashishtha4454 24 күн бұрын
understood
L7. Count Prime in a range L-R | Maths Playlist
16:39
take U forward
Рет қаралды 10 М.
How to Find VERY BIG Prime Numbers?
26:00
Digital Genius
Рет қаралды 127 М.
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 47 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 1,7 МЛН
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 462 М.
Will the TECH HIRING MARKET recover ever ? JOBS reducing!!
12:20
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
L12. Largest Rectangle in Histogram | Stack and Queue Playlist
31:42
L4. Print all prime factors of a Number | Maths Playlist
18:53
take U forward
Рет қаралды 28 М.
But what is a convolution?
23:01
3Blue1Brown
Рет қаралды 2,6 МЛН
L3. Check if a Number if Prime or not | Maths Playlist
7:10
take U forward
Рет қаралды 19 М.
L5 | Segmented Sieve I Raj (Striver) | Prime Numbers for CP
35:45
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 47 МЛН