码迷,mamicode.com
首页 > 2014年06月04日 > 全部分享
LeetCode Simplify Path
class Solution {public: string simplifyPath(string path) { int len = path.length(); if (len spath; int p = -1, q = 0; ...
分类:其他好文   时间:2014-06-04 20:15:49    阅读次数:197
InstallShield打包问题
InstallShield打包
分类:其他好文   时间:2014-06-04 20:22:27    阅读次数:393
Valid Sudoku
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:其他好文   时间:2014-06-04 20:21:51    阅读次数:246
URAL 1073 Square Country(DP)
题目链接题意 :这个人要投资地,每块地都是正方形并且边长都是整数,他希望他要买的地尽量的少碎块。每买一块地要付的钱是边长的平方,而且会得到一个一份证书,给你一个钱数,让你求出能得到的证书个数。思路 :其实就是求x12+x22+……+Xn2中的最小的n。 1 //1073 2 #include 3 ....
分类:其他好文   时间:2014-06-04 20:21:14    阅读次数:292
android:ActionBarActivity findViewById的返回为NULL
android
分类:移动开发   时间:2014-06-04 20:20:30    阅读次数:218
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-06-04 20:19:49    阅读次数:282
timer 在滚动的时候停止了的解决办法
方法一:-(void) viewDidLoad{[self performSelectorInBackground:@selector(call1) withObject:nil];}-(void) call1{timer1 = [NSTimer scheduledTimerWithTimeInte...
分类:其他好文   时间:2014-06-04 20:23:05    阅读次数:228
性能测试相关脚本
1,restime统计响应时间#!/bin/bash#统计日志响应时间用if [ $# -lt 1 ]; then echo "at least have one param; " echo "ex: restime a.log b.log *.log" exit 1fi. lgq...
分类:其他好文   时间:2014-06-04 20:23:43    阅读次数:291
C++ stl vector介绍
转自:STL vector用法介绍介绍这篇文章的目的是为了介绍std::vector,如何恰当地使用它们的成员函数等操作。本文中还讨论了条件函数和函数指针在迭代算法中使用,如在remove_if()和for_each()中的使用。通过阅读这篇文章读者应该能够有效地使用vector容器,而且应该不会再...
分类:编程语言   时间:2014-06-04 20:25:52    阅读次数:444
Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?classSolution{publi...
分类:其他好文   时间:2014-06-04 20:25:09    阅读次数:227
CAS连接微软活动目录的配置方法
原文地址:http://blog.csdn.net/baozhengw/article/details/3857669在微软活动目录中建立一个用户节点,帐号为wangzhenyu,cn为zhenyu wang,并设置登陆口令,这时候在cas中用wangzhenyu的帐号登陆失败,解决办法是:安装ap...
分类:其他好文   时间:2014-06-04 20:24:28    阅读次数:228
Process manufacturing和Discrete manufacturing的区别
Process manufacturing(Process industry)加工制造,或者加工工业。其一个重要特征是,原材料被加工成成品后,我们再也无法将它恢复成原料,比如,苹果罐头,我们再没法把它恢复成苹果。Discrete manufacturing组装制造,主要是一些把很多零配件组合起来,让...
分类:其他好文   时间:2014-06-04 20:26:37    阅读次数:374
[ALM]一步一步搭建MS ALM环境 - 安装TFS + SQL SERVER
描述: 安装SQL SERVER 2012,安装TFS 2013,配置TFS,挽起袖子,准备干活儿 步骤: 1,打开Hyper-V Manager,参考[Hyper-V]使用操作系统模板创建新的虚拟机,先完成操作系统的安装,注意以下修改以下信息: 磁盘名称:tfs.vhdx 磁盘存储位置:x:\VM...
分类:数据库   时间:2014-06-04 20:27:17    阅读次数:414
Fire Net HDU 1045
简单深搜,可以完全暴力,不会超时的。#include#include#includeusing namespace std;#define MAX(a,b) (a>b?a:b) char maze[10][10];int n, maxn;void DFS(int step,int count);in...
分类:Web程序   时间:2014-06-04 20:43:04    阅读次数:270
Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-06-04 20:44:19    阅读次数:216
HttpWebRequest 模拟登录响应点击事件(开源自己用的HttpHelper类)
平时也经常采集网站数据,也做模拟登录,但一般都是html控件POST到页面登录;还没有遇到用户服务器控件button按钮点击事件登录的,今天像往常一样POST传递参数,但怎么都能登录不了;最后发现还有两个参数需要传,__EVENTVALIDATION和__VIEWSTATE 在传的过程中需要对...
分类:Web程序   时间:2014-06-04 20:43:42    阅读次数:376
@selector
@selector 是什么?1一种类型 SEL2代表你要发送的消息(方法), 跟字符串有点像, 也可以互转.:NSSelectorFromString() / NSSelectorFromString()3可以理解为类似函数指针的东西--是能让Objective-C动态调用方法的玩意.--是 ob....
分类:其他好文   时间:2014-06-04 20:46:16    阅读次数:217
682条   上一页 1 ... 34 35 36 37 38 39 40 41 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!