Two Tricks
Check if the end time is tomorrow.\n2. Round the start time up to 15-minute mark, and round the end time down.\n\nC++\ncpp\nint numberOfRounds(string a, string 
1. Check if the end time is tomorrow.\n2. Round the start time up to 15-minute mark, and round the end time down.\n\n**C++**\n```cpp\nint numberOfRounds(string a, string b) {\n    auto nn = [](const string &s, int i){ \n        return (s[i] - \'0\') * 10 + s[i + 1] - \'0\'; };\n    int m1 = nn(a, 0) * 60 + nn(a, 3), m2 = nn(b, 0) * 60 + nn(b, 3);\n    if (m2 < m1)\n        m2 += 24 * 60;\n    return max(0, (m2 / 15) - (m1 + 14) / 15);\n}\n```
['C']