yono.dev

LeetCodeがんばるぞ

2024-03-28から1日間の記事一覧

189. Rotate Array

問題概要 Given an integer array nums, rotate the array to the right by k steps, where k is non-negative. integerの配列を右にk回ローテートする。 問題URL:https://leetcode.com/problems/rotate-array/description/ 解法1 ブルートフォースな解法。…