mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 06:07:20 +08:00 
			
		
		
		
	Update linkedlist_stack.cpp
Remove constructor
This commit is contained in:
		@ -11,10 +11,6 @@ class LinkedListStack {
 | 
				
			|||||||
private:
 | 
					private:
 | 
				
			||||||
    list<int> list;
 | 
					    list<int> list;
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
    LinkedListStack() {
 | 
					 | 
				
			||||||
        // 初始化空链表
 | 
					 | 
				
			||||||
        list.clear();
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    /* 获取栈的长度 */
 | 
					    /* 获取栈的长度 */
 | 
				
			||||||
    int size() {
 | 
					    int size() {
 | 
				
			||||||
        return list.size();
 | 
					        return list.size();
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user