본문 바로가기

전체 글

(200)
[LeetCode][Union-Find] Redundant Connection 풀어보기 https://leetcode.com/problems/redundant-connection/description/?utm_source=chatgpt.com Redundant Connection - LeetCodeCan you solve this real interview question? Redundant Connection - In this problem, a tree is an undirected graph that is connected and has no cycles. You are given a graph that started as a tree with n nodes labeled from 1 to n, with one additional edge aleetcode.com Union-Find를..
[LeetCode][DP] House Robber 풀어보기 https://leetcode.com/problems/house-robber/description/ House Robber - LeetCodeCan you solve this real interview question? House Robber - You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent holeetcode.com 가장 간단한 형태의 Dynamic Programming 문제입니다.DP문제는 DP임을 파악..
[LeetCode][Topological Sort] Course Schedule 풀어보기 https://leetcode.com/problems/course-schedule/description Course Schedule - LeetCodeCan you solve this real interview question? Course Schedule - There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take coleetcode.com 문제는 위상정렬의 가장 간단한 형태의 문제입니다.위상정렬 문제 자체는 어렵게 나오..
[LeetCode][Graph] Number of Islands 풀어보기 https://leetcode.com/problems/number-of-islands Number of Islands - LeetCodeCan you solve this real interview question? Number of Islands - Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by water and is formed by connecting adjacent lleetcode.com유명한 형태의 2차원 그래프 문제입니다.가장 간단하게 bfs혹은 dfs를 통해서 해결할 수 있습니..
[LeetCode][Binary Search] Search in Rotated Sorted Array 풀어보기 https://leetcode.com/problems/search-in-rotated-sorted-array/description Search in Rotated Sorted Array - LeetCodeCan you solve this real interview question? Search in Rotated Sorted Array - There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is possibly left rotated at an unknown index k (1 leetcode.com문제 자체는 간단합니다. 배열 내부..
[Leetcode] Daily Temperatures 풀어보기 https://leetcode.com/problems/daily-temperatures/description/?utm_source=chatgpt.com Daily Temperatures - LeetCodeCan 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 warmerleetcode.com 이번 문제는 Monotonic..
[Leetcode] Longuset Substring Without... 풀어보기 https://leetcode.com/problems/longest-substring-without-repeating-characters/description Longest Substring Without Repeating Characters - LeetCodeCan you solve this real interview question? Longest Substring Without Repeating Characters - Given a string s, find the length of the longest substring without duplicate characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer i..
[Leetcode] Kth Largest Element 풀어보기 https://leetcode.com/problems/kth-largest-element-in-an-array/description/?utm_source=chatgpt.com Kth Largest Element in an Array - LeetCodeCan you solve this real interview question? Kth Largest Element in an Array - Given an integer array nums and an integer k, return the kth largest element in the array. Note that it is the kth largest element in the sorted order, not the kth distinct elemele..