Updated Protection Level of all current datastructures - Needs Review
This commit is contained in:
@ -6,7 +6,7 @@ using C_.Datastructures.Nodes;
|
||||
|
||||
namespace C_.Datastructures
|
||||
{
|
||||
internal class DoublyLinkedList<T>
|
||||
public class DoublyLinkedList<T>
|
||||
{
|
||||
internal DoublyLinkedListNode<T>? Head { get; set; } = default;
|
||||
internal DoublyLinkedListNode<T>? Tail { get; set; } = default;
|
||||
|
@ -2,7 +2,7 @@ using C_.Datastructures.Nodes;
|
||||
|
||||
namespace C_.Datastructures
|
||||
{
|
||||
internal class LinkedList<T>
|
||||
public class LinkedList<T>
|
||||
{
|
||||
internal LinkedListNode<T>? Head { get; set; } = default;
|
||||
private int Count { get; set; } = 0;
|
||||
|
@ -2,17 +2,17 @@ using C_.Datastructures.Nodes;
|
||||
|
||||
namespace C_.Datastructures
|
||||
{
|
||||
internal class Stack<T>
|
||||
public class Stack<T>
|
||||
{
|
||||
internal StackNode<T>? Head { get; set; }
|
||||
private int Count { get; set; } = 0;
|
||||
|
||||
public Stack<T> Create(){
|
||||
public static Stack<T> Create(){
|
||||
//Create a new stack without a head
|
||||
return new Stack<T>();
|
||||
}
|
||||
|
||||
public Stack<T> Create(T value){
|
||||
public static Stack<T> Create(T value){
|
||||
//Create a new Stack with a head
|
||||
return new Stack<T>{
|
||||
Head = StackNode<T>.Create(value, default),
|
||||
|
Reference in New Issue
Block a user