LeetCode/Math
-
[LeetCode] 69. Sqrt(x) (C++)LeetCode/Math 2026. 5. 1. 11:13
Problem Overviewhttps://leetcode.com/problems/sqrtx/description/?envType=problem-list-v2&envId=math Sqrt(x) - LeetCodeCan you solve this real interview question? Sqrt(x) - Given a non-negative integer x, return the square root of x rounded down to the nearest integer. The returned integer should be non-negative as well. You must not use any built-in exponent function or oleetcode.com 이 문제는, 음의 정..
-
[LeetCode] 67. Add Binary (C++)LeetCode/Math 2026. 4. 24. 22:09
Problem Overviewhttps://leetcode.com/problems/add-binary/description/?envType=problem-list-v2&envId=math Add Binary - LeetCodeCan you solve this real interview question? Add Binary - Given two binary strings a and b, return their sum as a binary string. Example 1: Input: a = "11", b = "1" Output: "100" Example 2: Input: a = "1010", b = "1011" Output: "10101" Constraints: *leetcode.com이 문제는 컴..
-
[LeetCode] 66. Plus One (C++)LeetCode/Math 2026. 4. 19. 22:49
Problem Overviewhttps://leetcode.com/problems/plus-one/?envType=problem-list-v2&envId=math Plus One - LeetCodeCan you solve this real interview question? Plus One - You are given a large integer represented as an integer array digits, where each digits[i] is the ith digit of the integer. The digits are ordered from most significant to least significant in left-to-leetcode.com이 문제는 integer 배열로 표현..
-
[LeetCode] 13. Roman to Integer (C++)LeetCode/Math 2026. 4. 19. 17:39
Problem Overview Roman to Integer - LeetCodeCan you solve this real interview question? Roman to Integer - Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, 2 is written as II in Roman numeral, just twleetcode.com 이번에 풀 문제는 Roman to Integer로, 7개의 Symbol로 표현되는 로마 숫자를 Integer로 변경하는 코드이다. 난이도는 'Easy'이다...
-
[LeetCode] 9. Palindrome Number (C++)LeetCode/Math 2026. 4. 17. 00:02
https://leetcode.com/problems/palindrome-number?envType=problem-list-v2&envId=math Palindrome Number - LeetCodeCan you solve this real interview question? Palindrome Number - Given an integer x, return true if x is a palindrome, and false otherwise. Example 1: Input: x = 121 Output: true Explanation: 121 reads as 121 from left to right and from right to left. Exleetcode.com Palindrome이란 우리말로 "..