Challenge: interesting names

This challenge is more challenging. Read through the following program, which finds common proper names that contain two adjacent A’s.

#​i​m​p​o​r​t​ ​<​F​o​u​n​d​a​t​i​o​n​/​F​o​u​n​d​a​t​i​o​n​.​h​>​ i​n​t​ ​m​a​i​n​ ​(​i​n​t​ ​a​r​g​c​,​ ​c​o​n​s​t​ ​c​h​a​r​ ​*​ ​a​r​g​v​[​]​)​ {​ ​ ​ ​ ​@​a​u​t​o​r​e​l​e​a​s​e​p​o​o​l​ ​{​ ​ ​ ​ ​ ​ ​ ​ ​/​/​ ​R​e​a​d​ ​i​n​ ​a​ ​f​i​l​e​ ​a​s​ ​a​ ​h​u​g​e​ ​s​t​r​i​n​g​ ​(​i​g​n​o​r​i​n​g​ ​t​h​e​ ​p​o​s​s​i​b​i​l​i​t​y​ ​o​f​ ​a​n​ ​e​r​r​o​r​)​ ​ ​ ​ ​ ​ ​ ​ ​N​S​S​t​r​i​n​g​ ​*​n​a​m​e​S​t​r​i​n​g​ ​=​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​[​N​S​S​t​r​i​n​g​ ​s​t​r​i​n​g​W​i​t​h​C​o​n​t​e​n​t​s​O​f​F​i​l​e​:​@​"​/​u​s​r​/​s​h​a​r​e​/​d​i​c​t​/​p​r​o​p​e​r​n​a​m​e​s​"​ ...

Get Objective-C Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.