Stack - Data Structures in Python #2

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

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

  • @piotrmazgaj
    @piotrmazgaj 19 дней назад

    This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.

  • @coolguy-zm7tn
    @coolguy-zm7tn 24 дня назад +3

    ❤❤keep it coming please

  • @superfreiheit1
    @superfreiheit1 22 дня назад

    Can you create a video, how to chat with my data with llamaindex and olama.

  • @thomasgoodwin2648
    @thomasgoodwin2648 24 дня назад +2

    Wouldn't checking empty by size == 0 be better as then None could be a value on the stack?
    🖖👍

    • @MrChrismccooey
      @MrChrismccooey 23 дня назад +1

      I agree it would be more general

    • @NeuralNine
      @NeuralNine  22 дня назад +1

      You can definitely do this. But you can have None as the value without it too. We are not checking if the node value is None. We check if the node itself is None. And that should not be the case unless the stack is empty. A None value cannot point to a next element.

    • @thomasgoodwin2648
      @thomasgoodwin2648 22 дня назад

      @@NeuralNine Ahh! Got you. Sometimes I forget to read the fine print. Also probably some personal bias on my part since I always implemented these myself using size as the empty check (which was how I was taught long ago... as in the early Dr Dobb's days.)
      Awesome as always, thanks for responding and correcting my errant viewpoint..

  • @piotrmazgaj
    @piotrmazgaj 19 дней назад

    Great video. My only suggestion is if you could say where we use this structures in practice, perhaps give us some examples (like it was roughly done here: watch?v=k0bb7UYy0pY , e.g.: queue in network traffic, private heap as main Python memory data structure, something like that.

  • @SinergiasHolisticas
    @SinergiasHolisticas 24 дня назад +3

    Love 🎉it

  • @VictorV5
    @VictorV5 22 дня назад

    Hi sir .i need a help from of ML project of Dyslexia detection via video . please help me sir

  • @Tony-dp1rl
    @Tony-dp1rl 23 дня назад

    Love your videos, but that is a very complex way to do a stack compared to just using a list and adding/subtracting to it.

    • @charan1161
      @charan1161 23 дня назад +1

      Actually this is the right way of implementing stack. This how comparitively low level languages like in C we implement DSA

    • @NeuralNine
      @NeuralNine  23 дня назад +2

      @Tony-dp1rl This tutorial series is not about implementing things in the most straightforward way. When we get to hash maps we also won't just use a Python dictionary but implement our own hashing algorithm, collision handling etc. It is about understanding the mechanisms behind the data structures.