當我輸入的 k = 5 , n = 2 時 跑出以下組合 12 13 14 15 23 24 25 34 35 45
當我輸入的 k = 5 , n = 3 時 跑出以下組合 123 124 125 234 235 345
組合後的每組集合不能有重複的數值出現
而且k 與 n 的數值限制在 1 ~ 200之間
我目前只會處理固定的n, In general的情況我想了很久還是解不出來
謝謝各位
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html
You are receiving this email because you subscribed to this feed at blogtrottr.com.