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

Комментарии • 42

  • @keshavbadhekar
    @keshavbadhekar 23 дня назад +16

    Sieve of Era&%#.... something like that🤣🤣🤣
    Nice Solution👍
    Understood

  • @rishujeetrai5780
    @rishujeetrai5780 3 дня назад

    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.

  • @stith_pragya
    @stith_pragya 2 месяца назад +4

    Understood........Thank You So Much for this wonderful video.............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

  • @pmanideep39
    @pmanideep39 3 месяца назад +3

    Your explanation is much better than Leetcode editorial

  • @trailblazer555
    @trailblazer555 Месяц назад

    Understood; I'm improving my thought process in every video; Thank you bro;

  • @codeman3828
    @codeman3828 3 месяца назад

    Great explanation. Understood

  • @ipshitatandon5134
    @ipshitatandon5134 18 дней назад

    Such a nice method!

  • @jivrajsinghshekhawat
    @jivrajsinghshekhawat Месяц назад

    Thanks brother, you have got very nice teaching skills

  • @saicharanthammi143
    @saicharanthammi143 3 месяца назад

    Excellent explanation sir

  • @Therealtalk123
    @Therealtalk123 4 месяца назад +1

    Nice effort sir.. 👌 😊

  • @taqimustafa7665
    @taqimustafa7665 3 месяца назад +2

    Arrays.fill(prime,1) in java

  • @reddygopichand2002
    @reddygopichand2002 3 месяца назад

    Understood ❤

  • @2amCoder
    @2amCoder 3 месяца назад

    nice !

  • @AkOp-bf9vm
    @AkOp-bf9vm Месяц назад +1

    IF WE INITIALISE VECTOR LIKE { vector arr(n+1,1)} DOES IT STILL CONSIDERED AS O(N) TIME???

    • @kshitijjha6737
      @kshitijjha6737 Месяц назад

      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.

  • @sanchitsanyam7359
    @sanchitsanyam7359 Месяц назад

    Striver Sir , i am your Jabra fan

  • @yashkalia2311
    @yashkalia2311 Месяц назад

    Great

  • @chiragbansod8252
    @chiragbansod8252 3 месяца назад

    understood

  • @user-vg5tz5lu9e
    @user-vg5tz5lu9e 3 месяца назад +3

    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

  • @drishtirai864
    @drishtirai864 3 месяца назад

    Understood :))

  • @Shivi32590
    @Shivi32590 27 дней назад

    thank you

  • @vipuljamod4119
    @vipuljamod4119 24 дня назад +1

    Waiting for string playlist...,

  • @tharungr7701
    @tharungr7701 Месяц назад

    understand sieve of eras thaas theens :)

  • @muhammadfarhaan6951
    @muhammadfarhaan6951 3 месяца назад +1

    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 Месяц назад

      just watch his lectures and in each one he explains in depth....aise hi seekh jaoge bhot kch.....same as me

  • @codevibez2023
    @codevibez2023 4 месяца назад +1

    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 месяца назад +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 3 месяца назад +1

      @@codeman3828 thank you for your kind advice..

    • @user-oz2eu7rs8v
      @user-oz2eu7rs8v 3 месяца назад

      @@codeman3828 Really appreciative

  • @28deekshitha.b78
    @28deekshitha.b78 2 месяца назад +2

    Why the array has taken n+1

    • @Kumaar_Ritesh
      @Kumaar_Ritesh Месяц назад +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.

  • @tej.askamble
    @tej.askamble Месяц назад +1

    31/05 Revise

  • @adityabirdy8996
    @adityabirdy8996 4 месяца назад +1

    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

  • @sainathpatil2674
    @sainathpatil2674 Месяц назад

    if n is as big as 10^7 it will give TLE

  • @abhinanda7049
    @abhinanda7049 3 месяца назад

    understood

  • @anshgupta8860
    @anshgupta8860 Месяц назад

    understood

  • @shashankvashishtha4454
    @shashankvashishtha4454 5 дней назад

    understood

  • @hardikpatel352
    @hardikpatel352 28 дней назад

    understood

  • @shaiksoofi3741
    @shaiksoofi3741 24 дня назад

    understood