mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-08 06:45:54 +00:00
Merge branch 'master' of https://github.com/mjk22071998/Python
This commit is contained in:
commit
47f5c05bc7
@ -2,21 +2,20 @@ from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
# This is a sorted linked list class that creates
|
||||
# This is a sorted linked list class that creates
|
||||
# a sorted linked list of integer datatype
|
||||
|
||||
|
||||
@dataclass
|
||||
class Node:
|
||||
|
||||
def __init__(self, data: int) -> None:
|
||||
"""Constructor of Node class
|
||||
|
||||
Args:
|
||||
data (int): Data of node
|
||||
|
||||
|
||||
Doctests
|
||||
|
||||
|
||||
>>> Node(20)
|
||||
Node(20)
|
||||
>>> Node(27)
|
||||
|
Loading…
x
Reference in New Issue
Block a user