LeetCode 【LeetCode】217. Contains Duplicate 解答・解説【Python】 問題 原文 Given an integer array nums, return true if any value appears at least twice in the array, and return false if... 2023.01.18 LeetCodePython
LeetCode 【LeetCode】141. Linked List Cycle 解答・解説【Python】 問題 原文 Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in ... 2023.01.10 LeetCodePythonアルゴリズムデータ構造フロイドの循環検出法循環リスト連結リスト
LeetCode 【LeetCode】136. Single Number 解答・解説【Python】 問題 原 Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. ... 2023.01.10 LeetCodePython
LeetCode 【LeetCode】119. Pascal’s Triangle II 解答・解説【Python】 問題 原文 Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal's triangle. In Pascal's tria... 2023.01.03 LeetCodePython
LeetCode 【LeetCode】118. Pascal’s Triangle 解答・解説【Python】 はじめに LeetCodeの問題を解答します。 なるべく、問題の和訳と詳細なコメントを書いています。 余裕があれば、複数のアプローチの解答と、実際の面接を想定して英語での解法やコメントを書いています。 ... 2023.01.03 LeetCodePythonアルゴリズム動的計画法
LeetCode 【LeetCode】112. Path Sum 解答・解説【Python】 はじめに LeetCodeの問題を解答します。 なるべく、問題の和訳と詳細なコメントを書いています。 余裕があれば、複数のアプローチの解答と、実際の面接を想定して英語での解法やコメントを書いています。 ... 2023.01.03 LeetCodePythonアルゴリズム
LeetCode 【LeetCode】 111. Minimum Depth of Binary Tree 解答・解説【Python】 問題 原文 Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path... 2023.01.02 LeetCodePythonアルゴリズム
LeetCode 【LeetCode】 110. Balanced Binary Tree 解答・解説【Python】 問題 原文 Given a binary tree, determine if it is height-balanced. Example 1: Input: root = Output: tr... 2023.01.02 LeetCodePython
LeetCode 【LeetCode】 108. Convert Sorted Array to Binary Search Tree 解答・解説【Python】 問題 原文 Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced ... 2022.12.25 LeetCodePython
LeetCode 【LeetCode】 101. Symmetric Tree 解答・解説【Python】 問題 原文 Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center). ... 2022.12.25 LeetCodePython