从已知的数字中找出所有的组合
摘要:
原题大置如此:比如有数字123,那么所有的组合为:123121323123如果为1234的话,那么组合为12341213142324341231242341234我的答案如下: #include //回溯void Back(int opts[], int len, int count){ int index = 0; int i; for( i = count; i > 1; ... 阅读全文
posted @ 2006-08-11 16:51 我的blog 阅读(291) 评论(0) 推荐(0) 编辑