Hey all,
Today I had a test for my Algorithms and Data Structures course and one questions has been bugging the hell out of me. I tried talking to the lecturer after and I still wasn't able to understand what he was asking or what he was expecting in the answer. I have since googled the problem to no avail. When I attempted to question my friends on Facebook, I got answers such as "I have legs." which reminded me most of my FB friends are idiots.
Which leads me to here. I hoping one of you guys will be able to shed some light on the problem, which is as follows.
Given that a string is a concatenation of characters, the following is an (incomplete) recursive definition of a string:
"Concatenation of a string and a character is a string."
a) What is missing?
b) Write the complete definition.
I "think" I have determined that the base case is missing. But why that is or how I write it in the definition, I'm lost.
