LeetCode 【LeetCode】733. Flood Fill 解答・解説【Python】 学習メモ 自分の言葉で書くことで理解できていない部分をハッキリさせたい。 問題 原文 An image is represented by an m x n integer grid image where image repr... 2023.04.08 LeetCodePythonアルゴリズム幅優先探索深さ優先探索
LeetCode 【LeetCode】567. Permutation in String 解答・解説【Python】 学習メモ 自分の言葉で書くことで理解できていない部分をハッキリさせたい。 問題 原文 Given two strings s1 and s2, return true if s2 contains a permutation o... 2023.04.08 LeetCodePythonアルゴリズムスライディングウインドウ
LeetCode 【LeetCode】19. Remove Nth Node From End of List 解答・解説【Python】 学習メモ。 自分の言葉で書くことで理解できていない部分をはっきりさせる。 問題 原文 Given the head of a linked list, remove the nth node from the end of th... 2023.04.08 LeetCodePythontwo pointerアルゴリズム単方向連結リスト連結リスト
LeetCode 【LeetCode】344. Reverse String 解答・解説【Python】 問題 原文 Write a function that reverses a string. The input string is given as an array of characters s. You must do... 2023.04.06 LeetCodePythonRusttwo pointerアルゴリズム
LeetCode 【LeetCode】167. Two Sum II – Input Array Is Sorted 解答・解説【Python】 問題 原文 Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers s... 2023.04.05 LeetCodePythontwo pointerアルゴリズム二分探索
LeetCode 【LeetCode】283. Move Zeroes 解答・解説【Python】 問題 原文 Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zer... 2023.04.05 LeetCodePythonRusttwo pointer
LeetCode 【LeetCode】977. Squares of a Sorted Array 解答・解説【Python】 問題 原文 Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sort... 2023.04.03 LeetCodePython
LeetCode 【LeetCode】15. 3Sum 解答・解説【Python】 問題 原文 Given an integer array nums, return all the triplets , nums, nums] such that i != j, i != k, and j != k, and n... 2023.04.03 LeetCodePythontwo pointer
LeetCode 【LeetCode】11. Container With Most Water 解答・解説【Python】 問題 原文 You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoint... 2023.04.02 LeetCodePythonRust
LeetCode 【LeetCode】278. First Bad Version 解答・解説【Python】 はじめに LeetCodeの問題を解答します。 なるべく、問題の和訳と詳細なコメントを書いています。 余裕があれば、複数のアプローチの解答と、実際の面接を想定して英語での解法やコメントを書いています。 ... 2023.04.02 LeetCodePythonアルゴリズム二分探索