- 博客(32)
- 收藏
- 关注
转载 8. find
find使用find命令的主要作用是对树形目录层次结构进行彻底检查。find命令的一般格式: find pathname -expressionsfind常用表达式在当前文件夹中找出名为.bak的文件,并将其删除;在删除过程中打印删除的文件名逻辑表达式find示例找出当前文...
2018-12-10 15:30:00 88
转载 7. grep
grep命令grepgrep是通用正则表达式分析程序(General Regular Expression Parser)的缩写。grep命令可以在它的输入中搜索指定的字符串模式(Pattern)。grep命令的输出包含输入中指定的字符串模式的行。grep命令的一般格式:grep [option] pattern filegrep命令常用开关...
2018-12-10 15:21:00 86
转载 6. vi使用
什么是vi文本编辑工具vi什么是vi:vi是Linux/Unix底下最常用的文本编辑器vim:vim是vi的升级版本,它不仅兼容vi的所有命令,而且还加入了一些新的特性。vi的三种工作模式编辑模式光标定位除了键盘上有上、下、左、右箭头键,就由这些键来完成光标的移动。另外,可以用下面的键完成同样的功能:移动一个字符...
2018-12-10 14:56:00 140
转载 5.Linux文件权限
Linux用户类别root:这是系统特权用户类,他们都有访问root登录账号的权限owner:这是实际拥有文件的用户group:这是共享文件的组访问权的用户类的用户组名称world:这是不属于上面3类的所有其他用户。/etc/passwd 文件格式:muming:x:1000:1000:muming,,,:/home/muming:/bin/bash...
2018-12-10 14:26:00 174
转载 4. Linux管理命令
df、du:磁盘、空间相关的命令df -h 以直观的方式显示磁盘分区使用状况df test 查询test属于哪个分区dudu -h 以直观方式显示文件夹目录的使用状况du -s 只显示当前文件夹的使用状况(不显示其子文件夹的使用状况)du -shfree:查看内存命令ps:查看进程命令ps:当前用户...
2018-12-10 14:05:00 93
转载 3. Linux文件系统
什么是文件系统A directory structure contained within a disk drive or disk area(文件系统是包括在一个磁盘或分区的目录结构)A method of organising files on a disk, eg NTFS, FAT, System V, ext2, ext3。(文件系统是在一个磁盘组织文件的方法,如N...
2018-12-10 13:51:00 112
转载 2. bash基础
通配符通配符功能说明实例*匹配所有字符ls *.o?匹配所有的当个字符ls net???[a-z]匹配属于a到z范围集合内的一个字符ls [a-i]*[...]与方括号内的某...
2018-12-10 13:35:00 493
转载 1. Linux基本操作和基本命令
常用快捷键: Ctrl + d : 结束符 Ctrl + c : 中断前台进程 Ctrl + z : 将前台进程停止掉 创建终端: 创建终端标签:Ctrl + Shift + t; 切换标签: Alt + n (n = 1...) 新开终端:Ctrl + Shift + n / Ctrl + Alt + tman 手册的各章...
2018-12-10 13:23:00 96
转载 第一章 计算机系统漫游
①、程序员通过文本编辑器创建并保存的文本文件,命名为hello.c1.1 信息就是位+上下位源程序实际上就是一个由0和1组成的位(又称为比特)序列,8个位被组织成一组,称为字节。每个字节表示程序中的某些文本字符。注意:每个文本行都是以一个看不见的换行符‘\n’来结束的,它所对应的整数值为10。像hello.c这样只由ASCII...
2018-11-29 20:37:00 88
转载 75. Sort Colors
题目链接:https://leetcode.com/problems/sort-colors/Given an array withnobjects colored red, white or blue, sort themin-placeso that objects of the same color are adjacent, with the colors i...
2018-11-27 17:13:00 66
转载 16. 3Sum Closest
题目链接:https://leetcode.com/problems/3sum-closest/Given an arraynumsofnintegers and an integertarget, find three integers innumssuch that the sum is closest totarget. Return the sum o...
2018-11-26 14:24:00 71
转载 目录索引
AC#题名难度AC2Add Two Numbers/ 两数相加中等AC9Palindrome Number/ 回文数简单AC7Reverse Integer/ 整数反转简单AC11Container With Most Water / 盛最多水的容器...
2018-11-26 12:50:00 309
转载 14. Longest Common Prefix
题目链接:https://leetcode.com/problems/longest-common-prefix/Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empt...
2018-11-22 23:58:00 71
转载 11. Container With Most Water
题目链接:https://leetcode.com/problems/container-with-most-water/Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn s...
2018-11-20 16:20:00 80
转载 707. Design Linked List
题目链接:https://leetcode.com/problems/design-linked-list/Design yourimplementation of the linked list. You can choose to use the singly linked list or the doubly linked list. A node in a sing...
2018-11-20 15:25:00 63
转载 059. Spiral Matrix II
题目链接:https://leetcode.com/problems/spiral-matrix-ii/description/Given a positive integern, generate a square matrix filled with elements from 1 ton2in spiral order.Example:Input: 3...
2018-11-16 17:09:00 70
转载 054. Spiral Matrix
题目链接:https://leetcode.com/problems/spiral-matrix/description/Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.Example 1:Input:[...
2018-11-16 15:32:00 77
转载 328. Odd Even Linked List
题目链接:https://leetcode.com/problems/odd-even-linked-list/description/Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking ab...
2018-11-12 22:38:00 72
转载 142. Linked List Cycle II
题目链接:https://leetcode.com/problems/linked-list-cycle-ii/description/Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Note:Do not modify the li...
2018-11-12 14:37:00 68
转载 143. Reorder List
题目链接:https://leetcode.com/problems/reorder-list/description/Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You maynotmodify the values in the list's n...
2018-11-12 14:16:00 58
转载 445. Add Two Numbers II
题目链接:https://leetcode.com/problems/add-two-numbers-ii/description/You are given twonon-emptylinked lists representing two non-negative integers. The most significant digit comes first and e...
2018-11-10 13:27:00 67
转载 086. Partition List
题目链接:https://leetcode.com/problems/partition-list/description/Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.Yo...
2018-11-10 12:06:00 57
转载 9. Palindrome Number
题目链接:https://leetcode.com/problems/palindrome-number/description/Determine whether an integer is a palindrome. An integerisapalindrome when itreads the same backward as forward.Example ...
2018-11-08 15:07:00 61
转载 141. Linked List Cycle
题目链接:https://leetcode.com/problems/linked-list-cycle/description/Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?思路:...
2018-11-08 11:43:00 62
转载 203. Remove Linked List Elements
题目链接:https://leetcode.com/problems/remove-linked-list-elements/description/Example:Input: 1->2->6->3->4->5->6, val = 6Output: 1->2->3->4->5思路:...
2018-11-07 11:27:00 50
转载 234. Palindrome Linked List
题目链接:https://leetcode.com/problems/palindrome-linked-list/description/Given a singly linked list, determine if it is a palindrome.Example 1:Input: 1->2Output: falseExample 2:In...
2018-11-06 12:27:00 39
转载 007. Reverse Integer
题目链接:https://leetcode.com/problems/reverse-integer/description/Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123...
2018-11-05 10:23:00 42
转载 002. Add Two Numbers
题目链接:https://leetcode.com/problems/add-two-numbers/description/Example:Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)Output: 7 -> 0 -> 8Explanation: 342 + 465 = 807.思...
2018-11-04 23:12:00 49
转载 腾讯 2018 秋招精选(50 题)
AC#题名难度AC2两数相加中等4两个排序数组的中位数困难5最长回文子串中等AC7反转整数简单8字符串转整数中等AC9回文数简单AC11盛最多水的容器中等...
2018-11-04 17:11:00 176
转载 083. Remove Duplicates from Sorted List
题目链接:https://leetcode.com/problems/rotate-list/description/Given a sorted linked list, delete all duplicates such that each element appear onlyonce.Example 1:Input: 1->1->2Output...
2018-11-03 23:30:00 74
转载 061. Rotate List
题目链接:https://leetcode.com/problems/rotate-list/description/Example 1:Input: 1->2->3->4->5->NULL, k = 2Output: 4->5->1->2->3->NULLExplanation:rotate 1 s...
2018-11-03 14:28:00 56
转载 925. Long Pressed Name
题目链接:https://leetcode.com/problems/long-pressed-name/description/Example 1:Input: name = "alex", typed = "aaleex"Output: trueExplanation: 'a' and 'e' in 'alex' were long pressed.Exa...
2018-11-03 01:03:00 60
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人