- 博客(50)
- 资源 (1)
- 收藏
- 关注

原创 LeetCode编码基础知识
c标准库:https://www.runoob.com/cprogramming/c-standard-library-assert-h.htmlpow()函数: 计算a的x次方并返回给result用法:#include<math.h>result = pow(a,x);Qusetion:得出一个整数x的digit(位数)。Example:x = ...
2019-06-01 00:27:50
774

原创 LeetCode刷题心得
一:用伪代码简单描述自己的解题思路(在纸上或是leetcode的笔记本上)二:对特殊情况进行考虑,并进行必要的解释三:代码!!!一定要进行“注释”,只有注释才知道自己当时是怎么考虑的!!!四:测试不通过的用例贴到自己的代码里,正确的期望输出也要一并贴上五:修改代码时不要删掉不需要的代码应该注释掉(因为这可以反应出你考虑的欠缺),等到真的确定没价值了再删六:如果引用或者借鉴...
2019-05-17 00:15:31
1000
原创 【JavaScript】期约与异步函数
在最基本的形式中,JavaScript是一种同步的、阻塞的、单线程的语言,在这种语言中,一次只能执行一个操作。但web浏览器定义了函数和API,允许我们当某些事件发生时不是按照同步方式,而是异步地调用函数(比如,时间的推移,用户通过鼠标的交互,或者获取网络数据)。这意味着您的代码可以同时做几件事情,而不需要停止或阻塞主线程。JavaScript单线程模型在最基本的形式中,JavaScript是一种同步的、阻塞的、单线程的编程语言,在这种语言中,一次只能执行一个操作。JavaScript引擎从文件顶部开
2022-04-27 17:34:18
1257
原创 Vue笔记(二)
ant-design-vue a-Tree组件自定义图标参考资料与 ant-design-vue tree 组件自定义图标的相爱相杀ant-design-vue树形结构控件的改造Ant-tree 自定义父子节点图标(一)Ant-tree 自定义父子节点图标(二)
2021-11-03 11:26:11
612
原创 Vue笔记(一)
一、Vue调用在线图标1、在main.js文件中设置地址并注册图标。2、在xxx.vue中使用图标组件。二、ant-design-vue通过css修改a-tree的折叠打开图标//修改树结构展开闭合图标/deep/ .ant-tree li span.ant-tree-switcher{ width:16px; height:16px; margin:4px; // 修改树结构合起的icon &.ant-tree-switcher_close{ backgr
2021-09-16 17:11:19
902
原创 解决cmd中文输入法看不到待选文字
方法一:在新版本使用微软拼音输入法输入汉字。方法二:将当前新版本的cmd切换到旧版本。在cmd窗口顶部右击鼠标,在呼出的选项中选择“属性”。在“属性”界面勾选旧版本,再确定重启cmd。...
2021-01-16 22:28:23
1540
原创 对OneNote进行本地备份及更改备份文件夹路径
OneNoteforWindows 10创建的笔记本似乎是直接在onedrive上创建,在应用上也没找到备份选项。所以以下选择office组件里的OneNote,在此以OneNote 2016为例。打开OneNote 2016 --选择“文件” --选择“选项”,进入 OneNote选项界面,如下:在OneNote选项中选择 “保存和备份”,在保存和备份界面可以看到备份文件夹(可在文件管理器中打开查看,记住当前的默认路径,后面有用)。下面的备份设置,根据自己需求选择,点击 “立...
2021-01-11 16:52:42
7577
3
原创 解决OneNote同步造成的“内容尚不可用”问题
问题描述:对分区进行移动操作,之后进行同步。打开移动的分区里的页时,显示“内容尚不可用”。其他移动的分区正常,其他笔记也正常。如上图,此错误使得在OneNoteforWindows 10 、OneNote 2016、OneNoteOnline(网页版)、OneNote(手机版)分区内的页面都加载不出来。此时是极其痛苦且绝望的。解决方法:OneNote 2016有个备份功能。咱们就使用备份来找回丢失的分区。在 OneNote...
2021-01-11 02:19:46
5290
原创 更改OneDrive网页版OneNote笔记使用桌面应用打开时的默认应用
在OneNote网页版中“使用桌面应用”打开笔记本,更改默认用来打开笔记本的桌面应用。要打开OneNotefor Windows 10吗?始终允许onedrive.live.com在关联的应用中打开此类链接此站点正在尝试打开OneNote for Windows 10..OneNote在本地电脑上有两个:一个是自带的OneNoteforWindows 10 ;另一个是 OneNote 2016。将储存在OneDrive网页版的OneNote笔记打开时,可使用OneNo...
2021-01-10 22:56:54
2304
1
原创 解决OneNote for Windows 10 不能打开onedrive上已有笔记本问题
1、在浏览器中访问onedrive并登录,找到上面的笔记本文件并勾选如图:2、选择在 OneNote 中打开或在 OneNoteOnline 中打开。若选择在OneNote中打开,则转到第4步;若选择在OneNoteOnline中打开,如下:3、 点击 使用桌面应用打开,如下:4、点击后会打开本地OneNote,如下:5、等待链接打开(如若链接打不开多试几次)便可以在电脑本地打开onedrive上已有的笔记本。如下:完成。...
2021-01-10 22:15:24
6829
原创 GitHub无法访问下载
GitHub无法访问下载GitHub无法访问和代码无法下载解决办法: 访问github错误下载github代码错误Unable to connect to raw.githubusercontent.com: 443解决方法:打开https://www.ipaddress.com/或者http://ip.tool.chinaz.com/输入访问不了的...
2021-01-06 20:39:45
5353
3
原创 将使用jieba分词的语料库转化成TFIDF向量
二、使用jieba组件对分类语料库分词本文参考链接:https://blog.youkuaiyun.com/SA14023053/article/details/52083399jieba组件参考链接:https://github.com/fxsjy/jieba承接上文“Preprocessing Chinese Text”此文对分类语料库文件进行预处理和分词并且去除停用词中文语料库为复旦大学中文语料库test_corpus中C7-History的C7-History001.txt、C7-History00
2020-12-09 00:45:05
1740
原创 字符串模式匹配
#include<stdio.h>#include<stdlib.h>#define MaxSize 10void Next(char* t,int next[]){ int i = 0; int k = -1;//用于next[]的下标 next[0] = -1;//初始化第一位为-1 while(t[i] != '\0...
2019-06-24 20:47:18
125
原创 中缀表达式转化成后缀表达式并计算结果
#include<stdio.h>#include<stdlib.h>#define MaxSize 1024void print(char *postexp){ while(*postexp != '\0'){ printf("%c",*postexp); postexp++; } printf("\n")...
2019-06-24 20:06:26
355
原创 LeetCode 1019. Next Greater Node In Linked List(链表中的下一个更大节点)--c语言
1019. Next Greater Node In Linked ListWe are given a linked list withheadas the first node.Let's number thenodes in the list: node_1, node_2, node_3, ... etc.Each node may have a next larger ...
2019-06-09 21:21:00
415
原创 LeetCode 148. Sort List(排序链表)--c语言
148. Sort ListSort a linked list in O(n log n) time using constant space complexity.Example 1:Input: 4->2->1->3Output: 1->2->3->4Example 2:Input: -1->5->3->4->...
2019-06-09 17:20:11
515
原创 LeetCode 147. Insertion Sort List(对链表进行插入排序)--c语言
147. Insertion Sort ListSort a linked list using insertion sort.A graphical example of insertion sort. The partial sorted list (black) initially contains only the first element in the list.With ...
2019-06-09 15:42:31
311
原创 LeetCode 876. Middle of the Linked List(链表的中间结点) -- c语言
876. Middle of the Linked ListGiven a non-empty, singlylinked list with head node head, returnamiddle node of linked list.If there are two middle nodes, return the second middle node.Example ...
2019-06-08 00:00:39
274
原创 LeetCode 237. Delete Node in a Linked List(删除链表中的结点) -- c语言
237. Delete Node in a Linked ListWrite a function to delete a node (except the tail) in a singly linked list, given only access to that node.Given linked list --head =[4,5,1,9], which looks like...
2019-06-07 23:44:53
440
原创 LeetCode 82. Remove Duplicates from Sorted List II(删除排序链表中的重复元素 II)--c语言
82. Remove Duplicates from Sorted List IIGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.Example 1:Input: 1->2-&...
2019-06-07 23:11:22
279
原创 LeetCode 2. Add Two Numbers(两数相加)--c语言
2. Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two ...
2019-06-07 21:30:38
332
原创 LeetCode 143. Reorder List(重排链表)--c语言
143. Reorder ListGiven a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You maynotmodify the values in the list's nodes, only nodes itself may be changed.Example...
2019-06-06 23:22:52
607
原创 LeetCode 86. Partition List(分隔链表)--c语言
86. Partition ListGiven a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the original relative order of t...
2019-06-06 22:53:43
624
原创 LeetCode 24. Swap Nodes in Pairs(两两交换链表中的结点)--c语言
24. Swap Nodes in PairsGiven alinked list, swap every two adjacent nodes and return its head.You maynotmodify the values in the list's nodes, only nodes itself may be changed.Example:Given...
2019-06-04 23:35:33
227
原创 LeetCode 92. Reverse Linked List II(反转链表II) -- c语言
92. Reverse Linked List IIReverse a linked list from positionmton. Do it in one-pass.Note:1 ≤m≤n≤ length of list.Example:Input: 1->2->3->4->5->NULL, m = 2, n = 4Output...
2019-06-03 00:17:13
246
原创 LeetCode 27.Remove Element(移除元素) -- c语言
27.Remove ElementGiven an arraynumsand a valueval, remove all instances of that valuein-placeand return the new length.Do not allocate extra space for another array, you must do this bymodif...
2019-05-31 23:36:48
300
1
原创 LeetCode 707. Design Linked List(设计链表) -- c语言
707. Design Linked ListDesign yourimplementation of the linked list. You can choose to use the singly linked list or the doubly linked list. A node in a singlylinked list should have two attribute...
2019-05-31 23:17:55
583
原创 LeetCode 203. Remove Linked List Elements(移除链表元素) -- c语言
203. Remove Linked List ElementsRemove all elements from a linked list of integers that have valueval.Example:Input: 1->2->6->3->4->5->6, val = 6Output: 1->2->3->4...
2019-05-31 22:38:57
206
原创 LeetCode 83. Remove Duplicates from Sorted List(删除排序链表中的重复元素) -- c语言
83. Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.Example 1:Input: 1->1->2Output: 1->2Example 2:In...
2019-05-31 10:55:52
365
原创 LeetCode 160. Intersection of Two Linked Lists(相交链表) -- c语言
160. Intersection of Two Linked ListsWrite a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:begin to intersect...
2019-05-31 00:46:27
391
原创 LeetCode 141. Linked List Cycle(环形链表) -- c语言
141. Linked List CycleGiven a linked list, determine if it has a cycle in it.To represent a cycle in the given linked list, we use an integerposwhich represents the position (0-indexed)in the l...
2019-05-30 22:53:22
300
原创 LeetCode 234. Palindrome Linked List(回文链表) -- c语言
234. Palindrome Linked ListGiven a singly linked list, determine if it is a palindrome.Example 1:Input: 1->2Output: falseExample 2:Input: 1->2->2->1Output: trueFollow up:C...
2019-05-25 00:53:01
374
原创 LeetCode 21. Merge Two Sorted Lists(合并两个有序链表) -- c语言
21. Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:Input: 1->2->...
2019-05-24 22:33:10
278
原创 LeetCode 206. Reverse Linked List(反转链表) -- c语言
206. Reverse Linked ListReverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be reversed eit...
2019-05-23 23:54:15
353
原创 LeetCode 19. Remove Nth Node From End of List(删除链表的倒数第N个结点) -- c语言
19. Remove Nth Node From End of ListGiven a linked list, remove then-th node from the end of list and return its head.Example:Given linked list: 1->2->3->4->5, and n = 2.After re...
2019-05-23 23:23:07
233
原创 LeetCode 344.Reverse String(反转字符串) -- c语言
344.Reverse StringWrite a function that reverses a string. The input string is given as an array of characterschar[].Do not allocate extra space for another array, you must do this bymodifying t...
2019-05-22 23:01:00
284
原创 LeetCode 7.Reverse Integer(整数反转) -- c语言
7.Reverse IntegerGiven a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note...
2019-05-22 22:31:49
204
原创 LeetCode 119. Pascal's Triangle II(杨辉三角II) -- c语言
119. Pascal's Triangle IIGiven a non-negativeindexkwherek≤33, return thekthindex row of the Pascal's triangle.Note that the row index starts from0.In Pascal's triangle, each number is ...
2019-05-22 00:31:47
375
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人