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 @@ -111,6 +111,7 @@ tags:
111111#### Python3
112112
113113``` python
114+
114115from typing import List
115116from math import factorial
116117import heapq
@@ -183,11 +184,13 @@ class Solution:
183184 if not fff:
184185 return []
185186 return ppp
187+
186188```
187189
188190#### Java
189191
190192``` java
193+
191194import java.util.* ;
192195
193196class DPHelper {
@@ -345,11 +348,13 @@ class Solution {
345348 return ans;
346349 }
347350}
351+
348352```
349353
350354#### C++
351355
352356``` cpp
357+
353358class Solution {
354359 long long f[ 105] ;
355360public:
@@ -390,11 +395,13 @@ public:
390395 return ans;
391396 }
392397};
398+
393399```
394400
395401#### Go
396402
397403```go
404+
398405func permute(n int, k int64) []int {
399406 var f [105]int64
400407 f[0] = 1
@@ -446,6 +453,7 @@ func permute(n int, k int64) []int {
446453 }
447454 return ans
448455}
456+
449457```
450458
451459<!-- tabs: end -->
You can’t perform that action at this time.
0 commit comments