Multimap In C++

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

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

  • @PoojaSingh-tw6ed
    @PoojaSingh-tw6ed 4 года назад +16

    You can think of lower_bound() as the first value in the range greater than or equal to the value we need to find. While upper_bound() gives us the value strictly greater than the value we wish to find in the list. It is a binary search implementation and have many applications in solving problems.

  • @tahaalkhashmany5678
    @tahaalkhashmany5678 4 года назад +5

    knowing stl is the jumb from c to c++. you do a great job explaining stl in this series. thanks!

    • @CppNuts
      @CppNuts  4 года назад

      Thanks man!!

  • @nitindubey3092
    @nitindubey3092 3 года назад +1

    Great explanation. But I think there is a small correction when you say that pair range, range.first is first element while range.second should be iterator after last element and not last element.

  • @KaiBeatbox0803
    @KaiBeatbox0803 4 года назад +1

    Man I really love your tutorial, I though stl is really hard until I saw your playlist. It really helps me to prepare for internship next year! Big love from Australia!

    • @ravisahu4658
      @ravisahu4658 4 года назад +1

      I also found this channel yesterday and I love it . It's very helpful

    • @CppNuts
      @CppNuts  4 года назад +1

      Thanks dude..

  • @neuron8186
    @neuron8186 3 года назад

    absolutely in love with this channel

  • @lawbindpandey402
    @lawbindpandey402 4 года назад

    The way you explain is the one of the best way to explain ...thank you sir !!!😇😇😇

    • @CppNuts
      @CppNuts  4 года назад +1

      It's my pleasure!!

    • @educatorshub7860
      @educatorshub7860 4 года назад

      ruclips.net/video/uGWCMPRDYIw/видео.html

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

    im giving a comment for algorithm just cuz this helped me

  • @teetanrobotics5363
    @teetanrobotics5363 4 года назад +3

    Line 33 was really cool.

    • @behindthescene4406
      @behindthescene4406 4 года назад

      Teetan Robotics
      Hey there I'm not able to get line 33 can u kindly explain me this ?

    • @teetanrobotics5363
      @teetanrobotics5363 4 года назад

      @@behindthescene4406 Without the auto keyword , writing the line would have been bery hard.
      NOT SURE Something like std::multimap Multimap ::range

    • @behindthescene4406
      @behindthescene4406 4 года назад

      Teetan Robotics thanks 😃

  • @bhupankgoswami5709
    @bhupankgoswami5709 5 лет назад +1

    Nice. Please make it on Multiset as well.

  • @meghnasingh9941
    @meghnasingh9941 4 года назад +1

    can you please explain more on iterators

    • @CppNuts
      @CppNuts  4 года назад +1

      Sure, this is left in the series.
      Thanks

  • @rakeshtanwar3836
    @rakeshtanwar3836 5 лет назад +1

    Very very much thanks

  • @adamrushford
    @adamrushford 5 месяцев назад

    thank you so much!

    • @CppNuts
      @CppNuts  2 месяца назад +1

      Thanks !!

  • @Mmegaballs
    @Mmegaballs 4 года назад

    just did the multimap from a map without knowing multimap worked like that :)
    i did a map[object] = value1; and also value 2 etc
    its basically a map
    how i did it?
    1) custom object need operator< to be redefined (to place the object in the RBTree)
    2) List: public extend std::list with operator= redifined as push_back(something)
    well if i knew i could iterator so easy in that multimap with range i wouldnt bother myself making that "version of multimap"

    • @JetaJ1
      @JetaJ1 3 года назад

      I think the main problem is if using a map with a vector you can have O(n) lookup time, but when using multimap you have guaranteed O(logn) lookup time

  • @christopherapps6177
    @christopherapps6177 5 лет назад +1

    Thank you

    • @CppNuts
      @CppNuts  5 лет назад

      You are welcome..

  • @karthickkumar1380
    @karthickkumar1380 3 года назад

    God You;

    • @CppNuts
      @CppNuts  3 года назад

      Thanks dude..

  • @ritwik121
    @ritwik121 3 года назад

    how to insert elements in multimap mp; ??? if its possible can you tell how?

  • @0saptarshi
    @0saptarshi 4 года назад

    where can we get all these codes? Can you put these in a github repo? It would be extremely handy.

  • @msbabjan2341
    @msbabjan2341 5 лет назад +1

    Hi,
    Can u suggest me any channel where i can learn Embedded c ,Linux and IPC?

  • @mohamedsallam8928
    @mohamedsallam8928 5 лет назад +1

    do you know how to create ,save or load this map into a txt file ?

    • @CppNuts
      @CppNuts  5 лет назад

      Yes that should be very easy you just have to to write into text file and read from it, aur check out serialisation and deserialization using text file.

  • @Ronie19821905
    @Ronie19821905 4 года назад

    why iterator can be moved it ++;
    is the operation it + = 2 impossible?

  • @sambitkar2330
    @sambitkar2330 4 года назад +1

    Do u have Linkedin?

    • @CppNuts
      @CppNuts  4 года назад

      Yes..

    • @sambitkar2330
      @sambitkar2330 4 года назад +1

      @@CppNuts can we connect??? What's the ID?

    • @CppNuts
      @CppNuts  4 года назад

      Link is given in about section of my channel.

    • @sambitkar2330
      @sambitkar2330 4 года назад

      @@CppNuts ohh thanks bhai!!!

  • @mohammadhaseeb948
    @mohammadhaseeb948 4 года назад +1

    If second pair of function equal_range returns the iterator pointing to last key value
    So how you write in for loop it!=range.second
    Will it print all the values of key 'a'

  • @SYALUS3
    @SYALUS3 5 лет назад +1

    👍

  • @Kaivalyamani
    @Kaivalyamani 4 года назад

    Whats your gpu

  • @ShrisalimathShri
    @ShrisalimathShri 3 года назад

    Sir pls don't display sentence on video bcoz we could not see what operation or output is coming

  • @237sameer1
    @237sameer1 4 года назад

    find returns iterator and not pair..