One of the recruiters in my network sent me this question (see below), which she picked from the site stringlogic.net. I was able to give her an answer. I also solved the "extra point" question. I'm willing to share my answers; however - how about you try to solve this first?
"Your friend Bob saw a movie on TV, and a song from the movie got stuck in his head. He would buy the song on iTunes, but the problem is Bob can't remember the name of the song or the movie it was in. He can't remember the names of the actors that were in the movie, he can't even remember what decade it was filmed. Bob can however, remember one word from the song. The word from the song Bob can remember is "the". Bob is also able to hum the song and he knows where the word "the" goes as he hums it. Find the song for Bob only using the word "the" in your search query and one additional word that is not in the lyrics of Bob's song. As with all the test questions, you must produce the query you used and the search engine you ran it on. The musical you are looking for is "The Sound of Music" but you can't use that in your query, you must pretend you have never heard of it. Do not use a lyrics database, you must use a standard search engine like Yahoo or Google. To pass this question, the lyrics to the Sound of Music must appear in the first page of results. For an extra point, find the lyrics only using the word "THE" and NO other word in your query"
So I'm not sure if I understand the parameters of the question, can you x-ray a lyrics site from Google? If so, these would work on Google:
"the * * * *" site:stlyrics.com
site:stlyrics.com intitle:"the * * * *"
That is a correct answer, and a simple one! Actually, just
intitle:the site:stlyrics.com
would do the trick.
I targeted to land on imdb.com and ended up with the string that gets Google to show the lyrics too ("The hills are alive with the sound of music / With songs they have sung for a thousand years. / The hills fill my heart with the sound of ...")
and the result is #4 in Google's list:
intitle:the "The **** the ************ the ***** the" site:imdb.com/title +the
(I had tried to reflect that Bob remembered where the word "the" was in the song.)
I just heard from the person who initiated this that you must use the only and punctuation marks. The site command is not allowed. I guess we need to try again. :)
this doesn't solve the problem of just using the...but eliminating the site command and playing off your string, this returns the sound of music at the bottom of the first page on Google.
"The **** the ************ the ***** the" lyrics soundtrack movie
Irina Shamaeva said:
Kameron, OOPS,
I just heard from the person who initiated this that you must use the only and punctuation marks. The site command is not allowed. I guess we need to try again. :)
These commands would give us a number of options. How do we know this is the song Bob heard? He does not know himself.
For the extra point, if we cannot use any other word other than 'The', we would need to use a symbol. $ is a symbol regularly used in written music... however it does not seem to give the results.