[Leetcode 77] Combinations

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

For n=20, k=16, the coding shown will have time limited error. If change line 12: " I<= n" to be " I<= n-k+1" it will solve. It is like in example, 4 we don't need to consider since it has no more enough number to add

xysmile