sign = [1, -1][x < 0]
刷题的时候( https://leetcode-cn.com/problems/divide-two-integers/solution/liang-ju-hua-jian-ming-si-lu-by-darkwhite/ )看到的,配合移位可以有不错的操作。
sign = [1, -1][x < 0]
刷题的时候( https://leetcode-cn.com/problems/divide-two-integers/solution/liang-ju-hua-jian-ming-si-lu-by-darkwhite/ )看到的,配合移位可以有不错的操作。
留言