Git Product home page Git Product logo

abstractdatatypes's Introduction

Hi there, I'm Matheus Sena ๐Ÿ‘‹

Linkedin Badge GitHub Badge GitLab Badge Pypi Badge Stack Overflow Badge Medium Badge Telegram Badge

A Machine Learning and Full Stack Software Engineer ๐Ÿ‘จโ€๐Ÿ’ป who loves develop services that helps people to decrease time and costs in a personal and professional environments ๐ŸŒ.

  • ๐Ÿ”ญ Iโ€™m currently working on Python ๐Ÿ projects and Machine Learning ๐Ÿง  models.
  • ๐ŸŒฑ Iโ€™m currently learning everything.
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on projects to decrease time and costs.
  • ๐Ÿค” Iโ€™m looking for live in Canada ๐Ÿ๐Ÿ˜.
  • ๐Ÿ’ฌ Ask me if i can hack a facebook and instagram account ๐Ÿ‘จโ€๐Ÿ’ป.
  • โšก Fun fact: Little man ๐Ÿ‘ถ with 1.60 meters height.

๐Ÿ“ˆ My GitHub Stats:

A+ Top Langs

Snake Status

abstractdatatypes's People

Contributors

senavs avatar

Stargazers

 avatar

Forkers

mike-halpin

abstractdatatypes's Issues

ZeroDivisionError - circular_queue_iterator

Code:

from AbstractDataTypes import CircularQueue
cq = CircularQueue(max_size=10, data=range(9))
cq.dequeue()
cq.enqueue(10)

Error:

ZeroDivisionError                         Traceback (most recent call last)
<ipython-input-27-12cfbbd698d0> in <module>
----> 1 print(cq)

~\Desktop\workbench\AbstractDataTypes\circular_queue\circular_queue.py in __repr__(self)
     65 
     66     def __repr__(self):
---> 67         return self.print()

~\Desktop\workbench\AbstractDataTypes\circular_queue\circular_queue.py in print(self)
     46 
     47         string = '<'
---> 48         for data in self:
     49             string += '%s, ' % data
     50         return string[:-2] + '<'

~\Desktop\workbench\AbstractDataTypes\circular_queue\circular_queue_iterator.py in __next__(self)
     23                         self._first = False
     24                 elif self._current_index != self._end:
---> 25                         self._current_index = next_position(self._current_index, self._end)
     26                         if self._current_index == self._beginning:
     27                                 raise StopIteration()

~\Desktop\workbench\AbstractDataTypes\circular_queue\utils.py in next_position(pos, max_size)
      1 def next_position(pos, max_size):
----> 2     return (pos + 1) % max_size
      3 
      4 def prev_position(pos, max_size):
      5     return (pos - 1 + max_size) % max_size

ZeroDivisionError: integer division or modulo by zero

Pending tasks

  • Data Structures
    • Queue
    • Circular Queue
    • Dequeue Queue
    • Deque
    • Stack
    • Linked List
    • Doubly Linked List
    • Binary Search Tree

  • README.md
    • Queue
    • Circular Queue
    • Dequeue Queue
    • Deque
    • Stack
    • Linked List
    • Doubly Linked List
    • Binary Search Tree

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.