Update linkedlist_stack.cpp

Remove constructor
pull/41/head
Yudong Jin 2 years ago committed by GitHub
parent c18affcea3
commit 30a115082b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,10 +11,6 @@ class LinkedListStack {
private:
list<int> list;
public:
LinkedListStack() {
// 初始化空链表
list.clear();
}
/* 获取栈的长度 */
int size() {
return list.size();

Loading…
Cancel
Save