Question: Given a singly linked list of characters. Write an algorithm to create a new linked list of characters from the given linked list as

Given a singly linked list of characters. Write an algorithm to create 

Given a singly linked list of characters. Write an algorithm to create a new linked list of characters from the given linked list as per the rules given below. Rules: Replace *' or /' by a single space In case of two consecutive occurrences of*' or ", replace those two occurrences by a single space and convert the next character to upper case i. ii. Assume that (a)There will not be more than two consecutive occurrences of *' or '" (b)The linked list will always end with an alphabet Sample Input Expected Output A,n,*,/,a,p,p,l,e,*,a,/,day,*,*,k,e,e,p,s,/,*,a,//,d,o,c,t,o,r,*,A,w,a,y An Apple a day Keeps A Doctor Away

Step by Step Solution

3.31 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

CODE include include using namespace std int main stri... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!