計算兩個整數相除,不能用除法和取餘

class Solution { public int divide(int dividend, int divisor) { int result=0; if(divisor == 0) //除數爲0,返回最大值 return Integer.MAX_VALUE; if(dividend == Integer.
相關文章
相關標籤/搜索