L6. Sieve of Eratosthenes | Maths Playlist

  Рет қаралды 75,883

take U forward

take U forward

Күн бұрын

Пікірлер: 68
@pmanideep39
@pmanideep39 10 ай бұрын
Your explanation is much better than Leetcode editorial
@keshavbadhekar
@keshavbadhekar 7 ай бұрын
Sieve of Era&%#.... something like that🤣🤣🤣 Nice Solution👍 Understood
@slayer-x2f
@slayer-x2f 5 ай бұрын
I think that was publicity move 😜
@trailblazer555
@trailblazer555 7 ай бұрын
Understood; I'm improving my thought process in every video; Thank you bro;
@ChannelBCD
@ChannelBCD 6 ай бұрын
Bro explained it smooth like butter
@nptel1punith929
@nptel1punith929 5 ай бұрын
if your video doesn't exist for a concept, well it sure that we are going to have hell a lot of trouble in getting the intuition
@stith_pragya
@stith_pragya 9 ай бұрын
Understood........Thank You So Much for this wonderful video.............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@AdityaSingh-uy8ms
@AdityaSingh-uy8ms 5 ай бұрын
UNDERSTOOD every bit ..... Thank u soo much !!
@AkOp-bf9vm
@AkOp-bf9vm 8 ай бұрын
IF WE INITIALISE VECTOR LIKE { vector arr(n+1,1)} DOES IT STILL CONSIDERED AS O(N) TIME???
@kshitijjha6737
@kshitijjha6737 8 ай бұрын
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.
@siddiqabr7110
@siddiqabr7110 3 ай бұрын
The thing is you don't have to you can just think of 0 as primes and mark 1 for non primes
@MO-fg2cm
@MO-fg2cm 2 ай бұрын
inner loop can be started from i*i
@taqimustafa7665
@taqimustafa7665 10 ай бұрын
Arrays.fill(prime,1) in java
@vedikamishra009
@vedikamishra009 Ай бұрын
wow
@AshishSingh-he2qo
@AshishSingh-he2qo 4 ай бұрын
Wonderful explanation ❤❤
@Satyam-je4tb
@Satyam-je4tb 5 ай бұрын
With memset, however, the values are not set to the integer 1; they are set to a non-zero integer (16843009), which is not correct for this algorithm.
@codeman3828
@codeman3828 9 ай бұрын
Great explanation. Understood
@Therealtalk123
@Therealtalk123 10 ай бұрын
Nice effort sir.. 👌 😊
@NishikantDounekar
@NishikantDounekar 10 ай бұрын
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
@jivrajsinghshekhawat
@jivrajsinghshekhawat 8 ай бұрын
Thanks brother, you have got very nice teaching skills
@AkashDas-ze2co
@AkashDas-ze2co 2 ай бұрын
Here the space complexity is O(n) but we can reduce it to O(n/2) by ignoring the even numbers as all the even numbers are multiple of 2. So we can ignore them.
@FutFreaKKKKK
@FutFreaKKKKK 2 ай бұрын
n/2 is still n
@AkashDas-ze2co
@AkashDas-ze2co 2 ай бұрын
Yeah my bad. ..I forgot about that... constants are ignored and still O(n) ​@@FutFreaKKKKK
@piyushchauhan2898
@piyushchauhan2898 Ай бұрын
just want to say that : Pdh ke Mza aa gya
@RamyaSreevarshini
@RamyaSreevarshini Ай бұрын
Thank u so much ✨
@saicharanthammi143
@saicharanthammi143 10 ай бұрын
Excellent explanation sir
@KeerthiReddyKolan
@KeerthiReddyKolan 6 ай бұрын
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 6 ай бұрын
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 .
@oyeshxrme
@oyeshxrme 27 күн бұрын
thanks bhaiya
@ipshitatandon5134
@ipshitatandon5134 7 ай бұрын
Such a nice method!
@sanchitsanyam7359
@sanchitsanyam7359 7 ай бұрын
Striver Sir , i am your Jabra fan
@reddygopichand2002
@reddygopichand2002 10 ай бұрын
Understood ❤
@Gottastudyhard-m3b
@Gottastudyhard-m3b 10 ай бұрын
Can you please bring a video on How to actually derive the time complexity based on maths, that'll be more helpful.
@jayant9416
@jayant9416 10 ай бұрын
already have a vdo on his channel
@hashcodez757
@hashcodez757 8 ай бұрын
just watch his lectures and in each one he explains in depth....aise hi seekh jaoge bhot kch.....same as me
@prasadm3614
@prasadm3614 4 ай бұрын
Your work load added eye shades
@MICHAELMURITHI-y7y
@MICHAELMURITHI-y7y 4 ай бұрын
Thanks man
@codevibez2023
@codevibez2023 10 ай бұрын
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 9 ай бұрын
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 9 ай бұрын
@@codeman3828 thank you for your kind advice..
@AyushMishra-b8w
@AyushMishra-b8w 9 ай бұрын
@@codeman3828 Really appreciative
@vipuljamod4119
@vipuljamod4119 7 ай бұрын
Waiting for string playlist...,
@28deekshitha.b78
@28deekshitha.b78 9 ай бұрын
Why the array has taken n+1
@Kumaar_Ritesh
@Kumaar_Ritesh 8 ай бұрын
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.
@2amCoder
@2amCoder 10 ай бұрын
nice !
@abhinanda7049
@abhinanda7049 10 ай бұрын
understood
@drishtirai864
@drishtirai864 10 ай бұрын
Understood :))
@SibiRanganathL
@SibiRanganathL 5 ай бұрын
Undestood 😺
@vedikamishra009
@vedikamishra009 Ай бұрын
11:16
@IBMX65
@IBMX65 4 ай бұрын
12:30
@adityabirdy8996
@adityabirdy8996 10 ай бұрын
Sir i have just started a2z how much time should it take to complete
@ravindrarangwani102
@ravindrarangwani102 10 ай бұрын
It would take around 3-4 months If you study 4 hours daily
@yashkalia2311
@yashkalia2311 7 ай бұрын
Great
@ErenYeager-dp4er
@ErenYeager-dp4er 15 күн бұрын
Done on 17 Jan 2025 at 22:40 Place : Study Room 2 , Hostel 5 , IIT Bombay
@PspkFans-qh6xe
@PspkFans-qh6xe 14 күн бұрын
bro creating new trend torchbearer
@devangagarwal954
@devangagarwal954 5 ай бұрын
Where is thecode
@tharungr7701
@tharungr7701 8 ай бұрын
understand sieve of eras thaas theens :)
@sainathpatil2674
@sainathpatil2674 8 ай бұрын
if n is as big as 10^7 it will give TLE
@therandomguy21
@therandomguy21 7 ай бұрын
nahh it will not
@tej.askamble
@tej.askamble 8 ай бұрын
31/05 Revise
@Shivi32590
@Shivi32590 7 ай бұрын
thank you
@Satyam-je4tb
@Satyam-je4tb 5 ай бұрын
With memset, however, the values are not set to the integer 1; they are set to a non-zero integer (16843009), which is not correct for this algorithm.
@prabhakaran5542
@prabhakaran5542 6 ай бұрын
Understood ❤
@chiragbansod8252
@chiragbansod8252 10 ай бұрын
understood
@anshgupta8860
@anshgupta8860 8 ай бұрын
understood
@hardikpatel352
@hardikpatel352 7 ай бұрын
understood
@shaiksoofi3741
@shaiksoofi3741 7 ай бұрын
understood
@shashankvashishtha4454
@shashankvashishtha4454 6 ай бұрын
understood
L7. Count Prime in a range L-R | Maths Playlist
16:39
take U forward
Рет қаралды 20 М.
L3. Check if a Number if Prime or not | Maths Playlist
7:10
take U forward
Рет қаралды 52 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
But what is a convolution?
23:01
3Blue1Brown
Рет қаралды 2,8 МЛН
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 562 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 243 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 303 М.
L5. Power Exponentiation | Maths Playlist
12:39
take U forward
Рет қаралды 43 М.
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 3,5 МЛН
Square Root of Imaginary Number
8:31
Andy Math
Рет қаралды 96 М.
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН