自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

少年心气

Github : https://github.com/shinyeal

  • 博客(9)
  • 收藏
  • 关注

原创 [LeetCode_141] Linked List Cycle_环形链表

leetcode_141题目描述Given a linked list, determine if it has a cycle in it.Follow up: Can you solve it without using extra space?思路:设置两个指针p,q,从头结点开始,p节点每次走一步,q节点每次走两步,如果两个指针会相遇,则为环形链表,如果较快的指针q到达了...

2018-11-14 17:16:24 190

原创 [LeetCode_83] Remove Duplicates from Sorted List_删除排序链表中的重复元素

leetcode_83### 题目描述Given a sorted linked list, delete all duplicates such that each element appear only once.Example 1:Input: 1->1->2 Output: 1->2 Example 2:Input: 1->1->2->3

2018-11-13 17:57:41 185

原创 [LeetCode_24] Swap Nodes in Pairs_两两交换链表中的节点

leetcode_24题目描述Given a linked list, swap every two adjacent nodes and return its head.Example:Given 1->2->3->4, you should return the list as 2->1->4->3.Note:Your algorithm...

2018-11-13 15:34:04 221

原创 [LeetCode_19] Remove Nth Node From End of List_删除链表的倒数第N个节点

leetcode_19题目描述:Given a linked list, remove the n-th node from the end of list and return its head.Example:Given linked list: 1->2->3->4->5, and n = 2.After removing the second nod...

2018-11-13 14:46:24 267

原创 Linux笔记

本条博客将会不定时更新… 常用Linux命令目录基本操作1. ls命令 :用来显示目标列表ls (选项) (参数)-a 显示所有档案及目录-l 以长格式显示目录下的内容列表ls -a -l == ls -al2. cp命令 :将一个或多个源文件或者目录复制到指定的目的文件或目录cp (选项) (参数)-R/r 复制目录 (默认情况下cp命令不能复...

2018-08-20 16:57:13 314

原创 关于指定路径下目录文件的自动备份

自动备份项目具备配置文件每天定时更新,并详细记录日志对文件压缩保留3天的备份数据配置文件包含需要备份的路径形式:path1:path2:path3目标目录:打包到的安全目录#filename: .back.rc#filepath:/home/xinyue/shell/.back.rcbackup_path=/home/xinyue/get:/home/x...

2018-08-17 22:42:09 1746

原创 如何将本地项目上传到Github

​ 今年三月份我听闻了github这个东西,当时的我正在自学前端,因此我注册了github,最后因为用不懂就此搁浅,但是最近接触了Linux,所以我get了这项技能hhh~ 1. 首先你要有个github的账号,注册这一块就不多说了,然后新建一个仓库,除了建一个仓库名什么都不选2. 复制下边的链接并打...

2018-08-16 21:42:40 228

原创 Project Euler 02

Problem2Even Fibonacci numbers Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, ...

2018-08-16 19:48:29 182

原创 Project Euler 01

Problem 1Multiples of 3 and 5 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the m...

2018-08-11 17:45:26 229

空空如也

空空如也

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

TA关注的人

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