上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: ###将tomcat文件夹下的jks放到resource下 ###yml添加 server: ssl: key-store: classpath:scxxxxxxxxxxxxxxxxxxxx.jks(文件名) key-store-password: xxxxxxxxxxxxxxxxxxx(密码) k 阅读全文
posted @ 2021-11-09 16:03 liv_vil 阅读(135) 评论(0) 推荐(0)
摘要: ##2062. 统计字符串中的元音子字符串 1、找出连续含aeiou字符串 可以通过预处理出每个元音后的下一个非元音 2、然后双指针 以uaieuoua为例 七种方案如下 前面删0个字符 后面删0个 uaieuoua是一种方案 前面删0个字符 后面删1个 uaieuou 前面删0个字符 后面删2个 阅读全文
posted @ 2021-11-09 11:55 liv_vil 阅读(55) 评论(0) 推荐(0)
摘要: 要求:在0500H-0501H单元存放被转换的16位二进制数(如00AAH),转换结果存放到0510H-0514H单元中 这实验是真的顶,没预习根本不可能自己做出来,还好机房有前辈的代码~~~ 我不知道老师咋想的 一些可能连C语言都没玩明白的自动化带学生,第一个实验直接让它们做汇编的数制转换 很难绷 阅读全文
posted @ 2021-11-03 21:57 liv_vil 阅读(674) 评论(0) 推荐(1)
摘要: 认识LeetCode树的定义方式 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), l 阅读全文
posted @ 2021-11-01 12:32 liv_vil 阅读(64) 评论(0) 推荐(0)
摘要: 原题链接 class Solution { public: struct Node { int id,type,d; bool operator >(const Node &W)const//小根堆重载大于号 因为标准库没有< { return d>W.d; } }; void bfs(vector 阅读全文
posted @ 2021-10-30 10:31 liv_vil 阅读(51) 评论(0) 推荐(0)
摘要: ##题意 一颗完整的树,拆掉一个节点,将原树分成了若干个连通块,将所有连通块大小 连乘作为分数。 n个节点操作一遍 得到分数最大值。 问有多少个节点 能得到分数最大值。 ##思路 1.计算以各个节点为根的子树大小sum[i]。 2.当拆掉u节点时,它的分数是它所有子节点树的大小的连乘,再乘以 (n- 阅读全文
posted @ 2021-10-25 23:34 liv_vil 阅读(131) 评论(0) 推荐(0)
摘要: ##1.1 Unix的历史 ###发展 Unix虽然已经使用了40年,但计算机科学家仍然认为它是现存操作系统中最强大和最优秀的系统。 诞生于1969,由Dennis Ritchie 和 Ken Thompson 的灵感火花点亮的 Unix 已经成为一种传奇,它历经了时间的考研依然声名不坠。 从贝尔实 阅读全文
posted @ 2021-10-14 23:14 liv_vil 阅读(77) 评论(0) 推荐(1)
摘要: ##21. 合并两个有序链表 ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) { auto dummy=new ListNode(-1),cur=dummy; while(l1&&l2) { if(l1->val<l2->val) { cur= 阅读全文
posted @ 2021-10-12 19:37 liv_vil 阅读(39) 评论(0) 推荐(0)
摘要: ##11. 盛最多水的容器 (思维) 思路很难 如果容器右侧比左侧低,那么移动左侧的木板,结果不会更好,所以应该移动右侧 反之亦然 int maxArea(vector<int>& height) { int l=0,r=height.size()-1; int res=-1; while(l<r) 阅读全文
posted @ 2021-10-11 20:45 liv_vil 阅读(30) 评论(0) 推荐(0)
摘要: ez:1、7、9 medium:2、3、5、6、8 hard: 4/10 ##1.两数之和(哈希表) vector<int> twoSum(vector<int>& nums, int target) { unordered_map<int,int>m; for(int i=0;i<nums.siz 阅读全文
posted @ 2021-10-09 23:19 liv_vil 阅读(39) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页