Test Cases & Chat
Part 1
current
Test 1
input:MyQueue(), push(1), push(2), peek() => 1, pop() => 1, empty() => false
expect:[1, 1, false]
Test 2
input:MyQueue(), push(1), peek() => 1, pop() => 1, empty() => true
expect:[1, 1, true]
Test 3
input:MyQueue(), push(1), push(2), push(3), pop() => 1, peek() => 2, pop() => 2, peek() => 3
expect:[1, 2, 2, 3]
Choose your coach
Pick a style and how you want to communicate
then
Loading...
OUTPUT
Run code to see output...
Part 1
current
Test 1
input:MyQueue(), push(1), push(2), peek() => 1, pop() => 1, empty() => false
expect:[1, 1, false]
Test 2
input:MyQueue(), push(1), peek() => 1, pop() => 1, empty() => true
expect:[1, 1, true]
Test 3
input:MyQueue(), push(1), push(2), push(3), pop() => 1, peek() => 2, pop() => 2, peek() => 3
expect:[1, 2, 2, 3]
Choose your coach
Pick a style and how you want to communicate
then