摘要: 这是一道java面试题,现用C#来实现。具体题目是这样的:给定6个数字1,2,2,3,4,5,要求找出所有这6个数字组合成的六位数,并满足 (1)3和5不能相连 (2)4不能在第三位 给出你的算法。 我是这样做的。 using System; using System.IO; using System.Collections; using System.Collections.Generic;... 阅读全文
posted @ 2007-08-21 22:03 落叶潇潇雨 阅读(558) 评论(3) 推荐(0) 编辑