Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a Linked List #1

Open
4 of 20 tasks
taciogt opened this issue Sep 12, 2020 · 0 comments
Open
4 of 20 tasks

Implement a Linked List #1

taciogt opened this issue Sep 12, 2020 · 0 comments

Comments

@taciogt
Copy link
Owner

taciogt commented Sep 12, 2020

Implement a Linked List following python's data model interfaces

The class must use type hint by implementing the following interfaces:

  • Sized
  • Iterable
  • Container
  • MutableSequence

The list object must provide the following methods:

  • append()
  • count()
  • index()
  • extend()
  • insert()
  • pop()
  • remove()
  • reverse()
  • sort()

The sequence should also implement addition (meaning concatenation) and multiplication (meaning repetition) by defining the methods

  • add()
  • radd()
  • iadd()
  • mul()
  • rmul()
  • imul()

The sequence should allow the use of the in operator by implementing the method:

  • contains()
taciogt added a commit that referenced this issue Sep 12, 2020
taciogt added a commit that referenced this issue Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant