LoginSignup
0
0

More than 3 years have passed since last update.

組み合わせの列挙

Posted at

phpで組み合わせのコードを書きたいです。

1から9までの重複のない4つの数字を使用し,それらの並びの組み合わせを出力したいです。
例えば

1 2 3 4

という並びの組み合わせは4!=24通りあります。

1234
1243
1324
.
.
.
中略
.
.
.
4321

丸投げする気はなく、このコードを書くためのヒントを頂けたら嬉しいです。

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