这个程序也是在解决“invalid operator<”的问题,问题的根因是当两个元素相等时必须返回false才行!!(见这里,和这里) return false; //Should return false if both the vaules are same 这个问题困扰了我一下午,当然下午还 ...
分类:
其他好文 时间:
2017-03-04 21:07:38
阅读次数:
122
好久没来园子了,转眼2017已经到3月份了,前段时间一直忙没时间写博客(其实是自己懒),感觉内心好惭愧。昨天临下班前,技术老大突然对我说要改下表结构,问我能不能实现将一个表的字段值复制到另外一个表的某个字段中去,感觉这好拗口,其实就是表间字段值复制。于是,昨晚加了会儿班百度了下然后自己在本地测试了下 ...
分类:
数据库 时间:
2017-03-04 14:01:42
阅读次数:
195
Slim Span Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 7933 Accepted: 4227 Description Given an undirected weighted graph G, you should ...
分类:
其他好文 时间:
2017-03-03 21:15:54
阅读次数:
329
public int findLast (int[] x, int y) { //Effects: If x==null throw NullPointerException // else return the index of the last element // in x that equa ...
分类:
其他好文 时间:
2017-03-03 01:04:42
阅读次数:
162
#coding=utf-8print "Let's practice everything."print ' You\'d need to know\'bout escapes with \\ that do \n newlines and \t tabs.' poem = """\tThe lov ...
分类:
编程语言 时间:
2017-03-02 19:49:19
阅读次数:
490
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv ...
分类:
其他好文 时间:
2017-03-01 23:23:29
阅读次数:
280
Sightseeing Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 9127 Accepted: 3206 Description Tour operator Your Personal Holiday organises g ...
分类:
其他好文 时间:
2017-03-01 23:14:49
阅读次数:
245
之前面试碰到的一个题,也算是面试的常见题吧,如下: 说出两个h2的颜色 这个题目考察的就是css权重,参考大漠老师的译文:http://www.w3cplus.com/css/css-specificity-things-you-should-know.html 权重计算公式:从0开始,一个行内样式 ...
分类:
Web程序 时间:
2017-02-27 01:09:31
阅读次数:
303
前言
准备工作
开始混淆
Android studio混淆配置前言在Android开发过程中,为了防止自己的劳动成功被窃取或者受到不发分子的篡改,往往在发布的时候会对代码做混淆,但是混淆只混淆了代码,...
分类:
微信 时间:
2017-02-26 19:39:10
阅读次数:
590
给出的题目如下: 我的解答如下: For program 1:1. where i > 0 is the fault , it should be changed to i>= 0 to avoid x is just one element situation. 2.x[] ={} or x[]= ...
分类:
其他好文 时间:
2017-02-26 12:04:43
阅读次数:
281