facebook

Christian Harms's picture

facebook Hacker Cup 2012 Qualification Round - alphabet soup

This year qualification round had three problem. The easy one was Alphabet Soup - classic character counting problem.

Image

problem description

Alfredo Spaghetti really likes soup, especially when it contains alphabet pasta. Every day he constructs a sentence from letters, places the letters into a bowl of broth and enjoys delicious alphabet soup.

Today, after constructing the sentence, Alfredo remembered that the Facebook Hacker Cup starts today! Thus, he decided to construct the phrase "HACKERCUP". As he already added the letters to the broth, he is stuck with the letters he originally selected. Help Alfredo determine how many times he can place the word "HACKERCUP" side-by-side using the letters in his soup.Read more

Syndicate content