From 0bbbd16aa9a709a2622a8f22cc6dfb0dcb772fa5 Mon Sep 17 00:00:00 2001 From: Ty Mick Date: Wed, 27 May 2020 19:14:15 -0400 Subject: [PATCH] Clarify ambiguous instructions in "Stack Class" (#38802) --- .../data-structures/create-a-stack-class.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/data-structures/create-a-stack-class.english.md b/curriculum/challenges/english/10-coding-interview-prep/data-structures/create-a-stack-class.english.md index a970c4de85..79e8621073 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/data-structures/create-a-stack-class.english.md +++ b/curriculum/challenges/english/10-coding-interview-prep/data-structures/create-a-stack-class.english.md @@ -17,7 +17,7 @@ Apart from the push and pop method, stacks have other ## Instructions
-Write a push method that pushes an element to the top of the stack, a pop method that removes the element on the top of the stack, a peek method that looks at the first element in the stack, an isEmpty method that checks if the stack is empty, and a clear method that removes all elements from the stack. +Write a push method that pushes an element to the top of the stack, a pop method that removes and returns the element on the top of the stack, a peek method that looks at the top element in the stack, an isEmpty method that checks if the stack is empty, and a clear method that removes all elements from the stack. Normally stacks don't have this, but we've added a print helper method that console logs the collection.