본문 바로가기

LeetCode41

[LeetCode] 49. Group Anagrams 문제 URL : https://leetcode.com/problems/group-anagrams/ Group Anagrams - LeetCode Can you solve this real interview question? Group Anagrams - Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase leetcode.com 문제 접근법 : 그룹으로된 anagrams의 문자열을 찾는문제인데 해당 문자열 이주어.. 2023. 12. 21.
[LeetCode] 85. Maximal Rectangle 문제 URL : https://leetcode.com/problems/maximal-rectangle/ Maximal Rectangle - LeetCode Can you solve this real interview question? Maximal Rectangle - Given a rows x cols binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example 1: [https://assets.leetcode.com/uploads/2020/09/14/ma leetcode.com 문제 접근법 : 2차원 배열에서 가장큰 직사각형을 찾는문제인데 백준의 6549번문.. 2023. 10. 15.
[LeetCode] 315. Count of Smaller Numbers After Self 문제 URL : https://leetcode.com/problems/count-of-smaller-numbers-after-self/description/ Count of Smaller Numbers After Self - LeetCode Can you solve this real interview question? Count of Smaller Numbers After Self - Given an integer array nums, return an integer array counts where counts[i] is the number of smaller elements to the right of nums[i]. Example 1: Input: nums = [5,2,6,1] O leetcode... 2023. 10. 15.
[LeetCode] 282. Expression Add Operators 문제 URL : https://leetcode.com/problems/expression-add-operators/ Expression Add Operators - LeetCode Can you solve this real interview question? Expression Add Operators - Given a string num that contains only digits and an integer target, return all possibilities to insert the binary operators '+', '-', and/or '*' between the digits of num so that the re leetcode.com 문제 접근법: 숫자와 숫자 사이에 연산자를 집어 .. 2023. 10. 14.