File: root - text - article - 2020 - 01 - permutations-of-numbers.txt
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Category: Computing | 241 Views, 21906 Search Bots | 38 Words
| Browse | Archive
![Subscribe to Feed Burner Subscribe to Feed Burner](/images/form/rss.gif)
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Category: Computing | 241 Views, 21906 Search Bots | 38 Words
![Subscribe to Feed Burner Subscribe to Feed Burner](/images/form/rss.gif)
Hi, here's your problem today. This problem was recently asked by Facebook:
You are given an array of integers. Return all the permutations of this array.
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Cateogry: Computing | 241 Views, 21906 Search Bots | 38 Words You are given an array of integers. Return all the permutations of this array.
def permute(nums):
# Fill this in.
print permute([1, 2, 3])
# [[1, 2, 3], [2, 1, 3], [2, 3, 1], [1, 3, 2], [3, 1, 2], [3, 2, 1]]
![Subscribe to Feed Burner Subscribe to Feed Burner](/images/form/rss.gif)
Related Articles
- Algorithm Interview Question: Nth Fibonacci Number
- Daily Interview Problem: Find the Number of Islands
- Algorithm Interview: Subarray With Target Sum
- CVE-2015-8874 - cPanel EasyApache Vulnerabilities
- Autorun.inf Virus Protection
- Batch Programming in XP
- Daily Interview Problem: Minimum Removals for Valid Parenthesis
- Spectrum Master
- Daily Interview Problem: Arithmetic Binary Tree
- [Daily Problem] Longest Increasing Subsequence
©2006~2024 SteakOverCooked - 0.01684 Seconds(s) - 1120.064 KB/s - 8 Online
Memory: 492.02 KB
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - Server PHP Version: 7.4.33
How to Cook a Perfect Steak? | <meta name="robots" content="index, follow">
![](/images/top.jpg)
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - Server PHP Version: 7.4.33
Read & Write - Normal - Mini - Post - All Comments - Statistics
Be the first one to comment this page !