Coding Friends

  • + 0 comments
    def minNum(samDaily, kellyDaily, difference):
        # Write your code here
        if kellyDaily <= samDaily:
            return -1
        min_days = (difference+1) / (kellyDaily - samDaily)
        if min_days != int(min_days):
            min_days = int(min_days) + 1
        return int(min_days)