SPR(The Single Responsibility Principle):单一责任原则 OCP(The Open Closed Principle):开放封闭原则 LSP(The Liskov Substitution Principe):里氏替换原则 DIP(The Dependency ...
分类:
其他好文 时间:
2016-07-31 13:11:37
阅读次数:
213
installation: searching.. update db & upgrade.. install dependencies.. remove single pkg.. remove pkg and its deps.. remove pkg without removing the p ...
分类:
系统相关 时间:
2016-07-31 12:53:33
阅读次数:
185
136. Single Number Total Accepted: 140971 Total Submissions: 276396 Difficulty: Medium Given an array of integers, every element appears twice except ...
分类:
其他好文 时间:
2016-07-31 11:20:50
阅读次数:
152
题目描述:给定一个数组,只有一个数字出现两次,判断那个数字思路:
不断取出数据进行异或,最后一个数字,因为相同的数字会抵消
代码:public class Solution {
public int singleNumber(int[] nums) {
int left = nums[0];
for(int i =1; i< nums.length; i++)...
分类:
其他好文 时间:
2016-07-31 00:23:48
阅读次数:
150
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2016-07-30 22:16:30
阅读次数:
116
单一职责原则 SRP(The Single Responsibility Principle):一个类应该只有一个发生变化的原因。这里的变化指职责的变化。 SRP 很好理解,它的要求是 让一个类只做一种类型责任,当这个类需要承当其他类型的责任的时候,就需要分解这个类。听起来很简单,即一个类指做一种事 ...
分类:
其他好文 时间:
2016-07-30 16:39:51
阅读次数:
166
—– BEGIN LICENSE —– Michael Barnes Single User License EA7E-821385 8A353C41 872A0D5C DF9B2950 AFF6F667 C458EA6D 8EA3C286 98D1D650 131A97AB AA919AEC EF ...
分类:
其他好文 时间:
2016-07-30 14:49:51
阅读次数:
98
题目链接https://leetcode.com/problems/single-number-iii/题目原文
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two e...
分类:
编程语言 时间:
2016-07-30 12:14:59
阅读次数:
218
碰到这个是挺不懂的 就是设计一个stack,然后每次调用hasNext()的时候就把最后一个元素展开,循环,直到展开到有single interger为止 ...
分类:
其他好文 时间:
2016-07-30 06:52:37
阅读次数:
125
实验内容时间数据库.表表内容(id)操作内容8点db1.t11,2,3进行全备份9点db1.t14,5(新增加)增加数据10点db1.t1deletedb1删除db111点发现数据库内容有误,要求回复正常的数据8点数据全备份mysqldump-uroot-ppassword--all-databases--single-transaction--master-data=2>/tmp/my..
分类:
数据库 时间:
2016-07-29 19:30:22
阅读次数:
231