- 博客(62)
- 资源 (3)
- 收藏
- 关注
原创 通过第三方软件修改 MacOS 的键盘映射
由于 command 键在OSX下的其他重要作用,不方便直接将 option 与 command 进行键位互换;OSX的单词级左右移为option + Left/Right Arrow,整行级左右移为command + Left/Right Arrow。内置的键盘快捷键映射修改只支持单键位交换,需要借助第三方工具:Karabiner-Elements。单词级移动与进行编辑常用的command不同键位,因此尝试交换二者功能。依次搜索并点击对应词条右侧的。找到新添加的两个规则,点击。,在左侧侧边栏中选中。
2023-06-12 16:34:25 2530
原创 Jupyter Notebook 自定义主题样式(文本、代码、图表)流程与参考方案
流程介绍安装 Jupyter Notebook安装 jupyter-themes个性化设置 - 文本 & 代码个性化设置 - 图表 (Plot) 样式1 安装 Jupyter NotebookJupyter Notebook 作为 python 代码分块运行的平台广泛被使用,若读者计划安装 Jupyter Notebook,可以参照以下步骤:1.1 (可选)试用 Jupyter NotebookJupyter 提供了线上测试版本的 Notebook,可以访问以下网址试用:http
2021-07-05 16:56:06 1334
原创 [408] NOTES on Computer Organization -计算机考研408笔记-计算机组成原理
[408] NOTES on Computer Organization文章目录[408] NOTES on Computer Organization1 计算机系统概述2 数据表示和运算3 存储系统4 指令系统5 中央处理器(CPU)6 总线7 I/O系统1 计算机系统概述冯·诺依曼计算机:以“存储程序”概念为基础的各类计算机硬件系统五大部件:运算器、控制器、存储器、输入设备、输出设备指令和数据以二进制形式存储在存储器中指令在存储器内按顺序存放指令由操作码、地址码组成以运算器为中心
2020-12-24 19:05:07 539 1
原创 [408] NOTES on DataStructure -计算机考研408笔记-数据结构
[408] NOTES on DataStructure文章目录[408] NOTES on DataStructure1 绪论2 线性表3 栈和队列、压缩存储4 树与二叉树5 图6 查找7 排序1 绪论快慢指针Type foo(Node *head) { Node *slow, *fast; slow = fast = head; while (fast->next) { slow = slow->next; fast = fast->next; if (f
2020-12-24 18:58:24 254 1
原创 互联网、因特网、万维网、广域网、局域网、以太网的区别
互联网、因特网、万维网、广域网、局域网、以太网的概念容易混淆,以下记录便于区分各个不同概念。互联网(internet):泛指多个计算机网络按照一定通信协议相互连接而成的一个大型计算机网络。因特网(Internet):特指在ARPA网基础上发展而来的、世界上最大的、全球性互联网。万维网(WWW):无数个网络站点、网页的集合,一起构成了因特网最主要的部分。广域网(WAN):指覆盖范围很广的长距离网络,是因特网的核心部分,各结点通过高速链路连接,其协议主要工作在网络层,常用有PPP协议、HDLC协议。
2020-11-20 13:56:54 4674 1
原创 [408] NOTES on WEB -计算机考研408笔记-计算机网络
[408] NOTES on WEB文章目录[408] NOTES on WEB1 计算机网络体系结构2 物理层3 数据链路层4 网络层5 传输层6 应用层1 计算机网络体系结构计算机网络概念:广义观点(低级阶段):能实现远程信息处理的系统或能进一步达到资源共享的系统。资源共享观点(符合目前基本特征):以能够相互共享资源的方式互联起来的自治计算机系统的集合,目的是“资源共享”,组成单元是“分布在不同地理位置的多台独立的‘自治计算机’”,必须遵守统一规则“网络协议”。用户透明性观点(未来的追求
2020-11-20 13:52:48 1173
原创 [408] NOTES on OS -计算机考研408笔记-操作系统
[408] NOTES on OS文章目录[408] NOTES on OS1 计算机系统概述2 进程管理3 内存管理4 文件系统5 I/O管理1 计算机系统概述单处理机系统中,可并行的是:处理机与设备处理机与通道设备与设备进程与进程不可以并行。操作系统与用户通信接口通常包括:shell(命令接口)命令解释器(命令接口)广义指令(即系统调用)不包括“缓存管理指令”,缓存管理由系统进行,对用户透明。多道程序设计基本特征:制约性:共享资源、协同等原因相互制约间
2020-11-20 13:44:00 598 1
原创 局部搜索、模拟退火和遗传算法求解TSP问题
模拟退火和遗传算法求解TSP问题文章目录模拟退火和遗传算法求解TSP问题摘要1 导言1.1 问题重述1.2 TSP问题选择1.3 思路设计1.4 结果简览2 实验过程2.1 TSPbase2.2 LocalSearch2.2.1 流程图2.2.2 满意度、活跃度机制2.2.3 邻域操作2.2.4 代码分析2.3 SimulatedAnnealing2.3.1 流程图2.3.2 代码分析2.4 GeneticAlgorithm2.4.1 流程图2.4.2 交叉与变异算子2.4.3 评分机制及精英保留策略2.
2020-06-25 09:40:26 2444
原创 CUDA 查询本机共享内存大小
1 基本流程使用cuda预实现的sample程序 deviceQuery 查询本机设备(显卡)信息利用grep抓取 shared字样查询共享内存大小2 操作步骤环境:Ubuntu 18.04, win系统可利用everything等索引搜索找到deviceQuery.exe定位deviceQuery$ locate deviceQuery选用/usr/local/cuda-10.2/samples/bin/x86_64/linux/release/deviceQuery$ /usr/l
2020-06-19 15:58:26 2882
原创 Linux下终端输出重定向至剪贴板的方法
本文参考:xclip----建立终端和剪切板之间的通道提供了通过alias设置别名的简单方案。xclip 工具xclip命令建立了终端和剪切板之间通道,可以用命令的方式将终端输出或文件的内容保存到剪切板中,也可以将剪切板的内容输出到终端或文件不加选项时只在保存在X PRIMARY(应该是终端剪切板),加上选项 -selection c后保存在 X CLIPBOARD(应该是外部程序剪切板)。安装方式:sudo apt-get install xclip使用方案首先,向shell配置文件写入
2020-05-09 17:11:01 4239 6
原创 LeetCode 30天挑战 Day-30
LeetCode 30 days Challenge - Day 30本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary TreeGiven a binary tree wh...
2020-04-30 16:28:07 463
原创 LeetCode 30天挑战 Day-29
LeetCode 30 days Challenge - Day 29本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Binary Tree Maximum Path SumGiven a non-empty binary tree, find the maximum path sum.For this proble...
2020-04-29 19:02:30 137
翻译 [译] Pytorch 官方教程 词嵌入:编码词语与语义
原文传送门:WORD EMBEDDINGS: ENCODING LEXICAL SEMANTICSPytorch官方教程 翻译 词嵌入:编码词语与语义Python Pytorch DeepLearning
2020-04-29 16:54:12 511
原创 LeetCode 30天挑战 Day-28
LeetCode 30 days Challenge - Day 28本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。First Unique NumberYou have a queue of integers, you need to retrieve the first unique integer in the...
2020-04-28 22:22:40 139
原创 LeetCode 30天挑战 Day-27
LeetCode 30 days Challenge - Day 27本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Maximal SquareGiven a 2D binary matrix filled with 0’s and 1’s, find the largest square containing on...
2020-04-27 17:03:12 278
原创 LeetCode 30天挑战 Day-26
LeetCode 30 days Challenge - Day 26本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Longest Common SubsequenceGiven two strings text1 and text2, return the length of their longest commo...
2020-04-27 15:05:19 152
原创 LeetCode 30天挑战 Day-25
LeetCode 30 days Challenge - Day 25本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Jump GameGiven an array of non-negative integers, you are initially positioned at the first index of ...
2020-04-25 18:40:31 186
原创 LeetCode 30天挑战 Day-24
LeetCode 30 days Challenge - Day 24本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support...
2020-04-25 11:49:01 127
原创 LeetCode 30天挑战 Day-23
LeetCode 30 days Challenge - Day 23本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Bitwise AND of Numbers RangeGiven a range [m, n] where 0 <= m <= n <= 2147483647, return the...
2020-04-23 17:12:10 168
原创 LeetCode 30天挑战 Day-22
LeetCode 30 days Challenge - Day 22本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Subarray Sum Equals KGiven an array of integers and an integer k, you need to find the total number o...
2020-04-22 17:13:52 116
原创 LeetCode 30天挑战 Day-21
LeetCode 30 days Challenge - Day 21本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Leftmost Column with at Least a One(This problem is an interactive problem.)A binary matrix means th...
2020-04-21 17:22:50 340
原创 LeetCode 30天挑战 Day-20
LeetCode 30 days Challenge - Day 20本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Construct Binary Search Tree from Preorder TraversalReturn the root node of a binary search tree that...
2020-04-20 16:45:04 169
原创 LeetCode 30天挑战 Day-19
LeetCode 30 days Challenge - Day 19本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Search in Rotated Sorted ArraySuppose an array sorted in ascending order is rotated at some pivot unk...
2020-04-20 11:38:05 137
原创 LeetCode 30天挑战 Day-18
LeetCode 30 days Challenge - Day 18本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Minimum Path SumGiven a m x n grid filled with non-negative numbers, find a path from top left to bot...
2020-04-20 11:21:46 177
原创 LeetCode 30天挑战 Day-17
LeetCode 30 days Challenge - Day 17本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Number of IslandsGiven a 2d grid map of '1's (land) and '0's (water), count the number of islands. An...
2020-04-17 16:27:45 114
原创 LeetCode 30天挑战 Day-16
LeetCode 30 days Challenge - Day 16本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Valid Parenthesis StringGiven a string containing only three types of characters: ‘(’, ‘)’ and ‘*’, w...
2020-04-16 17:07:09 103
原创 LeetCode 30天挑战 Day-15
LeetCode 30 days Challenge - Day 15本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Product of Array Except SelfGiven an array nums of n integers where n > 1, return an array output...
2020-04-15 16:03:16 103
原创 LeetCode 30天挑战 Day-14
LeetCode 30 days Challenge - Day 14本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Perform String ShiftsYou are given a string s containing lowercase English letters, and a matrix shif...
2020-04-14 23:07:39 256
原创 LeetCode 30天挑战 Day-13
LeetCode 30 days Challenge - Day 13本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Contiguous ArrayGiven a binary array, find the maximum length of a contiguous subarray with equal num...
2020-04-13 16:06:33 108
原创 LeetCode 30天挑战 Day-12
LeetCode 30 days Challenge - Day 12本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Last Stone WeightWe have a collection of stones, each stone has a positive integer weight.Each turn,...
2020-04-12 16:34:31 97
原创 LeetCode 30天挑战 Day-11
LeetCode 30 days Challenge - Day 11本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Diameter of Binary TreeGiven a binary tree, you need to compute the length of the diameter of the tre...
2020-04-11 16:48:38 119
原创 LeetCode 30天挑战 Day-10
LeetCode 30 days Challenge - Day 10本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Min StackDesign a stack that supports push, pop, top, and retrieving the minimum element in constant ...
2020-04-10 16:54:48 145
原创 LeetCode 30天挑战 Day-9
LeetCode 30 days Challenge - Day 9本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Backspace String CompareGiven two strings S and T, return if they are equal when both are typed into e...
2020-04-10 12:35:42 123
原创 LeetCode 30天挑战 Day-8
LeetCode 30 days Challenge - Day 8本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Middle of the Linked ListGiven a non-empty, singly linked list with head node head, return a middle no...
2020-04-08 21:35:32 94
原创 LeetCode 30天挑战 Day-7
LeetCode 30 days Challenge - Day 7本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Counting ElementsGiven an integer array arr, count element x such that x + 1 is also in arr.If there’...
2020-04-07 17:28:38 174
原创 LeetCode 30天挑战 Day-6
LeetCode 30 days Challenge - Day 6本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Group AnagramsGiven an array of strings, group anagrams together.Example:Input: ["eat", "tea", "tan"...
2020-04-06 17:28:21 139
原创 LeetCode 30天挑战 Day-5
LeetCode 30 days Challenge - Day 5本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Best Time to Buy and Sell Stock IISay you have an array for which the ith element is the price of a gi...
2020-04-06 16:49:13 161
原创 LeetCode 30天挑战 Day-4
LeetCode 30 days Challenge - Day 4本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Move ZeroesGiven an array nums, write a function to move all 0's to the end of it while maintaining th...
2020-04-06 16:28:02 155
原创 LeetCode 30天挑战 Day-3
LeetCode 30 days Challenge - Day 3本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Maximum SubarraySolutionGiven an integer array nums, find the contiguous subarray (containing at leas...
2020-04-04 23:02:27 168
原创 LeetCode 30天挑战 Day-2
LeetCode 30 days Challenge - Day 2本系列将对LeetCode新推出的30天算法挑战进行总结记录,旨在记录学习成果、方便未来查阅,同时望为广大网友提供帮助。Happy NumberWrite an algorithm to determine if a number is “happy”.A happy number is a number defined...
2020-04-04 22:23:49 118
AI Summary.pdf
2020-01-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人