I find it is a really complex question because there are so much elements which can influence the search
For example, when you are stuck on a piece of code or don’t figure how something works, you try for hours, maybe days (!) to find the correct answer.
After eating many hairs, you ask someone or google - which is different, sometimes asking google means a travel for many hours to find the “correct” answer with the “correct” keywords", you have the piece you need, you find it dumb, you are frustrated ++ but, you can continue and move forward.
It is a kind of “cheating” ?
By cheat, do you also mean : you are not able to find the correct answer only by yourself ?
How much things should you try before asking or searching ?
And how much time should you search by yourself before ask someone ?
If you search about answer (but no “pure” copy/paste) for a challenge, but you are able to understand and transpose the logic into another one later, is it cheating ?
If something looks unclear, please ask for precision, I’m not super good to express clear-ideas