์•Œ๊ณ ๋ฆฌ์ฆ˜๐Ÿฅš/๋ฌธ์ œํ’€์ด (Python) 30

[LeetCode] 739. daily_temperatures (Medium) 2023/5/9

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 739. daily_temperatures 66.3% Medium Daily Temperatures - LeetCode Can you solve this real interview question? Daily Temperatures - Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait after the ith day to get a warmer leetcode.com ๋ฌธ์ œ์š”์•ฝ ๋ฌธ์žํ˜•์„ ์›์†Œ๋กœ ๊ฐ€์ง€๋Š” ๋ฐฐ์—ด์ด ์ฃผ์–ด์งˆ ๋•Œ, ์˜ค๋Š˜๋ณด๋‹ค ๋” ๋”ฐ๋œปํ•œ ๋‚ ์”จ๋ฅผ ์œ„ํ•ด์„œ๋Š”..

[LeetCode] 316. remove_duplicate_letters (Medium) 2023/5/8

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 316. remove_duplicate_letters 45.2% Medium Remove Duplicate Letters - LeetCode Can you solve this real interview question? Remove Duplicate Letters - Given a string s, remove duplicate letters so that every letter appears once and only once. You must make sure your result is the smallest in lexicographical order among all possible re leetcode.com ๋ฌธ์ œ์š”์•ฝ ๋ฌธ์ž์—ด์ด ์ฃผ์–ด์งˆ ๋•Œ ์ค‘๋ณต ๋ฌธ์ž๋ฅผ ์ œ๊ฑฐํ•œ, ์ œ์ผ ์ž‘์€ ์‚ฌ..

[LeetCode] 20. Valid_Parentheses (Easy) 2023/5/8

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 20. Valid_Parentheses 40.5% Easy Valid Parentheses - LeetCode Can you solve this real interview question? Valid Parentheses - Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 1. Open brackets must be closed by the sam leetcode.com ๋ฌธ์ œ์š”์•ฝ ๋ฌธ์ž์—ด์ด ์ฃผ์–ด์งˆ ๋•Œ, ์ž…๋ ฅ๊ฐ’์ด ์˜ฌ๋ฐ”๋ฅธ์ง€ ํŒ๋‹จํ•˜๋ผ ์กฐ๊ฑด 1) ๋ฌธ์ž์—ด์€ ์†Œ๊ด„ํ˜ธ (), ์ค‘..

[LeetCode] 2. Add_Two_Numbers (Medium) 2023/5/5

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 2. Add-Two-Numbers 40.5% Medium Add Two Numbers - LeetCode Can you solve this real interview question? Add Two Numbers - You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and leetcode.com ๋ฌธ์ œ์š”์•ฝ ์—ญ์ˆœ์œผ๋กœ ์ €์žฅ๋œ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ์˜ ํ•ฉ์„ ๊ตฌํ•˜์—ฌ๋ผ ์กฐ๊ฑด 1) ๋‘ ๊ฐœ์˜ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ์˜ ๊ธธ์ด๋Š” 1 ์ด์ƒ ..

[LeetCode] 206. Reverse_Linked_List (Easy) 2023/5/5

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 206. Reverse-Linked-List 73.7% Easy Reverse Linked List - LeetCode Can you solve this real interview question? Reverse Linked List - Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: [https://assets.leetcode.com/uploads/2021/02/19/rev1ex1.jpg] Input: head = [1,2,3,4,5] O leetcode.com ๋ฌธ์ œ์š”์•ฝ ๋‹จ์ผ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ๋ฅผ ๋’ค์ง‘์–ด๋ผ ์กฐ๊ฑด 1) ๋‹จ์ผ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ์˜ ํ—ค๋”๊ฐ€ ์ฃผ์–ด์ง„๋‹ค ์กฐ๊ฑด 2)..

[LeetCode] 21. Merge_Two_Sorted_Lists (Easy) 2023/5/5

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 21. Merge-Two-Sorted-Lists 62.6% Easy Merge Two Sorted Lists - LeetCode Can you solve this real interview question? Merge Two Sorted Lists - You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists leetcode.com ๋ฌธ์ œ์š”์•ฝ ์ •๋ ฌ๋˜์–ด ์žˆ๋Š” ๋‘ ๊ฐœ์˜ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ๋ฅผ ํ•˜๋‚˜์˜ ์ •๋ ฌ๋œ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ๋กœ ๋ณ‘ํ•ฉ..

[LeetCode] 234. Palindrome_Linked_list (Easy) 2023/5/4

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 234. Palindrome-Linked-list 50.3% Easy Palindrome Linked List - LeetCode Can you solve this real interview question? Palindrome Linked List - Given the head of a singly linked list, return true if it is a palindrome or false otherwise. Example 1: [https://assets.leetcode.com/uploads/2021/03/03/pal1linked-list.jpg] Input: hea leetcode.com ๋ฌธ์ œ์š”์•ฝ ๋‹จ์ผ ์—ฐ๊ฒฐ ๋ฆฌ์ŠคํŠธ๊ฐ€ ํŒฐ๋ฆฐ๋“œ๋กฌ์ธ์ง€ ํŒ๋‹จํ•˜์—ฌ๋ผ ์กฐ๊ฑด 1) ๋‹จ์ผ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ์˜..

[LeetCode] 121. Best_Time_to_Buy_and_Sell_Stock (Easy) 2023/5/3

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 121. Best-Time-to-Buy-and-Sell-Stock 54.3% Easy Best Time to Buy and Sell Stock - LeetCode Can you solve this real interview question? Best Time to Buy and Sell Stock - You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a single day to buy one stock and choosin leetcode.com ๋ฌธ์ œ์š”์•ฝ ์ฃผ์‹ ๊ฑฐ๋ž˜๋ฅผ ํ†ตํ•ด ์ด์ต์˜ ์ตœ๋Œ“๊ฐ’์„..

[LeetCode] 238. product_of_array_except_self (Medium) 2023/5/2

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 238. product-of-array-except-self 65.1% Medium Product of Array Except Self - LeetCode Can you solve this real interview question? Product of Array Except Self - Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. The product of any prefix or suffix of nu leetcode.com ๋ฌธ์ œ์š”์•ฝ ๋ฐฐ์—ด์˜ ์š”์†Œ ์ค‘ ์ž์‹ ์„ ์ œ์™ธํ•œ ๋‚˜๋จธ์ง€์˜ ..

[LeetCode] 561. array_partition_i (Easy) 2023/5/2

๋ฌธ์ œ ์ œ๋ชฉ ์ •๋‹ต๋ฅ  ๋‚œ์ด๋„ 561. array-partition-i 77.3% Easy Array Partition - LeetCode Can you solve this real interview question? Array Partition - Given an integer array nums of 2n integers, group these integers into n pairs (a1, b1), (a2, b2), ..., (an, bn) such that the sum of min(ai, bi) for all i is maximized. Return the maximized sum. leetcode.com ๋ฌธ์ œ์š”์•ฝ 2n ๊ฐœ์˜ ์ •์ˆ˜ํ˜• ๋ฐฐ์—ด์ด ์ฃผ์–ด์งˆ ๋•Œ, ์ž„์˜์˜ ๋‘ ์›์†Œ๋กœ ๊ตฌ์„ฑ๋œ n๊ฐœ์˜ ์Œ์ด ์žˆ๋‹ค๊ณ  ํ•˜์ž..

728x90