摘要: Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n - 1, find all possible paths from node 0 to node n - 1, and return them in any ord 阅读全文
posted @ 2021-04-16 21:19 Makerr 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 冒泡排序 相邻的两个数两两比较,如果两数逆序,则交换。 n个数需要进行n-1趟的两两比较。 10个数进行冒泡排序,输出结果 #include <stdio.h> int main() { int a[10],i,j,temp; printf("请输入10个数:"); for(i=0;i<10;++i 阅读全文
posted @ 2021-04-16 16:58 Makerr 阅读(82) 评论(0) 推荐(0) 编辑