Skip to content

Commit

Permalink
顺序栈动态扩容
Browse files Browse the repository at this point in the history
  • Loading branch information
PeiJiaNi committed Mar 16, 2019
1 parent b2b1a03 commit bbe7900
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DynamicStackBaseArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

import java.util.Iterator;

/**
* 顺序栈的动态扩容
* Author: PeiJiaNi
* @param <T> 顺序栈元素类型
*/

public class DynamicStackBaseArray<T> implements Iterable<T> {
private T[] items; // 数组
private int count; // 栈中的元素个数
Expand Down

0 comments on commit bbe7900

Please sign in to comment.