Daily
-
[LeetCode] 29. Divide Two Integers문제/LeetCode 2022. 6. 16. 00:27
카테고리 : Dynamic Programming 난이도 : Medium Longest String Chain - 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 아이디어 문제에서는 words라는 문자열의 배열이 주어진다. predecessor : 문자열 word1에서 문자들의 순서를 바꾸지 않고 하나의 문자를 아무데나 추가로 삽입했을 때 word2를 만들 수 있다면 word1을 word2의 predecessor라 한다. word chain : words 배열에서 ..
-
[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가 주어지고, 곱하기 연산자(*), 나누기 연산자(/), 나머지 연산자(%)를 사용하지 않고 두 정수를 나눠야 한다. 두 정수를 나눈 몫을 구해야 한다. 이때 정수를 제외한 소수 부분은 제외한다. 이 문제를 딱 보고 든 생각은 곱셈, 나눗셈,..