본문 바로가기

LeetCode

(91)
[LeetCode] - 1108. Defanging an IP Address LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Defanging an IP Address" 문제입니다.--> https://leetcode.com/problems/defanging-an-ip-address/description/  문제 : Given a valid (IPv4) IP address, return a defanged version of that IP address.A defanged IP address replaces every period "." with "[.]".Exam..
[LeetCode] - 724. Find Pivot Index LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Find Pivot Index" 문제입니다.--> https://leetcode.com/problems/find-pivot-index/description/  문제 : Given an array of integers nums, calculate the pivot index of this array.The pivot index is the index where the sum of all the numbers strictly to the left..
[LeetCode] - 1281. Subtract the Product and Sum of Digits of an Integer LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Subtract the Product and Sum of Digits of an Integer" 문제입니다.--> https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/description/  문제 : Given an integer number n, return the difference between the product of its digits ..
[LeetCode] - 706. Design HashMap LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Design HashMap" 문제입니다.--> https://leetcode.com/problems/design-hashmap/description/  문제 : Design a HashMap without using any built-in hash table libraries.Implement the MyHashMap class :MyHashMap() initializes the object with an empty map.void put(i..
[LeetCode] - 225. Implementing Stack Using Queues LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Implementing Stack Using Queues" 문제입니다.--> https://leetcode.com/problems/implement-stack-using-queues/description/  문제 : Implement a last-in-first-out (LIFO) stack using only two queues.The implemented stack should support all the functions of a nor..
[LeetCode] - 258. Add Digits LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Add Digits" 문제입니다.--> https://leetcode.com/problems/add-digits/description/  문제 : Given an integer num, repeatedly add all its digits until the result has only one digit, and return it.Example 1 : Input : num = 38Output : 2Explanation : The process ..
[LeetCode] - 2639. Find the Width of Columns of a Grid LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Find the Width of Columns of a Grid" 문제입니다.--> https://leetcode.com/problems/find-the-width-of-columns-of-a-grid/description/  문제 : You are given a 0-indexed m x n integer matrix grid. The width of a column is the maximum length of its integers.For ..
[LeetCode] - 46. Permutations LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '중간 (Medium)' 단계인 "Permutations " 문제입니다.--> https://leetcode.com/problems/permutations/description/  문제 : Given an array nums of distinct integers, return all the possible permutations.You can return the answer in any order.Example 1 : Input : nums = [1,2,3]Output :..