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アルゴリズム二分探索
LeetCode 【LeetCode】7. Reverse Integer 解答・解説【Python】 問題 原文 Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outs... 2023.03.31 LeetCodePython
LeetCode 【LeetCode】6. Zigzag Conversion 解答・解説【Python】 問題 原文 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want ... 2023.03.29 LeetCodePython
LeetCode 【LeetCode】5. Longest Palindromic Substring 解答・解説【Python】 問題 原文 Given a string s, return the longest palindromic substring in s. Example 1: Example 2: Constraint... 2023.03.28 LeetCodePythonアルゴリズム動的計画法
LeetCode 【LeetCode】12. Integer to Roman 解答・解説【Python】 問題 原文 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, 2 is writte... 2023.03.11 LeetCodePythonハッシュテーブル
LeetCode 【LeetCode】3.Longest Substring Without Repeating Characters 解答・解説【Python】 問題 原文 Given a string s, find the length of the longest substring without repeating characters. Example 1: ... 2023.03.02 LeetCodePythonRusttwo pointerアルゴリズムハッシュテーブル