리트코드 64

[Leetcode 아주 상세한 문제풀이] 208. Implement Trie (Prefix Tree) - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 208번 문제 Implement Trie (Prefix Tree) 다. 우선 문제를 살펴보자. 리트코드 208번 문제 Implement Trie (Prefix Tree) 링크 https://leetcode.com/problems/implement-trie-prefix-tree/ Implement Trie (Prefix Tree) - LeetCode Can you solve this real interview question? Implement Trie (Prefix Tree) - A trie [https://en.wikipedia.org/wiki/Trie] (pronounced as "try") or prefix tree is a tree data st..

Leetcode/Tree 2024.01.15

[Leetcode 아주 상세한 문제풀이] 104. Maximum Depth of Binary Tree - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 104번 문제 Maximum Depth of BInary Tree 다. 우선 문제를 살펴보자. 리트코드 104번 문제 Maximum Depth of BInary Tree 링크 https://leetcode.com/problems/maximum-depth-of-binary-tree/description/ Maximum Depth of Binary Tree - LeetCode Can you solve this real interview question? Maximum Depth of Binary Tree - Given the root of a binary tree, return its maximum depth. A binary tree's maximum d..

Leetcode/Tree 2024.01.14

[Leetcode 아주 상세한 문제풀이] 102. Binary Tree Level Order Traversal – 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 102번 문제 Binary Tree Level Order Traversal 다. 우선 문제를 살펴보자. 리트코드 102번 문제 Binary Tree Level Order Traversal 링크 https://leetcode.com/problems/binary-tree-level-order-traversal/ Binary Tree Level Order Traversal - LeetCode Can you solve this real interview question? Binary Tree Level Order Traversal - Given the root of a binary tree, return the level order traversal of it..

Leetcode/Tree 2024.01.13

[Leetcode 아주 상세한 문제풀이] 105. Construct Binary Tree from Preorder and Inorder Traversal - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 105번 문제 Construct Binary Tree from Preorder and Inorder Traversal 이다. 우선 문제를 살펴보자. 리트코드 105번 문제 Construct Binary Tree from Preorder and Inorder Traversal 링크 https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/ Construct Binary Tree from Preorder and Inorder Traversal - LeetCode Can you solve this real interview question..

Leetcode/Tree 2024.01.12

[Leetcode 아주 상세한 문제풀이] 98. Validate Binary Search Tree – 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 98번 문제 Validate binary search tree 다. 우선 문제를 살펴보자. 리트코드 98번 문제 Validate binary search tree 링크 https://leetcode.com/problems/validate-binary-search-tree/description/ Validate Binary Search Tree - LeetCode Can you solve this real interview question? Validate Binary Search Tree - Given the root of a binary tree, determine if it is a valid binary search tree (BST). A val..

Leetcode/Tree 2024.01.11

[Leetcode 아주 상세한 문제풀이] 79. Word Search – 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 19번 문제 Remove Nth Node From End of List 다. 우선 문제를 살펴보자. 리트코드 19번 문제 Remove Nth Node From End of List 링크 https://leetcode.com/problems/word-search/ Word Search - LeetCode Can you solve this real interview question? Word Search - Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters o..

Leetcode/Matrix 2024.01.10

[Leetcode 아주 상세한 문제풀이] 54. Spiral Matrix – 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 54번 문제 Spiral Matrix 다. 우선 문제를 살펴보자. 리트코드 54번 문제 Spiral Matrix 링크 https://leetcode.com/problems/spiral-matrix/ Spiral Matrix - LeetCode Can you solve this real interview question? Spiral Matrix - Given an m x n matrix, return all elements of the matrix in spiral order. Example 1: [https://assets.leetcode.com/uploads/2020/11/13/spiral1.jpg] Input: matrix = [[1,2,3],[4..

Leetcode/Matrix 2024.01.08

[Leetcode 아주 상세한 문제풀이] 48. Rotate Image - 코드 line 별 설명

Leetcode 설명 이번에 풀어볼 문제는 리트코드 48번 문제 Rotate Image 다. 우선 문제를 살펴보자. 리트코드 48번 문제 Rotate Image 링크 https://leetcode.com/problems/rotate-image/ Rotate Image - LeetCode Can you solve this real interview question? Rotate Image - You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place [https://en.wikipedia.org/wiki/In-place_..

Leetcode/Matrix 2024.01.07

[Leetcode 아주 상세한 문제풀이] 647. Palindromic Substrings – 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 647번 문제 Palindromic substrings 다. 우선 문제를 살펴보자. 리트코드 647번 문제 Palindromic substrings 링크 https://leetcode.com/problems/palindromic-substrings/ Palindromic Substrings - LeetCode Can you solve this real interview question? Palindromic Substrings - Given a string s, return the number of palindromic substrings in it. A string is a palindrome when it reads the same backward ..

Leetcode/String 2024.01.06

[Leetcode 아주 상세한 문제풀이] 424. Longest Repeating Character Replacement - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 42번 문제 Longest Repeating Character Replacement 다. 우선 문제를 살펴보자. 리트코드 42번 문제 Longest Repeating Character Replacement 링크 https://leetcode.com/problems/longest-repeating-character-replacement/ Longest Repeating Character Replacement - LeetCode Can you solve this real interview question? Longest Repeating Character Replacement - You are given a string s and an integer k. ..

Leetcode/String 2024.01.05