Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and ...
分类:
其他好文 时间:
2017-03-14 19:11:17
阅读次数:
185
那些证书相关的玩意儿(SSL,X.509,PEM,DER,CRT,CER,KEY,CSR,P12等) 之前没接触过证书加密的话,对证书相关的这些概念真是感觉挺棘手的,因为一下子来了一大堆新名词,看起来像是另一个领域的东西,而不是我们所熟悉的编程领域的那些东西,起码我个人感觉如此,且很长时间都没怎么搞 ...
分类:
其他好文 时间:
2017-03-14 18:46:50
阅读次数:
207
1、goroutine 在这章中将展示 Go 使用 channel 和 goroutine 开发并行程序的能力。 goroutine 是 Go 并发能力的核心要素。但是,goroutine 到底 是什么? 叫做 goroutine 是因为已有的短语——线程、协程、进程等等——传 递了不准确的含义。 ...
分类:
编程语言 时间:
2017-03-13 23:42:16
阅读次数:
228
1。最近在做项目的时候,遇到这样的一个问题,就是我每做完一件事情,都要更新一下统计表,然而要更新统计表,就要根据主键去统计表里面去查询是否已经有这样的一条记录,如果有那么就更新,如果没有那么就插入一条记录,开始我就是这么干的,结果被老大给否决了,他说可以用on duplicate key updat ...
分类:
其他好文 时间:
2017-03-12 23:41:41
阅读次数:
207
二分查找树特点: (1) 若任意节点的左子树不空,则左子树上所有结点的值均小于它的根结点的值; (2) 任意节点的右子树不空,则右子树上所有结点的值均大于它的根结点的值; (3) 任意节点的左、右子树也分别为二叉查找树。 (4) 没有键值相等的节点(no duplicate nodes)。 前序遍历 ...
分类:
编程语言 时间:
2017-03-10 23:43:13
阅读次数:
223
/* 读者可以补充内容到下面 */ //修改表名alter table qq_user rename user;//修改字段数据类型alter table user modify qq_id int;//修改字段名alter table user change qq_id Id int;//修改字段 ...
分类:
数据库 时间:
2017-03-10 12:34:17
阅读次数:
354
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or ...
分类:
编程语言 时间:
2017-03-09 22:36:45
阅读次数:
219
class Solution {public: /** * @param A: a list of integers * @return : return an integer */ int removeDuplicates(vector<int> &nums) { // write your co ...
分类:
编程语言 时间:
2017-03-09 15:26:18
阅读次数:
174
原题: https://leetcode.com/problems/contains-duplicate-iii/?tab=Description Given an array of integers, find out whether there are two distinct indices ...
分类:
其他好文 时间:
2017-03-08 19:26:35
阅读次数:
167
class Solution {public: /** * @param A: a list of integers * @return : return an integer */ int removeDuplicates(vector<int> &nums) { // write your co ...
分类:
编程语言 时间:
2017-03-08 18:49:00
阅读次数:
133