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

Explain what is the difference between functions abs() and fabs()?

626


Explain how can you be sure that a program follows the ansi c standard?

870


What does %2f mean in c?

676


What is a constant?

637


Explain the bubble sort algorithm.

650






What is f'n in math?

623


What is c language and why we use it?

626


Why is it that not all header files are declared in every C program?

687


What is the right way to use errno?

625


Explain what is meant by 'bit masking'?

646


What is external variable in c?

618


What are enumerated types?

657


difference between object file and executable file

6101


Where define directive used?

611


What are the rules for the identifier?

677