Skip to main content

All Questions

Filter by
Sorted by
Tagged with
5 votes
2 answers
486 views

LinkedList class implementation in Python

I was solving this problem for implementing LinkedList and ListNode classes, and Insert and <...
NinjaG's user avatar
  • 2,489
3 votes
1 answer
1k views

Python Hash Table and insertion

I'm attempting to implement a basic hash table in Python using linked lists. Any tips would be appreciated (including better hash functions). I intend this to handle collisions with separate chaining. ...
NinjaG's user avatar
  • 2,489
2 votes
1 answer
2k views

Python implementation as single linked list class `replace item` with item

I encountered this question as I am preparing for my code interview. I was implementing my linked list implementation. I would like to ask for the following implementation: Replace item with item ...
NinjaG's user avatar
  • 2,489
3 votes
1 answer
2k views

Doubly-linked list implementation in Python with unit-tests

I am soliciting some feedback on my doubly-linked list implementation. In particular, I am looking for your take on my unit-tests and their coverage of the code itself. That is, I developed this class ...
MadPhysicist's user avatar
8 votes
1 answer
2k views

Python Singly Linked List Implementation

This is a follow-up to a question I asked a few days ago. I incorporated many of the suggestions on how to make the code more standardized and Python-like. If you see something else that can be ...
MadPhysicist's user avatar
3 votes
2 answers
7k views

Python Linked List implementation

I am looking for some comments on an implementation of a singly-linked list in Python. What could I do to make it more reliable and readable? ...
MadPhysicist's user avatar