Interview Algorithms: Difference between revisions

No edit summary
Line 25: Line 25:
* [https://leetcode.com/problems/permutations/ Permutations]
* [https://leetcode.com/problems/permutations/ Permutations]
* [https://leetcode.com/problems/permutations-ii/ Permutations-iii]
* [https://leetcode.com/problems/permutations-ii/ Permutations-iii]
{{ hidden | Permute Brute-force solution
{{ hidden | Permute Brute-force solution |
A more advanced solution would use backtracking, however it is time-consuming to implement for an interview.<br>
A more advanced solution would use backtracking, however it is time-consuming to implement for an interview.<br>
Here is a quick brute-force solution.
Here is a quick brute-force solution.