Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
1) If I had found a good house , I would have bought one.
2) I would have bought a house if I had found a good one.
They are different ways of saying the same thing. Both are correct and idiomatic.
Change the 1st sentence to, "If I had found a good house, I would have bought it."