Meaning of “hit on/upon sth” - Learner’s Dictionary

hit on/upon sth

phrasal verb with hit uk us /hɪt/ verb (present participle hitting, past tense and past participle hit)

to have a good idea, especially one that solves a problem:

We hit upon the idea of writing to the mayor to ask for his help.

(Definition of “hit on/upon sth” from the Cambridge Learner’s Dictionary © Cambridge University Press)