Rust

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...
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...
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...
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: ...
Rust

【Rust】基本操作

基本操作 変数の設定 定数の設定 ・定数はコード全体で何度も使われる値を設定できる ・型設定が必須 ・大文字のスネークケース SCREAMING_SNAKE_CASEを使用する 配列 ...