File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
solution/3400-3499/3470.Permutations IV Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ tags:
108108#### Python3
109109
110110``` python
111+
111112from typing import List
112113from math import factorial
113114import heapq
@@ -180,11 +181,13 @@ class Solution:
180181 if not fff:
181182 return []
182183 return ppp
184+
183185```
184186
185187#### Java
186188
187189``` java
190+
188191import java.util.* ;
189192
190193class DPHelper {
@@ -342,11 +345,13 @@ class Solution {
342345 return ans;
343346 }
344347}
348+
345349```
346350
347351#### C++
348352
349353``` cpp
354+
350355class Solution {
351356 long long f[ 105] ;
352357public:
@@ -387,11 +392,13 @@ public:
387392 return ans;
388393 }
389394};
395+
390396```
391397
392398#### Go
393399
394400```go
401+
395402func permute(n int, k int64) []int {
396403 var f [105]int64
397404 f[0] = 1
@@ -443,6 +450,7 @@ func permute(n int, k int64) []int {
443450 }
444451 return ans
445452}
453+
446454```
447455
448456<!-- tabs: end -->
You can’t perform that action at this time.
0 commit comments