It's hard times now. Today Petya needs to score 100 points on Informatics exam. The tasks seem easy to Petya, but he thinks he lacks time to finish th ...
分类:
其他好文 时间:
2017-07-25 19:52:18
阅读次数:
213
代码: class Solution { public: /** * Determine whether s3 is formed by interleaving of s1 and s2. * @param s1, s2, s3: As description. * @return: true o ...
分类:
其他好文 时间:
2017-07-25 19:29:43
阅读次数:
123
线程的释放方式有两种:一种是线程在运行完成后自动释放,一种是手动释放。 无论是那种释放,都应该在线程停止后进行释放。 然而线程的停止也有两种情况:一种是不需要设置标志位,直接完成;一种是由于execute方法中做了循环,需要设置标志位才能停止。 如果线程已经停止并且自动释放,再去手动停止,就会报错。 ...
分类:
编程语言 时间:
2017-07-24 20:21:32
阅读次数:
206
角色权限管理:role basic access control,简称rbac。 数据库表设计 from django.db import models class User(models.Model): """ 用户表 """ username = models.CharField(verbose ...
分类:
其他好文 时间:
2017-07-24 16:28:54
阅读次数:
124
终端是一个很重要的外设,用过终端设备的人都知道如果设备类型不对就会有乱字符,也可用仿真终端软件如netterm试验一下,Linux的终端信息放在 /usr/share/terminfo下,在这个目录的子目录v下就有许多的如vt100,vt102,vt200等,你看一下就知道了。用例:如在ssh终端上 ...
分类:
系统相关 时间:
2017-07-24 16:18:43
阅读次数:
250
java之Secure communication terminology There are several terms that are used when working with secure communications. These include the following: Auth ...
分类:
编程语言 时间:
2017-07-24 14:34:27
阅读次数:
176
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F ...
分类:
其他好文 时间:
2017-07-24 13:10:41
阅读次数:
106
克隆问题常常用hashMap, 关键在于如何从一个点设置遍历, 此处用list, 不断遍历, 不断list. get(start++) ,再通过neighbour来获取新的node. ...
分类:
其他好文 时间:
2017-07-23 21:04:57
阅读次数:
123
Putty 定义: PuTTY is a free and open-source terminal emulator, serial console and network file transfer application. 解释: ·一个文件传输应用 (既然可以传输文件,自然可以通信和操作) ...
分类:
其他好文 时间:
2017-07-23 20:59:19
阅读次数:
224
Description Byteotian Interstellar Union (BIU) has recently discovered a new planet in a nearby galaxy. The planet is unsuitable for colonisation due ...
分类:
编程语言 时间:
2017-07-23 16:47:20
阅读次数:
242