Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 514 Bytes

File metadata and controls

29 lines (18 loc) · 514 Bytes
title Algorithm4 Java Solution 1.3.47
date 2019-07-28 08:47:27 +0800
draft false
tags
JAVA
categories
TECH
archives

1.3.47

Problem:

Catenable queues, stacks, or steques. Add an extra operation catenation that (de- structively) concatenates two queues, stacks, or steques (see Exercise 1.3.32). Hint : Use a circular linked list, maintaining a pointer to the last item.

Solution:

code:

stack & queue

steque

Reference: