본문 바로가기

LeetCode

(91)
[LeetCode] - 58. Length of Last Word LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Length of Last Word" 문제입니다.--> https://leetcode.com/problems/length-of-last-word/description/ 문제 : Given a string s consisting of words and spaces, return the length of the last word in the string.A word is a maximal substring consisting of non-spac..
[LeetCode] - 263. Ugly Number LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Ugly Number" 문제입니다.--> https://leetcode.com/problems/ugly-number/description/ 문제 : An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5.Given an integer n, return true if n is an ugly number.Example 1 :Input : n = 6 Ou..
[LeetCode] - 66. Plus One LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Plus One" 문제입니다.--> https://leetcode.com/problems/plus-one/description/ 문제 : 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 l..
[LeetCode] - 744. Find Smallest Letter Greater Than Target LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Find Smallest Letter Greater Than Target" 문제입니다.--> https://leetcode.com/problems/find-smallest-letter-greater-than-target/description/ 문제 : You are given an array of characters letters that is sorted in non-decreasing order, and a character target...
[LeetCode] - 28. Find the Index of the First Occurrence in a String LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Find the Index of the First Occurrence in a String" 문제입니다.--> https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/description/ 문제 : Given two strings needle and haystack, return the index of the first occurrence of needl..
[LeetCode] - 27. Remove Element LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Remove Element" 문제입니다.--> https://leetcode.com/problems/remove-element/description/ 문제 : Given an integer array nums and an integer val, remove all occurrences of val in nums in-place.The order of the elements may be changed. Then return the number ..
[LeetCode] - 9. Palindrome Number LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Palindrome Number" 문제입니다.--> https://leetcode.com/problems/palindrome-number/description/ 문제 : Given an integer x, return true if x is a palindrome, and false otherwise. Example 1 :Input : x = 121Output : trueExplanation : 121 reads as 121 from left..
[LeetCode] - 1. Two Sum LeetCode는 프로그래밍 문제를 풀며 코딩 실력을 향상할 수 있는 온라인 플랫폼입니다. 다양한 알고리즘 및 데이터 구조 문제를 제공하며, 면접 대비에 유용합니다. 해당 문제는, LeetCode Problems에서 볼 수 있는 난이도 '쉬움 (Easy)' 단계인 "Two Sum" 문제입니다.--> https://leetcode.com/problems/two-sum/description/ 문제 : Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly on..