LoginSignup
0
1

2次元配列と1次元配列の相互変換

Posted at

ロジックとしては以下だけの模様。

p.x = index / 3;
p.y = index % 3;

どの言語であれ、競プロであれ、配列の処理は大事。

👉 【 Swift 】2次元配列と1次元配列の相互変換 🤔 hatena-bookmark

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1