본문 바로가기

LeetCode

(91)
[LeetCode] - 338. Counting Bits LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Counting Bits" 문제입니다.--> https://leetcode.com/problems/counting-bits/description/  문제 : Given an integer n, return an array ans of length n + 1 such that for each i (0 ans[i] is the number of 1's in the binary representation of i.Example 1 : Input :..
[LeetCode] - 232. Implement Queue Using Stacks LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Implement Queue Using Stacks" 문제입니다.--> https://leetcode.com/problems/implement-queue-using-stacks/description/  문제 : Implement a first in first out (FIFO) queue using only two stacks.The implemented queue should support all the functions of a norma..
[LeetCode] - 169. Majority Element LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Majority Element" 문제입니다.--> https://leetcode.com/problems/majority-element/description/  문제 : Given an array nums of size n, return the majority element.The majority element is the element that appears more than ⌊n / 2⌋ times.You may assume that the..
[LeetCode] - 2496. Maximum Value of a String in an Array LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Maximum Value of a String in an Array" 문제입니다.--> https://leetcode.com/problems/maximum-value-of-a-string-in-an-array/description/  문제 : The value of an alphanumeric string can be defined as :The numeric representation of the string in base 10, if it..
[LeetCode] - 2441. Largest Positive Integer That Exists With Its Negative LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Largest Positive Integer That Exists With Its Negative" 문제입니다.--> https://leetcode.com/problems/largest-positive-integer-that-exists-with-its-negative/description/  문제 : Given an integer array nums that does not contain any zeros, find the largest p..
[LeetCode] - 2413. Smallest Even Multiple LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Smallest Even Multiple" 문제입니다.--> https://leetcode.com/problems/smallest-even-multiple/description/  문제 :Given a positive integer n, return the smallest positive integer that is a multiple of both 2 and n.Example 1 : Input : n = 5Output : 10Explanat..
[LeetCode] - 2264. Largest 3 Same Digit Number in String LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Largest 3 Same Digit Number in String" 문제입니다.--> https://leetcode.com/problems/largest-3-same-digit-number-in-string/description/  문제 : You are given a string num representing a large integer. An integer is good if it meets the following conditions ..
[LeetCode] - 2255. Count Prefixes of a Given String LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Count Prefixes of a Given String" 문제입니다.--> https://leetcode.com/problems/count-prefixes-of-a-given-string/description/  문제 : You are given a string array words and a string s, where words[i] and s comprise only of lowercase English letters.Return t..