0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Java 順列を作成する

Posted at

Javaには順列作成用のAPIがないため自力で作成する

考え方
①元々の配列からひとつずつ新たに作成した配列に格納する
②要素の重複回避のため、boolean型の配列を作成し便宜的に使用する

参考
順列 (permutation) を作成する
https://maku77.github.io/java/numstr/permutation.html

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?