字典序生成算法例子,时间复杂度为n^2
摘要:
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 5 6 char *words ="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; 7 char *ptr[62] = {0}; 8 9 10 void print_words()11 {12 int idx = sizeof(ptr)/sizeof(*ptr);13 while(--idx >= 0)14 {15 if 阅读全文
posted @ 2013-05-12 03:36 <为爱走天涯> 阅读(328) 评论(0) 推荐(0)
浙公网安备 33010602011771号