Write C++ functions to perform following: Concatenate two lists of characters together. Find intersection of two lists.
Fantastic news! We've Found the answer you've been seeking!
Question:
Write C++ functions to perform following:
- Concatenate two lists of characters together.
- Find intersection of two lists.
- Compare two strings (represented as linked lists) . The function should take two linked lists containing characters of two strings and compare each corresponding character in a lexicogrphical order. The function should return:
- 0 if both strings are same
- 1 if first list is lexicographically greater
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: