simple java solution
IntuitionApproachComplexity
Time complexity:
O(1)
Space complexity:
O(1)Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->
$$O(1)$$
- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->
$$O(1)$$
# Code
```java []
class Solution {
    public int numberOfRounds(String loginTime, String logoutTime) {
        int loginMins,logoutMins;
        loginMins=convertToMins(loginTime);
        logoutMins=convertToMins(logoutTime);
        if(logoutMins < loginMins){
            logoutMins+=24*60;
        }
        if(loginMins%15!=0){
            loginMins+=15-(loginMins%15);
        }
        return (logoutMins-loginMins)/15;
    }
    int convertToMins(String time){
        String[] parts=time.split(":");
        int mins=Integer.parseInt(parts[0])*60 + Integer.parseInt(parts[1]);
        return mins;
    }
}
```
['Java']