Skip to content

Commit 713e585

Browse files
committed
refine
1 parent e067afb commit 713e585

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

PermutationSequence.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
/**
22
* The set [1,2,3,¡­,n] contains a total of n! unique permutations.
33
*
4-
* By listing and labeling all of the permutations in order,
5-
* We get the following sequence (ie, for n = 3):
4+
* By listing and labeling all of the permutations in order, We get the
5+
* following sequence (ie, for n = 3):
6+
*
7+
* "123" "132" "213" "231" "312" "321" Given n and k, return the kth permutation
8+
* sequence.
69
*
7-
* "123"
8-
* "132"
9-
* "213"
10-
* "231"
11-
* "312"
12-
* "321"
13-
* Given n and k, return the kth permutation sequence.
14-
*
1510
* Note: Given n will be between 1 and 9 inclusive.
16-
*
11+
*
1712
*/
1813

1914
public class PermutationSequence {

0 commit comments

Comments
 (0)