- 博客(5)
- 资源 (6)
- 收藏
- 关注
原创 LeetCode刷题——Array篇(Max Chunks To Make Sorted)
Given an array arr that is a permutation of [0, 1, …, arr.length - 1], we split the array into some number of “chunks” (partitions), and individually sort each chunk. After concatenating them, the re...
2018-05-17 15:16:48 169
原创 Linux搭建DNS服务器记录
1、安装后named -v查看版本号,方便查找相应教程2、编辑/etc/named.conf//// named.conf//// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS// server as a caching only nameserver (as a localh...
2018-05-15 11:34:55 1278
原创 LeetCode刷题——Array篇(Array Nesting)
A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[A[i]]], … } subjected to the rule below.Suppose ...
2018-05-10 15:57:46 174
原创 LeetCode刷题——Array篇(Product of Array Except Self)
Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].Example:Input: [1,2,3,4] Output: ...
2018-05-10 11:42:29 148
原创 LeetCode刷题——Array篇(Find All Duplicates in an Array)
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements that appear twice in this array.Could you do it without extra ...
2018-05-10 11:37:44 164
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人