mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 10:06:28 +08:00
Update linkedlist_stack.cpp
Remove constructor
This commit is contained in:
parent
c18affcea3
commit
30a115082b
1 changed files with 0 additions and 4 deletions
|
@ -11,10 +11,6 @@ class LinkedListStack {
|
|||
private:
|
||||
list<int> list;
|
||||
public:
|
||||
LinkedListStack() {
|
||||
// 初始化空链表
|
||||
list.clear();
|
||||
}
|
||||
/* 获取栈的长度 */
|
||||
int size() {
|
||||
return list.size();
|
||||
|
|
Loading…
Reference in a new issue