Divide Two Integers (1) 썸네일형 리스트형 LeetCode: 29번 (Divide Two Integers) [JAVA] 문제 링크 https://leetcode.com/problems/divide-two-integers/ Divide Two Integers - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이 전체적인 풀이 과정은 다음과 같다. 주어진 dividend와 divisor의 음수 여부를 파악하고, 음수라면 양수로 변환 이후 while문으로 주어진 dividend에 다다를 때까지 시프트 연산 기반 근사값을 찾는 함수를 실행 1) 주어진 숫자에 num에 대해 diviso.. 이전 1 다음