티스토리

.Zzumbong
검색하기 블로그 홈

블로그 홈

.Zzumbong

error404.co.kr/m

Front-End 개발자의 탐험 일지!

구독자
0
방명록 방문하기

주요 글 목록

  • [leetCode/JS] 841. Keys and Rooms 난이도 [ 👿 😊 🤔 ] Hard Medium Easy 문제 설명 There are n rooms labeled from 0 to n - 1 and all the rooms are locked except for room 0. Your goal is to visit all the rooms. However, you cannot enter a locked room without having its key. When you visit a room, you may find a set of distinct keys in it. Each key has a number on it, denoting which room it unlocks, and you can take all of them with you to un.. 공감수 0 댓글수 0 2022. 12. 20.
  • [leetCode/JS] 739. Daily Temperatures 난이도 [ 🤔 ] Medium 문제 설명 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 temperature. If there is no future day for which this is possible, keep answer[i] == 0 instead. 일일 온도가 입력된 배열에서 더 따듯해지는 날까지의 일 수의 배열을 반환하면된다. 없으면 0으로 리턴한다. 입출력 예 Example 1: Input: temp.. 공감수 0 댓글수 0 2022. 12. 18.
  • [leetCode/JS] 150. Evaluate Reverse Polish Notation 난이도 [ 🤔 ] Medium 문제 설명 Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, and /. Each operand may be an integer or another expression. Note that division between two integers should truncate toward zero. It is guaranteed that the given RPN expression is always valid. That means the expression would always evaluate to a result, and there will n.. 공감수 0 댓글수 0 2022. 12. 17.
  • [leetCode/JS] 232. Implement Queue using Stacks 난이도 [ 😊 ] Easy 문제 설명 Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, and empty). Implement the MyQueue class: void push(int x) Pushes element x to the back of the queue. int pop() Removes the element from the front of the queue and returns it. int peek() Returns the element at the front .. 공감수 0 댓글수 0 2022. 12. 16.
  • [leetCode/JS] 1143. Longest Common Subsequence 난이도 [ 🤔 ] Medium 문제 설명 Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0. A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without changing the relative order of the remaining characters. For example, "ace" is a subsequence of "abcde". A commo.. 공감수 0 댓글수 0 2022. 12. 15.
  • [leetCode/JS] 152. Maximum Product Subarray 난이도 [ 🤔 ] Medium 문제 설명 Given an integer array nums, find a subarray that has the largest product, and return the product. The test cases are generated so that the answer will fit in a 32-bit integer. 연속된 element 중 곱했을 때, 가장큰 수를 return 한다. 입출력 예 Example 1: Input: nums = [2,3,-2,4] Output: 6 Explanation: [2,3] has the largest product 6. Example 2: Input: nums = [-2,0,-1] Output: 0 Explanation: The.. 공감수 0 댓글수 0 2022. 12. 14.
  • [leetCode/JS] 198. House Robber 난이도 [ 🤔 ] Medium 문제 설명 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 houses have security systems connected and it will automatically contact the police if two adjacent houses were broken into on the same night. Given an integer array nums represent.. 공감수 0 댓글수 0 2022. 12. 14.
  • [leetCode/JS] 931. Minimum Falling Path Sum 난이도 [ 🤔 ] Medium 문제 설명 Given an n x n array of integers matrix, return the minimum sum of any falling path through matrix. A falling path starts at any element in the first row and chooses the element in the next row that is either directly below or diagonally left/right. Specifically, the next element from position (row, col) will be (row + 1, col - 1), (row + 1, col), or (row + 1, col + 1). n .. 공감수 0 댓글수 0 2022. 12. 13.
  • [leetCode/JS] 70. Climbing Stairs 난이도 [ 😊 ] Easy 문제 설명 You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? n 계단을 올라가는데, 1 또는 2칸 씩 올라 갈 때, 모든 경우의 수는 얼마인가? 입출력 예 Example 1: Input: n = 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step 2. 2 steps Example 2: Input: n = 3 Output: 3 Explanation.. 공감수 0 댓글수 0 2022. 12. 12.
  • [leetCode/JS] 124. Binary Tree Maximum Path Sum 난이도 [ 👿 ] Hard 문제 설명 A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can only appear in the sequence at most once. Note that the path does not need to pass through the root. The path sum of a path is the sum of the node's values in the path. Given the root of a binary tree, return the maximum path sum of any non.. 공감수 0 댓글수 0 2022. 12. 11.