Algorithm Designa64_q1_permu_before
Permutation with Constraint
0138bd2a-5f8a-45c1-921f-61521e494abb.cppC++
1// Loading code...Selected Submission
50 / 100
0.07s
1464 KB
BacktrackImplementation
Time Comp.
O(n!)
Space Comp.
O(n)
Readability
5/10
"The code generates permutations with constraints based on a given map of restrictions. It uses recursion to explore possible paths, making it a backtracking algorithm."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #6 | 50 | 1/31/2025 |
| Try #5 | 50 | 1/31/2025 |
| Try #4 | 0 | 1/31/2025 |
| Try #3 | 50 | 1/31/2025 |
| Try #2 | 50 | 1/31/2025 |
| Try #1 | 0 | 1/31/2025 |