Calculate value of n choose k [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . What is the most efficient method to evaluate the value of n choose k ? The brute force way I think would be to find n factorial / k factorial / (n-k) factorial . A better strategy may be to use dp according to this recursive formula. Is there any other better method to evaluate n choose k ? 回答1: You could use