Simon cannot sleep HackerEarth Solution in C
Problem It’s 12 o’clock at midnight (00:00) and Simon cannot sleep! So he decided to stare at the clock on his wall until he falls asleep. He saw the clock’s hands and got to thinking ‘How many times they’ll pass each other until I fall asleep. Imagine that he fell asleep at hh:mm. Now, you must figure out how many times clock’s hands overlap from 00:00 to hh:mm (including 00:00 and hh:mm). You can see an overlap in the provided picture. Note: His clock only has an hour and minute hands. …