Skip to content

Instantly share code, notes, and snippets.

@ZaRqax
ZaRqax / base.py
Created October 28, 2022 12:54
Linked tree
import logging
from copy import deepcopy
from typing import Any
logger = logging.getLogger(__name__)
class Node:
def __init__(self, data: Any, prev=None, next=None):
self.next = next