AZ – Jimmy’s Version

Write a method that takes a string in and counts the number of times the letter “z” appears right **after** an “a”. You may assume that the string contains only lowercase letters.

My solution:
Screen Shot 2016-08-12 at 11.03.04 AM

Advertisements
AZ – Jimmy’s Version

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s