上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 24 下一页
摘要: 带不带头结点的差别就是,在插入和删除操作中,不带头结点的链表需要考虑两种情况:1、插入(删除)在头结点。2、在其他位置。 6.4 6.5 6.6 阅读全文
posted @ 2018-11-17 23:27 Ruohua3kou 阅读(862) 评论(0) 推荐(2) 编辑
摘要: ``` Length( List L ){ int res=0; while(L!=NULL){ res++; L=L->Next; } return res; } ``` 阅读全文
posted @ 2018-11-17 22:54 Ruohua3kou 阅读(353) 评论(0) 推荐(0) 编辑
摘要: ``` //创建并返回一个空的线性表; List MakeEmpty() { List L; L = (List)malloc(sizeof(struct LNode)); L->Last = -1; //因为插入一个时,Last++,此时需为-1 return L; } //返回线性表中X的位置。若找不到则返回ERROR; Position Find(List... 阅读全文
posted @ 2018-11-17 21:22 Ruohua3kou 阅读(635) 评论(0) 推荐(0) 编辑
摘要: ``` List Reverse(List L) { List p, q; p = L; q = L; L = NULL; while (p) { p = p->Next; q->Next = L; L = q; q = p; } return L; } ``` 阅读全文
posted @ 2018-11-17 19:30 Ruohua3kou 阅读(553) 评论(0) 推荐(0) 编辑
摘要: "原题链接" 思路: 如果有环,则起点一定为“1”。如果没有可以胜过“1”的,则无环。 根据W,L来建立图,用dfs从1节点遍历+回溯。 剪枝:dfs到某个子序列时,如果当前未访问节点无法与1节点构成回路,就不往下搜索。 import java.util. ; public class Main { 阅读全文
posted @ 2018-11-16 20:36 Ruohua3kou 阅读(273) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int times = 0; whil... 阅读全文
posted @ 2018-11-16 00:29 Ruohua3kou 阅读(284) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util. ; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); Map ma 阅读全文
posted @ 2018-11-16 00:09 Ruohua3kou 阅读(326) 评论(0) 推荐(0) 编辑
摘要: include include "glut.h" include "iostream" using namespace std; void init(void) { glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glClear(GL_COLOR_BUFFER_BIT); 阅读全文
posted @ 2018-11-15 11:38 Ruohua3kou 阅读(1860) 评论(0) 推荐(0) 编辑
摘要: 给 父元素 添加 text align: center 即可。 body { text align: center; background color: black; } outer { margin: 10px auto; background color: white; border radiu 阅读全文
posted @ 2018-11-14 22:04 Ruohua3kou 阅读(2141) 评论(0) 推荐(0) 编辑
摘要: 用 object fit:cover object fit属性详解 object fit:CSS 属性指定替换元素的内容应该如何适应到其使用的高度和宽度确定的框。 1. object fit:fill 被替换的内容大小可以填充元素的内容框,整个对象将完全填充此框,如果对象的宽高比不匹配其框的宽高比, 阅读全文
posted @ 2018-11-14 21:52 Ruohua3kou 阅读(2971) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 24 下一页