mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update linked_list_fifo.py
This commit is contained in:
parent
08a29ececf
commit
8d8b3f7e53
@ -2,8 +2,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# author: bt3gl
|
# author: bt3gl
|
||||||
|
|
||||||
class Node():
|
class Node:
|
||||||
"""Implementation of a Node for a binary tree"""
|
|
||||||
|
|
||||||
def __init__(self, value=None):
|
def __init__(self, value=None):
|
||||||
self.value = value
|
self.value = value
|
||||||
@ -16,7 +15,6 @@ class Node():
|
|||||||
|
|
||||||
|
|
||||||
class LinkedListFIFO:
|
class LinkedListFIFO:
|
||||||
'''A Linked-List class with a first-in-first-out logic'''
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.head = None
|
self.head = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user