Create a linked list named one and two. Add some elements to both one (one, two, three, four, five) and two (six, seven, eight, nine, and ten). Merge the words from two into one. Remove every second word from two. Remove all words in two from one. Print the value after each operation.


Updated: Nov. 28, 2020 — Training Time: 2 minutes
Overseen by: Archangel Macsika
Topic: Linked List and Array - Java Programming

Difficulty:Intermediate.

Companies who previously asked this: -.

Objective: a. Create a linked list program named one and two.
b. Add some elements to both one (one, two, three, four, five) and two (six, seven, eight, nine, and ten).
c. Merge the words from two into one.
d. Remove every second word from two.
e. Remove all words in two from one.
f. Print the value after each operation.

Input: Numbers to serve as time values.

Expected Output: Result will vary based on the user input.

Sikademy Solution

Was this training resource helpful?