Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-07-22 00:28:38
阅读次数:
209
找到目录:C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i将sqlce.wce5.armv4i.CAB 拷贝到 WinCE 上执行安装。文件名意义:sqlce.平台(wce5 ...
分类:
数据库 时间:
2014-07-22 00:15:35
阅读次数:
309
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2014-07-22 00:13:35
阅读次数:
154
Write a function to find the longest common prefix string amongst an array of strings.题解:以strs[0]为模板,每次挨个查看是否所有的串里面是否第i位上都和strs[0]一样,如果都一样,把i位置上的字符放到a...
分类:
其他好文 时间:
2014-07-21 23:31:00
阅读次数:
267
ORM === 校验: 1.ORM内部为强制校验 2.ORM外部校验 (保存,更新,插入时校验) 过滤: 校验不在包含过滤功能 参数及方法变更: 1.find不在带参数 2.save拆分为create跟update,并增加校验类参数,规则为覆盖叠加 3.fact...
分类:
其他好文 时间:
2014-07-21 23:30:41
阅读次数:
342
Find the nondecreasing subsequences
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1393 Accepted Submission(s): 494
Problem Des...
分类:
其他好文 时间:
2014-07-21 23:29:42
阅读次数:
259
题意:给你一个n m,n代表有多少只昆虫,m代表2只给定的昆虫可以交配
要你来判断是否出现了同性的昆虫相交的情况
思路:并查集的一个小的应用。运用类别转移来做,详细请看代码,这个代码网上叫类别转移啊,发现新大陆了
#include
#include
int f[2005],link[2005];
int find(int x)
{
if(x!=f[x])
f[x]=f...
分类:
其他好文 时间:
2014-07-21 23:27:51
阅读次数:
222
##看看mongodb的基本操作###mongodb的基本使用包括几个方面增、删、查、改是重点CRUDC:insert()R:find()U:update()D:remove()###增加数据[root@blog~]#hostname
blog.unix178.com
[root@blog~]#mongo
MongoDBshellversion:2.4.6
connectingto:test
>showdbs
admin0.203125GB..
分类:
数据库 时间:
2014-07-21 19:48:22
阅读次数:
433
方便统计各种平台项目的代码量,主要用到了find指令来进行处理的详情点击打开链接。
源代码如下:
# -*- coding: utf-8 -*-
'''
Created on Jul 18, 2014
@author: Jayhomzhou
@note: 计算注释以及代码的总行数(即代码量)
'''
import subprocess
def countCodes(codePa...
分类:
编程语言 时间:
2014-07-21 16:38:02
阅读次数:
352
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist...
分类:
其他好文 时间:
2014-07-21 14:18:36
阅读次数:
235