program to find the second largest word in a paragraph
amongst all words that repeat more thn twice

Answer Posted / marimuthu

By simple

1.find length of each word
2.insert into binary search tree
3.recursively get the left most child of the right sub tree. finally you will get the second largest word.

via this logic you can smallest word,largest word.

is it have criticize?? mail me rainpearls.v@gmail.com

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why enum is used in c?

519


What does the && operator do in a program code?

692


What is the return type of sizeof?

585


What are the three constants used in c?

539


What do mean by network ?

649






Can we use any name in place of argv and argc as command line arguments?

606


What functions are in conio h?

652


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

774


Should I learn c before c++?

594


What is the purpose of the statement: strcat (S2, S1)?

638


Describe newline escape sequence with a sample program?

647


Can we compile a program without main() function?

628


What math functions are available for integers? For floating point?

616


What is %d used for?

580


What is the general form of function in c?

607