about | help | code help+videos | done | prefs |
frew@mclean.com stack-1
Non-empty: stackHead7
stackHeadNot3
stackHeadPlus8
stackHead22
Empty: stackHead7b
stackHeadNot3b
stackHeadPlus8b
stackHead22b
Start all problems with
Stack<Integer> stack = new Stack<Integer>();
stack.addAll(list);
End all problems with
return new ArrayList<Integer>(stack);
Authoring docs
Copyright Nick Parlante 2017 - privacy