结点leetcode 19
[LeetCode] 894. All Possible Full Binary Trees
Given an integer n, return a list of all possible full binary trees with n nodes. Each node of each tree in the answer must have Node.val == 0. Each e ......
LeetCode 3. Longest Substring Without Repeating Characters 滑动窗口
Given a string `s`, find the length of the longest substring without repeating characters. ## Solution 用一个 $dict$ 来映射字符的次数。然后用 $left$, $right$ 来决定wind ......
leetcode-2582-easy
Pass the Pillow ``` There are n people standing in a line labeled from 1 to n. The first person in the line is holding a pillow initially. Every secon ......
Leetcode394. 字符串解码
``` class Solution { public: string dfs(string s,int &idx) { string str; while(idx'0'&&s[idx]='0'&&s[idx]<='9') num+=s[idx++]; if(s[idx]=='[') { int c ......
7月19日
今天继续学习继承 子类方法中访问其他成员,依照就近原则 先子类局部范围找 然后子类成员范围找 然后父类范围找,如果没找到就报错 如果子父重名,要在子类使用父类,可以通过super关键字:super.父类成员变量/方法 ......
暑期熔炉7月19
星河下 电子荒原 亿万场冷暖 亿万泥污人 笔记 表 1 Float类中的常用方法 方法返回值功能 byteValue() byte 以 byte 类型返回该 Float 的值 doubleValue() double 以 double 类型返回该 Float 的值 floatValue() floa ......
7.19总结
周三 早上早起去鲁迅公园然后路上还买了10斤青啤,然后12点并分两路,一队去海鲜市场买海鲜,一队去农贸市场买特产,着急忙慌吃完饭就3点了,然后又去赶高铁,差点赶不上,幸亏高铁晚点20分钟,然后晚上八点半到衡水,九点半坐车回邢台,旅游就告一段落啦。好像什么都没玩,又好像什么都玩了。 ......
leetcode 栈与队列 232 225
[toc] #基本介绍 栈,先进后出 队列,先进先出 ##四个问题 1. C++中stack 是容器么? 2. 我们使用的stack是属于哪个版本的STL? 3. 我们使用的STL中stack是如何实现的? 4. stack 提供迭代器来遍历stack空间么? 首先大家要知道 栈和队列是STL(C+ ......
[LeetCode] 1349. Maximum Students Taking Exam 参加考试的最大学生数
Given a `m * n` matrix `seats` that represent seats distributions in a classroom. If a seat is broken, it is denoted by `'#'` character otherwise it i ......
codility 和 leetcode 对比
根据网上的信息,codility 和 leetcode 都是用于评估编程技能的在线平台,它们都提供了不同难度和类型的编程挑战,支持多种编程语言,并可以用于招聘和面试的过程中。 不过,它们也有一些区别,比如: codility 更专注于工程团队的技能评估,它提供了 CodeCheck, CodeLiv ......
leetcode872叶相似树
这道题是考虑的深度优先搜索,使用递归 vecotr和queue入队操作并不相同: vector只能使用push_back(); queue既可以使用push()还可以使用push_back() void FindLeaf(TreeNode* root,vector<int>& v){ if(!roo ......
LeetCode 347. 前 K 个高频元素
# 快排思想 - 注意,这里是倒序排序,因此应该`while(nums[i].cnt>x);` ``` class Solution { public: struct element { int val,cnt; element(int a,int b) { val=a; cnt=b; } }; v ......
LeetCode -- 773. 滑动谜题
启发式搜索 class Solution { struct Node { string str; int x, y; int val; }; int n = 2, m = 3; string e = "123450"; int dx[4] = {-1, 0, 1, 0}; int dy[4] = { ......
[LeetCode] 2297. Jump Game VIII
You are given a 0-indexed integer array nums of length n. You are initially standing at index 0. You can jump from index i to index j where i < j if: ......
leetcode 28 459 总结 KMP算法
[toc] #28 ##解法一,暴力法 ``` //暴力 if(haystack.length() pi(m); for (int i = 1, j = 0; i 0 && needle[i] != needle[j]) { j = pi[j - 1]; } if (needle[i] == nee ......
[LeetCode] 2408. Design SQL
You are given n tables represented with two arrays names and columns, where names[i] is the name of the ith table and columns[i] is the number of colu ......
leetcode-1518-easy
Water Bottles ``` There are numBottles water bottles that are initially full of water. You can exchange numExchange empty water bottles from the marke ......
2023-7-19
19: 信息收集 (昨天下午和晚上弄靶场来着,上午随便写了点) 呃……这个发博客好像不太好 贴点网址看看吧 主动与被动信息搜集: https://zhuanlan.zhihu.com/p/567027661?utm_id=0 https://www.blog.23day.site/articles/ ......
Codility / LeetCode的重要性与注意事项
Codility / Leetcode 不只会针对回答内容给出最终分数,也会一并记录解题的过程供面试官参考; 相较于现场考试,Codility / Leetcode可以省下更多时间,也能让求职者在最熟悉的环境发挥实力。 进行测验前 先查看Codility / Leetcode FAQ,并完成demo ......
7.19日
今天也起得很早乘第一趟校车到达南站前往杭州。抵达杭州之后先去打卡了无名氏面馆,他们家的大排是特色,非常好吃,丝滑脱骨,软软糯糯,酱香味十足,从我们开始排队到我们吃完离店,排队从未终止。入住酒店,简单冲洗一下,稍稍休息之后,前往杭州in77银泰商场,商场分为A,B,C,D,E五个区,五个区域又由地下通 ......
19、SSH限制ip登录
1、window端通过ssh连接ubuntu虚拟接 虚拟机ip:192.168.49.128 主机用户:liuwc、liuwc1 ①、只允许指定用户登录 AllowUsers liuwc@192.168.49.128 修改配置文件 vim /etc/ssh/sshd_config 执行此操作修改没有 ......
2023.7.19小结
###前排碎碎念 昨天下午劳逸逸逸结合了一下。有朋自远方来那就带她出去玩,再加上晚上大大大暴雨,所以昨天没学什么东西,因而小结空了一天。 但今天转念一想觉得还是浅写一下叭,那就写两天的! ##7.18的内容: 上午看了一下二分(实际上是前一天晚上在oi-wiki上面随便翻开结果发现第一次交WA了,所 ......
19c RAC在线替换OCR ASM磁盘
19c RAC在线替换OCR ASM磁盘 1.目标 ASM磁盘组EAP_OCR 要替换一块磁盘 NEW: /dev/EAP_OCR_02_03 OLD: /dev/EAP_OCR_02_01 --> name: EAP_OCR_0001 使用新的磁盘/dev/EAP_OCR_02_03 替换 ASM ......
【2023-07-19】边走边想
20:00 宠辱不惊,闲看庭前花开花落;去留无意,漫随天外云卷云舒。 ——陈继儒 昨天晚上,我又情不自禁地对何太发了一通脾气,因为我又又又等她等到将近晚上10点才下班。人嘛,等久了,什么耐心都等没了。 发脾气呢,有三个原因。 首先,还是担心何太的身体情况,怕她那么多年这样连续运转,会对身体造成很大的 ......
[LeetCode] 2268. Minimum Number of Keypresses
You have a keypad with 9 buttons, numbered from 1 to 9, each mapped to lowercase English letters. You can choose which characters each button is match ......
[LeetCode] 2323. Find Minimum Time to Finish All Jobs II
You are given two 0-indexed integer arrays jobs and workers of equal length, where jobs[i] is the amount of time needed to complete the ith job, and w ......
[LeetCode] 2330. Valid Palindrome IV
You are given a 0-indexed string s consisting of only lowercase English letters. In one operation, you can change any character of s to any other char ......
[LeetCode] 2340. Minimum Adjacent Swaps to Make a Valid Array
You are given a 0-indexed integer array nums. Swaps of adjacent elements are able to be performed on nums. A valid array meets the following condition ......
WS-Management(WSMan)是一种协议,允许远程管理和监控Windows操作系统和相关组件。WSManHTTPConfig工具旨在帮助用户配置WS-Management的HTTP终结点设置,以便进行远程管理
WSManHTTPConfig是一个Windows命令行工具,用于配置Windows管理框架(WS-Management)的HTTP设置。 WS-Management(WSMan)是一种协议,允许远程管理和监控Windows操作系统和相关组件。WSManHTTPConfig工具旨在帮助用户配置WS- ......