Skip to content

LoadBalancing.java's binary search can be improved #31

Description

@piyushmh

https://github.com/epibook/epibook.github.io/blob/master/solutions/java/src/main/java/com/epi/LoadBalancing.java#L12

The left end of the binary search is currently initialised to 0 where as it can be initially set to Math.ceil(sumOfAllBytes / numServers) since this is the lower bound for the server load.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions