반응형
Bit Manipulation
-
[LeetCode] 29. Divide Two Integers문제/LeetCode 2022. 5. 30. 21:33
카테고리 : Bit Manipulation 난이도 : Medium 2022/5/30 (월) 문제. 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가 주어지고, 곱하기 연산자(*), 나누기 연산자(/), 나머지 연산자(%)를 사용하지 않고 두 정수를 나눠야 한다. 두 정수를 나눈 몫을 구해야 한다. 이때 정수를 제외한 소수 부분은 제외한다. 이 문제를 딱 보고 든 생각은 곱셈, 나눗셈,..