Home  >  Article  >  Backend Development  >  [算法]排列组合的算法

[算法]排列组合的算法

WBOY
WBOYOriginal
2016-06-13 12:10:17761browse

[算法求助]求一个排列组合的算法
是这样的
从0~9,a~z这36个字符中随机抽取3个数,计算有多少种排列组合的方法
求大神指教
------解决思路----------------------
对 
从2个数里提出两个数来 组合 就是 1
排列 才是 2
p(n,m)=n(n-1)(n-2)……(n-m+1)=n!/(n-m)!(规定0!=1).

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn