Answer
Americans broke the code that identified Yamamoto's flight plan. They had broken Japanese naval codes in 1942, and were able to decipher the messages that indicated that Admiral Yamamoto was going to make a personal inspection of Japanese forces in the South Pacific. The Americans were able to intercept the flight plan, and they were able to send fighter planes to intercept Yamamoto's plane.