- 博客(34)
- 资源 (21)
- 问答 (1)
- 收藏
- 关注
原创 TCP/IP协议(6): DHCP(Dynamic Host Configuration Protocol) 协议 —— 网络地址的分配方式
TCP/IP协议(6): DHCP(Dynamic Host Configuration Protocol) 协议关于 DHCP 协议关于 BOOTP(BOOTstrapping Protocol) 协议关于 DHCP 协议DHCP 协议的基本内容DHCP 协议的详细流程DHCP 协议消息参考文献...
2018-09-13 14:19:44 2001
原创 TCP/IP协议(5): IP(Internet Protocol) 协议 —— 连接各个网络的协议
TCP/IP协议(4): IP(Internet Protocol) 协议关于 IP(Internet Protocol) 协议IP 协议的主要内容IP 协议包(Packet)IPv6 协议参考文献
2018-09-04 08:41:27 5212
原创 LeetCode: 214. Shortest Palindrome
LeetCode: 214. Shortest Palindrome题目描述Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by per...
2018-09-30 07:34:06 137
原创 LeetCode: 213. House Robber II
LeetCode: 213. House Robber II题目描述You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a ci...
2018-09-28 08:34:29 203
原创 LeetCode: 211.Add and Search Word - Data structure design
LeetCode: Add and Search Word - Data structure design题目描述Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal w...
2018-09-26 08:26:39 217
原创 LeetCode: 210. Course Schedule II
LeetCode: 210. Course Schedule II题目描述There are a total of n courses you have to take, labeled from 0 to n-1.Some courses may have prerequisites, for example to take course 0 you have to first take ...
2018-09-25 08:17:31 128
原创 LeetCode: 209. Minimum Size Subarray Sum
LeetCode: 209. Minimum Size Subarray Sum题目描述Given an array of ``n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn’t on...
2018-09-24 17:32:35 124
原创 LeetCode: 208. Implement Trie (Prefix Tree)
LeetCode: 208. Implement Trie (Prefix Tree)题目描述Implement a trie with insert, search, and startsWith methods.Example:Trie trie = new Trie();trie.insert("apple");trie.search("apple"); // return...
2018-09-23 12:01:46 109
原创 LeetCode: 207. Course Schedule
LeetCode: 207. Course Schedule题目描述There are a total of n courses you have to take, labeled from 0 to n-1.Some courses may have prerequisites, for example to take course 0 you have to first take cou...
2018-09-20 08:14:43 193
原创 LeetCode: 205. Isomorphic Strings
LeetCode: 205. Isomorphic Strings题目描述Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a cha...
2018-09-19 08:21:27 180
原创 LeetCode: 204. Count Primes
LeetCode: 204. Count Primes题目描述解题思路AC 代码题目描述Count the number of prime numbers less than a non-negative number, n.Example:Input: 10Output: 4Explanation: There are 4 prime numbers less than 10, th...
2018-09-18 08:20:46 224
原创 LeetCode:904. Fruit Into Baskets
LeetCode:904. Fruit Into Baskets题目描述In a row of trees, the i-th tree produces fruit with type tree[i].You start at any tree of your choice, then repeatedly perform the following steps:Add one ...
2018-09-17 08:05:10 899
原创 LeetCode: 905. Sort Array By Parity
LeetCode: 905. Sort Array By Parity题目描述Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.You may return a...
2018-09-17 08:00:46 855
原创 LeetCode: 203. Remove Linked List Elements
LeetCode: 203. Remove Linked List Elements题目描述Remove all elements from a linked list of integers that have value val.Example:Input: 1->2->6->3->4->5->6, val = 6Output: 1-&g...
2018-09-14 08:16:50 147
原创 LeetCode: 202. Happy Number
LeetCode: 202. Happy Number题目描述Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace t...
2018-09-13 08:14:04 195
原创 LeetCode: 201. Bitwise AND of Numbers Range
LeetCode: 201. Bitwise AND of Numbers Range题目描述Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive.Example 1:Input: [5...
2018-09-12 08:12:01 119
原创 LeetCode: 200. Number of Islands
LeetCode: 200. Number of Islands题目描述Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands ho...
2018-09-11 07:58:35 139
转载 LeetCode: 903. Valid Permutations for DI Sequence
LeetCode: 903. Valid Permutations for DI Sequence题目描述We are given S, a length n string of characters from the set {'D', 'I'}. (These letters stand for “decreasing” and “increasing”.)A valid perm...
2018-09-10 08:05:24 1826
原创 LeetCode: 902. Numbers At Most N Given Digit Set
LeetCode: 902. Numbers At Most N Given Digit Set题目描述We have a sorted set of digits D, a non-empty subset of {'1','2','3','4','5','6','7','8','9'}. (Note that '0' is not included.)Now, we write ...
2018-09-09 18:34:23 558
原创 LeetCode: 901. Online Stock Span
LeetCode: 901. Online Stock Span解题思路Write a class StockSpanner which collects daily price quotes for some stock, and returns the span of that stock’s price for the current day.The span of the st...
2018-09-09 18:20:25 493
原创 LeetCode: 900. RLE Iterator
LeetCode: 900. RLE Iterator题目描述Write an iterator that iterates through a run-length encoded sequence.The iterator is initialized by RLEIterator(int[] A), where A is a run-length encoding of some...
2018-09-09 18:00:57 450
原创 LeetCode:Weekly Contest 101
LeetCode:Weekly Contest 101题目描述1. LeetCode: 900. RLE Iterator 题解2. LeetCode: 901. Online Stock Span 题解3. LeetCode: 902. Numbers At Most N Given Digit Set 题解4. LeetCode: 903. Valid Permutat...
2018-09-09 17:52:36 369
原创 LeetCode: 198. House Robber
LeetCode: 198. House Robber解题思路You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing ...
2018-09-08 10:33:14 152
原创 LeetCode: 197. Rising Temperature
LeetCode: 197. Rising Temperature题目描述Given a Weather table, write a SQL query to find all dates’ Ids with higher temperature compared to its previous (yesterday’s) dates.+---------+-----------...
2018-09-07 08:32:05 181
原创 LeetCode: 196. Delete Duplicate Emails
LeetCode: 196. Delete Duplicate Emails题目描述Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id.+----+-------------...
2018-09-06 08:09:27 184
原创 LeetCode: 195. Tenth Line
LeetCode: 195. Tenth Line题目描述Given a text file file.txt, print just the 10th line of the file.Example:Assume that file.txt has the following content:Line 1Line 2Line 3Line 4Line 5Line...
2018-09-05 08:04:06 422
原创 LeetCode: 194. Transpose File
LeetCode: 194. Transpose File题目描述Given a text file file.txt, transpose its content.You may assume that each row has the same number of columns and each field is separated by the ' ' character....
2018-09-04 08:16:28 251
原创 LeetCode: 193. Valid Phone Numbers
LeetCode: 193. Valid Phone Numbers题目描述Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print all valid phone numbers.You may assume...
2018-09-03 07:56:02 465
原创 LeetCode: 899. Orderly Queue
LeetCode: 899. Orderly Queue题目描述A string S of lowercase letters is given. Then, we may make any number of moves. In each move, we choose one of the first K letters (starting from the left), remo...
2018-09-02 17:05:49 429
原创 LeetCode: 898. Bitwise ORs of Subarrays
LeetCode: 898. Bitwise ORs of Subarrays题目描述We have an array A of non-negative integers.For every (contiguous) subarray B = [A[i], A[i+1], ..., A[j]] (with i <= j), we take the bitwise OR of a...
2018-09-02 17:00:15 848 1
原创 LeetCode:897. Increasing Order Search Tree
LeetCode:897. Increasing Order Search Tree解题思路Given a tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no left child and o...
2018-09-02 16:50:30 1206 2
原创 LeetCode: 896. Monotonic Array
LeetCode: 896. Monotonic Array题目描述An array is monotonic if it is either monotone increasing or monotone decreasing. An array A is monotone increasing if for all i <= j, A[i] <= A[j]. An ar...
2018-09-02 16:44:47 670
原创 LeetCode: Weekly Contest 100
LeetCode: Weekly Contest 100题目描述1. LeetCode: 896. Monotonic Array 题解2. LeetCode: 897. Increasing Order Search Tree 题解3. LeetCode: 898. Bitwise ORs of Subarrays 题解4. LeetCode: 899. Orderl...
2018-09-02 16:38:14 200
原创 LeetCode: 192. Word Frequency
LeetCode: 192. Word Frequency题目描述Write a bash script to calculate the frequency of each word in a text file words.txt.For simplicity sake, you may assume:words.txt contains only lowercase char...
2018-09-01 17:50:22 151
跟我一起写 Makefile
2018-07-14
Gnu标准的make文档
2018-07-14
The Vim Tutorial and Reference By Steve Oualline
2017-12-20
Objective-C程序设计 第四版 高清
2017-12-07
The Transport Layer Security (TLS) Protocol V1.1
2017-08-25
The_C++_Programming_Language,Special_Edition.
2016-07-09
关于函数模板的问题,有点点没有看懂。
2016-03-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人