Skip to content

Instantly share code, notes, and snippets.

@KT-Yeh
Last active August 29, 2015 13:57
Show Gist options
  • Save KT-Yeh/9484798 to your computer and use it in GitHub Desktop.
Save KT-Yeh/9484798 to your computer and use it in GitHub Desktop.
void backtracking (int N, int Len)
{
if (Len == N) {
輸出答案;
return;
}
for (可能的數字) {
if (這數字符合)
backtracking(N, Len + 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment