Are my sentences correct?

She had the ingenuity to succeed where everyone else had failed.
She had the ingenuity to be successful where everyone else had failed.

And now the other way round.

Where everyone else had failed, she had the ingenuity to succeed.
Where everyone else had failed, she had the ingenuity to be successful.