1. Question: 167. Two Sum II - Input array is sorted url : https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ Given an array of integers ...
分类:
其他好文 时间:
2018-11-20 00:02:17
阅读次数:
189
import selectorsimport socketsel = selectors.DefaultSelector()def accept(sock, mask): conn, addr = sock.accept() # Should be ready print('accepted', c ...
分类:
其他好文 时间:
2018-11-19 21:34:47
阅读次数:
181
因为:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3 ...
分类:
其他好文 时间:
2018-11-18 19:37:42
阅读次数:
137
Design a HashMap without using any built-in hash table libraries. To be specific, your design should include these functions: put(key, value) : Insert ...
分类:
其他好文 时间:
2018-11-17 10:31:39
阅读次数:
293
代码部署之前,进行一定的单元测试是十分必要的,这样能够有效并且持续保证代码质量。而实践表明,高质量的单元测试还可以帮助我们完善自己的代码。这篇博客将通过一些简单的测试案例,介绍几款Node.js测试模块: Mocha和Should,SuperTest。本文侧重于解释原理,各个模块的详细使用案例以后单独再聊。
分类:
Web程序 时间:
2018-11-16 20:48:03
阅读次数:
284
Design a HashSet without using any built-in hash table libraries. To be specific, your design should include these functions: add(value): Insert a val ...
分类:
其他好文 时间:
2018-11-15 23:40:50
阅读次数:
349
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr ...
分类:
其他好文 时间:
2018-11-15 15:36:33
阅读次数:
203
题目如下: You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier ...
分类:
其他好文 时间:
2018-11-14 15:38:46
阅读次数:
414
ros之调用其他rospackage Every package should only implement just one funtion, add the exported interfaces to libraries for exported usages. It is worth doi ...
分类:
其他好文 时间:
2018-11-13 02:55:53
阅读次数:
180
Constructing Roads There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to e ...
分类:
其他好文 时间:
2018-11-13 02:29:40
阅读次数:
193