2023/12 41

[Leetcode 아주 상세한 문제풀이] 190. Reverse Bits - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 190번 문제 Reverse bits 이다. 우선 문제를 살펴보자. 리트코드 190번 문제 Reverse bits Reverse Bits - LeetCode Reverse Bits - LeetCode Can you solve this real interview question? Reverse Bits - Reverse bits of a given 32 bits unsigned integer. Note: * Note that in some languages, such as Java, there is no unsigned integer type. In this case, both input and output will be given as a signed ..

Leetcode/Binary 2023.12.26

[Leetcode 아주 상세한 문제풀이] 1143. Longest Common Subsequence - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 1143번 문제 Longest Common Subsequence 다. 우선 문제를 살펴보자. 리트코드 1143번 문제 Longest Common Subsequence 링크 Longest Common Subsequence - LeetCode Longest Common Subsequence - LeetCode Can you solve this real interview question? Longest Common Subsequence - Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence,..

[Leetcode 아주 상세한 문제풀이] 322. Coin Change - 코드 line별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 322번 문제 Coin change 다. 우선 문제를 살펴보자. 리트코드 322번 문제 Coin change 링크 Coin Change - LeetCode Coin Change - LeetCode Can you solve this real interview question? Coin Change - You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return the fewest number of coins that you need to make le..

[Leetcode 아주 상세한 문제풀이] 300. Longest Increasing Subsequence – 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 300번 문제 Longest Increasing Subsequence 다. 우선 문제를 살펴보자. 리트코드 300번 문제 Longest Increasing Subsequence 링크 Longest Increasing Subsequence - LeetCode Longest Increasing Subsequence - LeetCode Can you solve this real interview question? Longest Increasing Subsequence - Given an integer array nums, return the length of the longest strictly increasing subsequence. Example 1: ..

[Leetcode 아주 상세한 문제풀이] 213. House Robber II – 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 213번 문제 House Robbert II 다. 우선 문제를 살펴보자. 리트코드 213번 문제 House Robbert II 링크 House Robber II - LeetCode House Robber II - LeetCode Can you solve this real interview question? House Robber II - You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That mean..

[Leetcode 아주 상세한 문제풀이] 198. House Robber - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 198번 문제 House Robber 다. 우선 문제를 살펴보자. 리트코드 198번 문제 House Robber 링크 House Robber - LeetCode House Robber - LeetCode Can 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 h..

[Leetcode 아주 상세한 문제풀이] 139. Word Break - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 139번 문제 Word Break 이다. 우선 문제를 살펴보자. 리트코드 139번 문제 Word Break 링크 Word Break - LeetCode Word Break - LeetCode Can you solve this real interview question? Word Break - Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more dictionary words. Note that the same word in the dictionary may leetc..

[Leetcode 아주 상세한 문제풀이] 91. Decode Ways – 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 91번 문제 Decode Ways 다. 우선 문제를 살펴보자. 리트코드 91번 문제 Decode Ways 링크 Decode Ways - LeetCode Decode Ways - LeetCode Can you solve this real interview question? Decode Ways - A message containing letters from A-Z can be encoded into numbers using the following mapping: 'A' -> "1" 'B' -> "2" ... 'Z' -> "26" To decode an encoded message, all the digits must be grouped then leet..

[Leetcode 아주 상세한 문제풀이] 70. Climbing stairs - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 70번 문제 Climbing stairs 다. 우선 문제를 살펴보자. 리트코드 70번 문제 Climbing stairs 링크 Climbing Stairs - LeetCode Climbing Stairs - LeetCode Can you solve this real interview question? Climbing Stairs - 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? Example 1: Input: n =..

[Leetcode 아주 상세한 문제풀이] 62. Unique Paths – 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 62번 문제 Unique paths 다. 우선 문제를 살펴보자. 리트코드 62번 문제 Unique paths 링크 Unique Paths - LeetCode Unique Paths - LeetCode Can you solve this real interview question? Unique Paths - There is a robot on an m x n grid. The robot is initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to the bottom-right corner (i.e., grid[m - 1][n - 1]). The robot ..