본문 바로가기

LeetCode

(91)
[LeetCode] - 2185. Counting Words With a Given Prefix LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Counting Words With a Given Prefix" 문제입니다.--> https://leetcode.com/problems/counting-words-with-a-given-prefix/description/  문제 : You are given an array of strings words and a string pref. Return the number of strings in words that contain pref as a..
[LeetCode] - 1903. Largest Odd Number in String LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Largest Odd Number in String" 문제입니다.--> https://leetcode.com/problems/largest-odd-number-in-string/description/  문제 : You are given a string num, representing a large integer.Return the largest-valued odd integer (as a string) that is a non-empty su..
[LeetCode] - 1920. Build Array from Permutation LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Build Array from Permutation" 문제입니다.--> https://leetcode.com/problems/build-array-from-permutation/description/  문제 : Given a zero-based permutation nums (0-indexed), build an array ans of the same length where ans[i] = nums[nums[i]] for each 0 A ze..
[LeetCode] - 2351. First Letter to Appear Twice LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "First Letter to Appear Twice" 문제입니다.--> https://leetcode.com/problems/first-letter-to-appear-twice/description/  문제 : Given a string s consisting of lowercase English letters, return the first letter to appear twice.Note :A letter a appears twice be..
[LeetCode] - 1837. Sum of Digits in Base K LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Sum of Digits in Base K" 문제입니다.--> https://leetcode.com/problems/sum-of-digits-in-base-k/description/ 문제 : Given an integer n (in base 10) and a base k, return the sum of the digits of n after converting n from base 10 to base k. After converting, e..
[LeetCode] - 2129. Capitalize the Title LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Capitalize the Title" 문제입니다.--> https://leetcode.com/problems/capitalize-the-title/description/  문제 : You are given a string title consisting of one or more words separated by a single space, where each word consists of English letters.Capitalize th..
[LeetCode] - 2169. Count Operations to Obtain Zero LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Count Operations to Obtain Zero" 문제입니다.--> https://leetcode.com/problems/count-operations-to-obtain-zero/description/  문제 : You are given two non-negative integers num1 and num2.In one operation, if num1 >= num2, you must subtract num2 from num1, ot..
[LeetCode] - 2239. Find Closest Number to Zero LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Find Closest Number to Zero" 문제입니다.--> https://leetcode.com/problems/find-closest-number-to-zero/description/  문제 : Given an integer array nums of size n, return the number with the value closest to 0 in nums.If there are multiple answers, return th..