[C++] Convert to Minutes Since Zero Hundred Hours Juliett (0000), O(1) Runtime, O(1) Memory
\nclass Solution {\npublic:\n    int numberOfRounds(string in, string out) {\n        int login = ((in[0] - \'0\') * 10 + (in[1] - \'0\')) * 60 + (in[3] - \'0\'
```\nclass Solution {\npublic:\n    int numberOfRounds(string in, string out) {\n        int login = ((in[0] - \'0\') * 10 + (in[1] - \'0\')) * 60 + (in[3] - \'0\') * 10 + (in[4] - \'0\');\n        int logout = ((out[0] - \'0\') * 10 + (out[1] - \'0\')) * 60 + (out[3] - \'0\') * 10 + (out[4] - \'0\');\n        if (logout < login) {\n            logout += 24 * 60;\n        }\n        return max(0, (logout / 15) - (login / 15) - (login % 15 != 0));\n    }\n};\n```
['Math', 'String', 'C++']