Hashes 18 KeyIterator

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 10

  • @mohammedhamouda104
    @mohammedhamouda104 4 роки тому

    Thanks so much for the nice elite work.

  • @giorgi23
    @giorgi23 4 роки тому +1

    Brilliant. I got the basic idea how hashing works

  • @The_Process_
    @The_Process_ 2 роки тому

    Does anyone have the git repo for this session? I am getting some error, and I am not sure where it is coming from.

  • @pavelgorbatyuk7270
    @pavelgorbatyuk7270 6 років тому

    I did not understand how to use this iterator helper inside the hash class so that we could use for(K key : this) , described in previous video about resizing??

    • @khalidmahmoud4775
      @khalidmahmoud4775 5 років тому +1

      he used (K key : this) for the Iterator of LinkedList he implemented before not for the hash itself

  • @chaitanyasharma6270
    @chaitanyasharma6270 4 роки тому +1

    7:42 we dont need "()" brackets right? cant it just be "h.key;"

  • @davidgeismar6531
    @davidgeismar6531 5 років тому

    seems to me that when you are populating your keys array you are starting at index 1 (keys[p++]) you should increment p after the assignation I think

    • @TheInnerChild
      @TheInnerChild 5 років тому +2

      p++ is a post increment operator which basically uses the current value of p == 0 and then increments it to p == 1.