Data Structures and Algorithms

Adding a list of words - strings (characters without limitation) to create an index of common words in it by ignoring the letter register (small / main)

Example
Input Output
5 3
prefix
postfix
infix
POSTFIX
PREFIX

infix
prefix
postfix
Read each input into a string.

If you can convert the string to a number, discard it.

Otherwise, turn the string to lowercase and add it to a std::set<string> object

When finished input, iterate over the std::set object, outputting each item.
Topic archived. No new replies allowed.