easy to read C++ solution
\nclass Solution {\npublic:\n    int numberOfRounds(string startTime, string finishTime) {\n        int startCnt = getCnt(startTime, true), endCnt = getCnt(fini
```\nclass Solution {\npublic:\n    int numberOfRounds(string startTime, string finishTime) {\n        int startCnt = getCnt(startTime, true), endCnt = getCnt(finishTime, false);\n        int res = endCnt - startCnt;\n        return startCnt > endCnt ? 24 * 4 + res : res;\n    }\n    \n    int getCnt(string time, bool start)\n    {\n        int h = stoi(time.substr(0, 2)), m = stoi(time.substr(3, 2));\n        if (start)\n            m = (m + 15 - 1) / 15;\n        else\n            m /= 15;\n        \n        return h * 4 + m;\n    }\n};\n```
[]