自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Linux学习笔记 尚硅谷 实操篇-远程登录linux系统(5)

远程登录linux系统https://www.bilibili.com/video/BV1dW411M7xL?p=131.为什么要远程登录linux系统?2.XShell3、Xftp5

2020-11-03 23:36:05 163

原创 Linux学习笔记 尚硅谷(4)

Linux的目录结构(文件系统)总结:1、linux的目录中有且只有一个根目录/2、linux的各个目录存放的内容是规划好的,不用乱放文件3、linux是以文件的形式管理我们的设备,因此linux系统,一切皆为文件4、linux各个文件目录下存放什么内存,必须有一个认识。5、学习后,脑海中应该有一颗linux目录树。...

2020-11-03 23:09:21 151

原创 Linux学习笔记 尚硅谷(3)

VMTools的安装https://www.bilibili.com/video/BV1dW411M7xL?p=111、实现windows和CentOS之间复制粘贴2、实现windows和CentOS之间存在一个共享文件夹

2020-11-03 22:53:21 148

原创 Linux学习笔记 尚硅谷(2)

Linux介绍- 一款操作系统,免费、开源、安全、高效、稳定、处理高并发非常强悍,很多企业级的项目都部署到Linux/unix服务器运行- 主要发行版:Ubuntu、RedHat、CentOS、Suse- 吉祥物:企鹅 Tux (w(゚Д゚)w。。。。。- 目前主要的操作系统:window、android、linux、车载操作系统、IOS、MacLinux和Unix的关系...

2020-11-01 00:34:45 154

原创 Linux学习笔记 尚硅谷(1)

Linux的学习方向- linux运维工程师:服务器规划、调试优化、日常监控、故障处理、数据备份、日志分析、服务器瘫痪了,要迅速恢复。- linux嵌入式工程师:熟练掌握linux下各种驱动程序开发,还有就是在嵌入式系统中进行程序开发。- lnux开发项目:JavaEE、大数据、Python、PHP、C/C++Linux应用领域- 个人桌面领域的应用:相对薄弱;随着ubuntu等优秀桌面环境的兴起,同时各大硬件厂商对其支持加大,linux在个人桌面领域的占有率在逐渐提高。- 服.

2020-10-31 15:58:43 292

原创 Git学习(4)

GIT 分支创建分支git branch 分支名git log --decorate //让git log显示指向这个提交的所有引用(比如说分支、标签等),让你更完整地观察项目结构。git log --oneline //把每一个提交压缩到了一行中。它默认只显示提交ID和提交信息的第一行。对于获得项目的总体情况很有帮助。git log --decorate --oneline --graph --all //--graph展示提交历史的分支结构,和--oneline和...

2020-10-30 01:35:17 113

原创 Git学习(3)

git commit --amend // 进入编辑界面,继续点击i进入插入模式,点击esc退出插入模式,输入:wq保存修改并退出git commit --amend -m "新的commit描述" // 直接修改整个描述覆盖最新的commit信息,不生成新的commit,但是commit id会变===========================================================删除文件 git rm***- 如果不小心删除了工作区的文件,git ..

2020-10-29 22:09:48 95

原创 Git学习(2)

git add filename // 将工作区文件filename提交到暂存区git commit -m "此次提交版本的描述" // 将暂存区的更改提交到Git仓库git reset HEAD // 将HEAD指向的版本的文件覆盖暂存区的文件git checkout -- filename // 将暂存区文件filename覆盖工作区文件===================================================git reset HEAD~ //表...

2020-10-29 16:36:56 96

原创 Git(1)

下载地址:https://git-scm.com/《Pro Git》:https://git-scm.com/book/en/v2初次使用Git前的配置:在命令行模式下输入一下命令- git config --global user.name "用户名"- git config --global user.email "邮箱"检查配置: - git config --listGit将每个版本独立保存,在分支管理上带来很大的益处。三棵树:工作区域(本地存放项目的地方)、暂.

2020-10-29 13:46:04 59

原创 Github学习-1

Github目的:托管项目代码基本概念:仓库(Repository):用来存放项目代码,每个项目对应一个仓库,多个开源项目则有多个仓库。收藏(Star)按钮:收藏项目的人数,超过100个Star的项目一般质量不错。复制克隆项目(Fork)按钮:将张三/test仓库复制一份给李四(李四/test仓库),该fork的项目是独立存在的。发起请求(Pull Request):基于Fork的操作,若李四/test仓库做了更改(如增加了一个文件),李四可以进行pull request操作,使李四

2020-10-29 13:21:42 415

原创 【剑指】用两个栈实现队列

题目描述用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。class Solution{public: void push(int node) { stack1.push(node); } int pop() { if(stack2.empty()) { ...

2019-11-03 21:42:07 66

原创 【剑指】重建二叉树

被二叉树搞昏头。。。。。。。。。。。。。。。。。。。。。。。。。。。真的菜到扣脚凸(艹皿艹 )题目描述输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建二叉树并返回。/** * Definition for bi...

2019-11-03 20:56:17 85

原创 【剑指】从尾到头打印链表

题目描述输入一个链表,按链表从尾到头的顺序返回一个ArrayList。//方法一:使用algorithm库的reverse转置函数#include <algorithm>class Solution {public: vector<int> printListFromTailToHead(ListNode* head) { vecto...

2019-11-03 20:04:28 83

原创 【剑指】替换空格

题目描述请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。class Solution {public: void replaceSpace(char *str,int length) { if(str == NULL || length < 0) ret...

2019-11-03 19:40:48 79

原创 【剑指刷题】二维数组中的查找

题目描述在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。class Solution {public: bool Find(int target, vector<vector<int> > array) { ...

2019-11-03 19:01:34 75

原创 算法概论 8.3

题目:STINGY SAT is the following problem: given a set of clauses (each a disjunction of literals) and an interger k, find a satisfying assignment in which at most k variables are true, if such an as

2018-01-01 20:36:12 281

原创 LeetCode-- Combinations

题目:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4], [3,4], [2,3], [1,2], [1,3],

2017-12-24 22:17:26 195

原创 LeetCode-

题目:Given a non-negative integer N, find the largest number that is less than or equal to N with monotone increasing digits.(Recall that an integer has monotone increasing digits if and only

2017-12-13 08:57:28 150

原创 LeetCode--Binary Tree Level Order Traversal

题目:Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree [3,9,20,null,null,15,7], 3 /

2017-12-10 13:18:52 134

原创 LeetCode-- Employee Importance

题目:You are given a data structure of employee information, which includes the employee's unique id, his importance value and his directsubordinates' id.For example, employee 1 is the leader

2017-12-10 12:49:38 205

原创 LeetCode--01 Matrix

题目Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.The distance between two adjacent cells is 1.Example 1: Input:0 0 00 1 00 0 0Output:0 0 0

2017-12-09 11:38:06 201

原创 LeetCode -- Target Sum

题目:You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose one from + and - as its new symbol.F

2017-12-03 18:05:44 136

原创 LeetCode-- Permutations

题目:Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2],

2017-12-03 17:25:35 157

原创 LeetCode--Subsets

题目:Given a set of distinct integers, nums, return all possible subsets (the power set).Note: The solution set must not contain duplicate subsets.For example,If nums = [1,2,3], a soluti

2017-12-03 12:41:59 114

原创 LeetCode--Combination Sum||

题目:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C may only be used once in th

2017-12-03 11:35:42 184

原创 LeetCode--Combination Sum

题目:Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may b

2017-12-03 11:16:03 185

原创 LeetCode --Letter Combinations of a Phone Number

题目:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input

2017-10-14 10:17:47 249

原创 LeetCode -- Valid Parentheses

题目:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are

2017-10-14 09:45:53 104

原创 LeetCode -- Search Insert Position

题目:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the

2017-10-14 09:20:20 194

原创 LeetCode-Swap Nodes in Pairs

题目:Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant space

2017-09-29 20:34:35 273

原创 LeetCode--Container With Most Water

题目:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i,

2017-09-29 19:40:24 182

原创 LeetCode-- Implement strStr()

题目:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.解读:給字符串haystack和字符串needle,找到haystack中第一次出现needle的位置下标并返回。代码:cla

2017-09-24 11:51:40 218

原创 LeetCode- Find Bottom Left Tree Value

题目:Given a binary tree, find the leftmost value in the last row of the tree.Example 1:Input: 2 / \ 1 3Output:1Example 2: Input: 1 / \ 2 3

2017-09-24 11:33:32 144

原创 LeetCode--4Sum

题目:Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.Note: The

2017-09-14 21:24:35 129

原创 LeetCode-Add Two Numbers

题目描述:You 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 numbers and

2017-09-14 19:28:22 163

原创 LeetCode--Two Sum

题目描述:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use

2017-09-10 12:22:47 183

空空如也

空空如也

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

TA关注的人

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