solutions to section handout #5 - stanford...

6
Eric Roberts Handout #35A CS106B February 11, 2013 Solutions to Section Handout #5 Problem 1. Implementing the array-with-gap form of the two stack model

Upload: others

Post on 12-Sep-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Solutions to Section Handout #5 - Stanford Universityweb.stanford.edu/.../handouts/35A-Section5Solutions.pdf · 2013. 2. 16. · Eric Roberts Handout #35A CS106B February 11, 2013

Eric Roberts Handout #35A CS106B February 11, 2013

Solutions to Section Handout #5 Problem 1. Implementing the array-with-gap form of the two stack model

Page 2: Solutions to Section Handout #5 - Stanford Universityweb.stanford.edu/.../handouts/35A-Section5Solutions.pdf · 2013. 2. 16. · Eric Roberts Handout #35A CS106B February 11, 2013

– 2 –

Page 3: Solutions to Section Handout #5 - Stanford Universityweb.stanford.edu/.../handouts/35A-Section5Solutions.pdf · 2013. 2. 16. · Eric Roberts Handout #35A CS106B February 11, 2013

– 3 –

Page 4: Solutions to Section Handout #5 - Stanford Universityweb.stanford.edu/.../handouts/35A-Section5Solutions.pdf · 2013. 2. 16. · Eric Roberts Handout #35A CS106B February 11, 2013

– 4 –

Problem 2: Doubly linked lists

Page 5: Solutions to Section Handout #5 - Stanford Universityweb.stanford.edu/.../handouts/35A-Section5Solutions.pdf · 2013. 2. 16. · Eric Roberts Handout #35A CS106B February 11, 2013

– 5 –

Page 6: Solutions to Section Handout #5 - Stanford Universityweb.stanford.edu/.../handouts/35A-Section5Solutions.pdf · 2013. 2. 16. · Eric Roberts Handout #35A CS106B February 11, 2013

– 6 –