CountIng Search


Collapse Content

The previous challenge asked for word occurrences, but this one is about text matches.

How many times does the String "ing" (lowercase) appear in a given text? It can appear as part other words or on its own.

For example,

He was searching on Bing for Singing Kings. 
should return
5

Challenge

Return the number of times "ing" appears in a given text.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Comments

  • a char is not af reference but a value (primitive) so .equal wont work cause it cant be dereferenced.. i learned this doing this example. complicated but we do learn :-)

    a solution:
    my code

Contact Us
Sign in or email us at [email protected]