반응형
head로 insert
-
자료구조: Inorder Linked List 구현하기 (feat. c++)알고리즘/자료구조 2021. 4. 16. 16:39
Characteristic: - MyList class is Inorder Linked List class, which is when you insert value, it is sorted in asending order. Operations: - insert - first - next #include #include using namespace std; typedef char ListElementType; class MyList { public: MyList(); void insert(const ListElementType& elem); bool first(ListElementType& elem); bool next(ListElementType& elem); private: struct Node; ty..