Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 457 Bytes

Ex_1_3_15.md

File metadata and controls

26 lines (16 loc) · 457 Bytes
title date draft tags categories
Algorithm4 Java Solution 1.3.15
2019-07-04 05:47:10 +0800
false
JAVA
TECH
archives

1.3.15

Problem:

Write a Queue client that takes a command-line argument k and prints the kth from the last string found on standard input (assuming that standard input has k or more strings).

Solution:

dequeue size - k times, and print the last element dequeue from the stack.

Reference: