自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(76)
  • 收藏
  • 关注

原创 mac vscode include boost 库报错处理,include path 配置

找到boost安装路径,打开c_cpp_properties.json并添加includePath

2023-01-09 10:53:18 791

原创 解决win10 台式机 网线无网络连接 无法访问Internet

修复台式机网线连接的网络故障问题

2022-09-12 20:10:48 1942

原创 gnuplot 使用指南 科研论文快速做图

gnuplot是便携式命令行驱动的图形化工具,适用于 Linux, OS/2, MS Windows, OSX, VMS 和许多其他平台。详细的使用指南可以参考 gnuplot中文手册 简易的论文批量作图可参考以下步骤:准备作图的数据文件 data.dat创建脚本文件plot.sh,在脚本中定义所有作图格式,通过加减注释控制运行哪一部分。plot.sh命令行切入数据文件所在的目录,运行脚本gnuplot // 进入工具load plot.sh // 执行脚本整体而言,作图前要确

2021-11-10 10:20:27 906

原创 LeetCode 537 Complex Number Multiplication

537 Complex Number Multiplicationhttps://leetcode.com/problems/complex-number-multiplication/A complex number can be represented as a string on the form "**real**+**imaginary**i" where:real is the real part and is an integer in the range [-100, 100].

2021-08-25 20:26:42 109

原创 LeetCode 1402 Reducing Dishes

1402. Reducing Disheshttps://leetcode.com/problems/reducing-dishes/A chef has collected data on the satisfaction level of his n dishes. Chef can cook any dish in 1 unit of time.Like-time coefficient of a dish is defined as the time taken to cook that d

2021-07-11 16:10:23 184

原创 LeetCode 1338 Reduce Array Size to The Half

1338 Reduce Array Size to The Halfhttps://leetcode.com/problems/reduce-array-size-to-the-half/Given an array arr. You can choose a set of integers and remove all the occurrences of these integers in the array.Return the minimum size of the set so that

2021-07-06 16:52:38 139

原创 LeetCode 556 Reshape the Matrix

556 Reshape the Matrixhttps://leetcode.com/problems/reshape-the-matrix/In MATLAB, there is a handy function called reshape which can reshape an m x n matrix into a new one with a different size r x c keeping its original data.You are given an m x n matr

2021-07-05 15:23:33 65

原创 LeetCode 142 Linked List Cycle II

142 Linked List Cycle IIhttps://leetcode.com/problems/linked-list-cycle-ii/Given a linked list, return the node where the cycle begins. If there is no cycle, return null.There is a cycle in a linked list if there is some node in the list that can be rea

2021-05-31 11:14:38 121

原创 LeetCode 287 Find the Duplicate Number

287 Find the Duplicate Numberhttps://leetcode.com/problems/find-the-duplicate-number/Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.There is only one repeated number in nums, return this re

2021-05-30 22:02:42 89

原创 LeetCode 1689 Partitioning Into Minimum Number Deci-Binary

1689 Partitioning Into Minimum Number Of Deci-Binary Numbershttps://leetcode.com/problems/partitioning-into-minimum-number-of-deci-binary-numbers/A decimal number is called deci-binary if each of its digits is either 0 or 1 without any leading zeros. Fo

2021-05-27 10:53:44 86

原创 LeetCode 1048 Longest String Chain

1048 Longest String Chainhttps://leetcode.com/problems/longest-string-chain/Given a list of words, each word consists of English lowercase letters.Let’s say word1 is a predecessor of word2 if and only if we can add exactly one letter anywhere in word1 t

2021-05-18 10:35:34 105

原创 LeetCode 1423 Maximum Points You Can Obtain from Cards

1423 Maximum Points You Can Obtain from Cardshttps://leetcode.com/problems/maximum-points-you-can-obtain-from-cards/There are several cards arranged in a row, and each card has an associated number of points The points are given in the integer array card

2021-05-12 14:50:10 79

原创 LeetCode 204 Count Primes

204 Count Primeshttps://leetcode.com/problems/count-primes/Count the number of prime numbers less than a non-negative number, n.Example 1:Input: n = 10Output: 4Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7.Example 2:Inpu

2021-05-10 21:25:59 96

原创 LeetCode 509 Fibonacci Number

509 Fibonacci Numberhttps://leetcode.com/problems/fibonacci-number/The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0and 1. That is,F(0

2021-04-15 20:45:18 68

原创 Mac 查看 python3 路径

type -a python3 可以查看所有版本的路径which python3 查看默认路径

2021-04-13 19:17:40 1985

原创 LeetCode 1302 Deepest Leaves Sum

1302 Deepest Leaves Sumhttps://leetcode.com/problems/deepest-leaves-sum/Given the root of a binary tree, return the sum of values of its deepest leaves.Example 1:Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8]Output: 15Example 2:Input: ro

2021-04-12 14:48:16 106

原创 LeetCode 1704 Determine if String Halves Are Alike

1704 Determine if String Halves Are Alikehttps://leetcode.com/problems/determine-if-string-halves-are-alike/You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half and b be the second half.

2021-04-07 21:58:20 90

原创 LeetCode 1551 Minimum Operations to Make Array Equal

1551 Minimum Operations to Make Array Equalhttps://leetcode.com/problems/minimum-operations-to-make-array-equal/You have an array arr of length n where arr[i] = (2 * i) + 1 for all valid values of i (i.e. 0 <= i < n).In one operation, you can sele

2021-04-07 10:29:01 111

原创 LeetCode 775 Global and Local Inversions

775 Global and Local Inversionshttps://leetcode.com/problems/global-and-local-inversions/We have some permutation A of [0, 1, ..., N - 1], where N is the length of A.The number of (global) inversions is the number of i < j with 0 <= i < j <

2021-04-06 10:27:27 96

原创 LeetCode 1615 Maximal Network Rank

1615 Maximal Network Rankhttps://leetcode.com/problems/maximal-network-rank/There is an infrastructure of n cities with some number of roads connecting these cities. Each roads[i] = [ai, bi] indicates that there is a bidirectional road between cities ai

2021-03-18 22:44:37 252

原创 LeetCode 1721 Swapping Nodes in a Linked List 每日一题 20210315

1721 Swapping Nodes in a Linked ListYou are given the head of a linked list, and an integer k.Return the head of the linked list after swapping the values of the kth node from the beginning and the kth node from the end (the list is 1-indexed).Example 1

2021-03-15 09:49:56 111

原创 LeetCode 399 Evaluate Division

399 Evaluate Divisionhttps://leetcode.com/problems/evaluate-division/You are given an array of variable pairs equations and an array of real numbers values, where equations[i] = [Ai, Bi] and values[i]represent the equation Ai / Bi = values[i]. Each Ai or

2021-03-03 10:37:11 75

原创 LeetCode 1267 Count Servers that Communicate

1267 Count Servers that Communicatehttps://leetcode.com/problems/count-servers-that-communicate/You are given a map of a server center, represented as a m * ninteger matrix grid, where 1 means that on that cell there is a server and 0 means that it is no

2021-02-24 22:30:28 79

原创 LeetCode 1387 Sort Integers by The Power Value

1387 Sort Integers by The Power ValueThe power of an integer x is defined as the number of steps needed to transform x into 1 using the following steps:if x is even then x = x / 2if x is odd then x = 3 * x + 1For example, the power of x = 3 is 7 beca

2021-02-24 11:53:42 133

原创 LeetCode 841 Keys and Rooms

841 Keys and RoomsThere are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, ..., N-1, and each room may have some keys to access the next room.Formally, each room i has a list of keys rooms[i], and each key rooms[i][j] is an

2021-02-24 11:51:05 73

原创 LeetCode 1557 Minimum Number of Vertices to Reach All Nodes

1557 Minimum Number of Vertices to Reach All NodesGiven a directed acyclic graph, with n vertices numbered from 0 to n-1, and an array edges where edges[i] = [fromi, toi] represents a directed edge from node fromi to node toi.Find the smallest set of ver

2021-02-20 22:44:59 169

原创 LeetCode 997 Find the Town Judge

997 Find the Town Judgehttps://leetcode.com/problems/find-the-town-judge/In a town, there are N people labelled from 1 to N. There is a rumor that one of these people is secretly the town judge.If the town judge exists, then:The town judge trusts nobo

2021-02-01 17:48:39 101

原创 ACM 16640 纪念品分组

16640 纪念品分组链接:https://ac.nowcoder.com/acm/problem/16640来源:牛客网题目描述元旦快到了,校学生会让乐乐负责新年晚会的纪念品发放工作。为使得参加晚会的同学所获得 的纪念品价值相对均衡,他要把购来的纪念品根据价格进行分组,但每组最多只能包括两件纪念品, 并且每组纪念品的价格之和不能超过一个给定的整数。为了保证在尽量短的时间内发完所有纪念品,乐乐希望分组的数目最少。你的任务是写一个程序,找出所有分组方案中分组数最少的一种,输出最少的分组数目。输入描

2020-10-29 10:34:31 323

原创 ACM 16639 奖学金

16639 奖学金链接:https://ac.nowcoder.com/acm/problem/16639来源:牛客网题目描述某小学最近得到了一笔赞助,打算拿出其中一部分为学习成绩优秀的前5名学生发奖学金。期末,每个学生都有3门课的成绩:语文、数学、英语。先按总分从高到低排序,如果两个同学总分相同,再按语文成绩从高到低排序,如果两个同学总分和语文成绩都相同,那么规定学号小的同学 排在前面,这样,每个学生的排序是唯一确定的。任务:先根据输入的3门课的成绩计算总分,然后按上述规则排序,最后按排名顺序输

2020-10-28 22:13:03 182

原创 ACM 16783 拼数

16783 拼数链接:https://ac.nowcoder.com/acm/problem/16783来源:牛客网题目描述设有n个正整数(n ≤ 20),将它们联接成一排,组成一个最大的多位整数。例如:n=3时,3个整数13,312,343联接成的最大整数为:34331213又如:n=4时,4个整数7,13,4,246联接成的最大整数为:7424613输入描述:第一行,一个正整数n。第二行,n个正整数。输出描述:一个正整数,表示最大的整数示例1输入313 312 343

2020-10-28 21:11:32 201

原创 ACM 14670 脸盆大哥的木桶 排序

脸盆大哥的木桶链接:https://ac.nowcoder.com/acm/problem/14670来源:牛客网题目描述彩虹岛网红脸盆大哥最骄傲就是自己制作的木桶。一天????????????拿了????块木板,其中第????块木板的高度为ℎ????,他希望脸盆大哥能够用这些木板制作出精美的木桶。脸盆大哥告诉????????????制作一个木桶需要????块木板,并且所有桶的底面积为????,底面的木板由????????????提供。????????????想知道用这些木块所制作出来的木桶最多能够

2020-10-27 22:13:26 383

原创 Mac 安装 Hadoop 教程【避坑指南】

安装教程参考 优雅的使用macOS-homebrew-5-安装大数据hadoop环境必要工作homebrew 安装配置jdk 安装配置ssh无密码登录配置 参考 Mac下配置ssh无密码登录远程服务器正式安装brew install hadoopbrew list hadoop 找到所在文件夹,下面会用到路径配置修改配置文件 core-site.xmlcd /usr/local/Cellar/hadoop/3.2.1_1/libexec/etc/hadoop 不要直接复制

2020-10-21 22:17:14 1026

原创 英文论文以及中文解读的检索技巧

英文论文以及中文解读的检索技巧对一篇英文论文如何去搜索中文解读:Google search搜索:论文题目 + “解读”,例:T-GCN: A Temporal Graph Convolutional Network 解读搜索:论文题目 + 常用汉字(是、的) 例:T-GCN: A Temporal Graph Convolutional Network 是搜索 会议/期刊 + 年份 + 解读/汉字,例:KDD 2020 解读微信搜索上述内容,论文题目/会议期刊+年份,会找到很多公众号文章,一般

2020-10-21 16:48:30 487

原创 win10 蓝屏重启 kernel security check failure 较为简易的解决方案

最近电脑几乎每天出现一次蓝屏重启,重启之后可以正常工作,所以也放着没管,直到 word 没保存就重启,丢失了几分钟的进度。。所以来分享我的踩坑经历和最终解决办法,希望大家碰到相同问题时看到我这篇,能不必再走这些弯路。太长不看版:找到 C:\windows\minidump 中的文件——复制到桌面并压缩——压缩文件上传到OneDrive并复制共享链接——在 微软社区 发帖提问并上传文件——等待专业人员排查具体原因——对症下药微软社区的坑在微软社区找到 kernel security check fail

2020-07-30 20:30:58 63678 6

原创 win10 移动硬盘无法弹出 提示设备已被占用

win10 在某次更新后突然出现一个问题,可以正常识别读取移动硬盘的内容,但是相关操作终止后,弹出硬盘时提示设备正在使用中。有一种说法是关闭自动播放,然而设置后仍然不起作用。Win → 设置 → 设备 → 自动播放 (默认开启,点击关闭)在任务管理器中查看究竟是哪个进程正在使用移动硬盘并结束进程。查阅 微软官方的回答 得知是 explorer.exe 进程,下面进行操作,请先保存电脑所有文件,退出不相干程序,可能会重启电脑。在任务管理器中找到此进程,结束后再新建任务。硬盘弹出后重新插入就可以

2020-07-22 16:33:12 7830 2

原创 解决 Windows10 安装 office 后新建 excel xlsx无法打开的问题

两次重装完 office 后都碰到 右键新建 excel.xlsx 无法正确打开的问题,提示“Excel无法打开文件xxx.xlsx,因为文件格式或文件扩展名无效。请确定文件未损坏,并且文件扩展名与文件的格式匹配” 。新建 doc docx ppt pptx xls 都可以正确打开,唯独 xlsx 出问题。本质上就是注册表中的新建路径无法导向正确的空白 xlsx 工作表,所以修改对应项的路径即可。参考 Excel无法打开文件xxx.xlsx,因为文件格式或文件扩展名无效win + R 输入

2020-07-04 23:01:08 9774 2

原创 windows10 安装 neo4j 及 apoc

踩了无数坑,总结一下正确的安装步骤:安装 neo4j community,注意不要安装成 desktop,具体参考 win10 下安装 neo4j下载 apoc jar 文件,注意版本一定要与 neo4j 的版本一致,参考官网 apoc installation把 apoc jar 直接放入 neo4j-community/plugins 文件夹内返回上一层找到 conf 文件夹,文本编辑器打开 neo4j.conf最末加入配置声明语句:dbms.security.pro

2020-07-04 18:23:16 1495 1

原创 Chrome 地址栏 Google 搜索错误处理 隐私设置错误 您的连接不是私密连接

chrome 突然出现一个异常:打开其他网页均正常,但是在地址栏用默认搜索引擎进行搜索时就跳转到隐私设置错误,“您的连接不是私密连接”,并且点击【高级】选项后不能继续访问。而先进入 www.google.com 再用搜索框就可以进行搜索。搜关键词“您的连接不是私密连接”尝试多种方法均无效,最终按照如下设置成功解决。chrome地址栏google搜索错误的处理问题分析因为打开其他网页正常,所以不是网络连接问题,关闭防火墙、更改代理模式等等手段不起作用;搜索栏默认搜索引擎换成百度后可以进行搜索,定位

2020-07-03 20:51:13 2756 2

原创 剑指offer 面试题06. 从尾到头打印链表

面试题06. 从尾到头打印链表输入一个链表的头节点,从尾到头反过来返回每个节点的值(用数组返回)。示例 1:输入:head = [1,3,2]输出:[2,3,1]限制:0 <= 链表长度 <= 10000解法一遍历链表,把元素依次存入 vector,最后调用 algorithm::reverse 逆转即可遍历链表并存入 vector 的时间复杂度 O(n),逆转共需进行 n/2 次交换,总的时间复杂度 O(n),空间复杂度 O(1) ,题目要求的 vector 空间不算在内/

2020-06-09 10:03:32 154

原创 剑指offer 面试题04. 二维数组中的查找

面试题04. 二维数组中的查找在一个 n * m 的二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。示例:现有矩阵 matrix 如下:[[1, 4, 7, 11, 15],[2, 5, 8, 12, 19],[3, 6, 9, 16, 22],[10, 13, 14, 17, 24],[18, 21, 23, 26, 30]]给定 target = 5,返

2020-06-06 22:41:54 196

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除