Question: Please do this as fast as possible!! Need this now! LONGEST increasing word lengths - ANY LANGUAGE could use Clojure or Prolog again if you

Please do this as fast as possible!!

Need this now!

LONGEST increasing word lengths - ANY LANGUAGE could use Clojure or Prolog again if you wish, but C++, Python,Scala etc are fine

Write a function longest_increasing_word_len that takes a single string as a parameter and returns count of words that keep increasing in length.

Example: calling longest_increasing_word_len("Last night I saw Mommy kissing Santa Claus") should return 4 because I saw Mommy kissing kept increasing in word length.

Submit source code AND answer to the following text fragment:

Interesting, though elementary, said he as he returned to his favourite corner of the settee. There are certainly one or two indications upon the stick. It gives us the basis for several deductions. Has anything escaped me? I asked with some self-importance. I trust that there is nothing of consequence which I have overlooked? I am afraid, my dear Watson, that most of your conclusions were erroneous. When I said that you stimulated me I meant, to be frank, that in noting your fallacies I was occasionally guided towards the truth. Not that you are entirely wrong in this instance. The man is certainly a country practitioner. And he walks a good deal. 

You are to ignore punctuation in calculating answer. That is treat the above text as having no sentences, no paragraphs and no punctuation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!