This question already has an answer here:
The way I understand mining is that you hash the previous block hash with the new transaction files and a variable to get certain amount of zero in the hash. So the stronger your hash power is the faster you find the new block hash. My problem is that thinking about it this way means that only the one with the highest hashing power will find the block first and get rewarded, then what are the others with lower hashing powers doing ? and how do they get rewarded ?
and do you get rewarded when you find the hash or you get rewarded every second of mining proportionally to your hashing power ? because the websites that offers hashing powers shows your balance to be continuously increasing and not as expected to increase step by step with each hash found.