#include int main(int argc, const char * argv[]){ // insert code here... //计算十进制42转换为二进制、八进制、十六进制分别对应的值 int number1=42; /* int number1=42; for (number...
分类:
编程语言 时间:
2014-07-16 23:20:11
阅读次数:
394
/// /// 创建验证码 /// /// private string GenerateCheckCode() { int number; char code; string checkCode = String.Empty; ...
分类:
Web程序 时间:
2014-07-16 23:12:18
阅读次数:
205
git tag is used to create labels, usually for version numbers. Format: git tag Example: git tag v0.1 HEAD is to create a version number v0.1 on curren...
分类:
其他好文 时间:
2014-07-10 14:29:01
阅读次数:
213
1.在定义函数时:如果有参数,则参数可有类型但是不加长度。2.在执行函数:var/variablevar_namevar_type(如果数据类型是number则没有长度,如果数据类型是varchar2,则可以写长度) call(此处不能用exec)函数名(参数)into:var_n...
分类:
其他好文 时间:
2014-07-10 13:00:04
阅读次数:
216
关于苹果证书申请的问题 一直困扰着我 因为老板要我申请个人版公司账号 之前我没申请过 所以…… 后来我申请成功了 在这里就跟大家分享一下吧
5月16号开始提交邓白氏编码申请的 一直到5月30号才算是提交成功 因为有邮件通知你什么时候提交成功,它会告诉你Thank you for submitting your D-U-N-S Number request / update to D&B. I...
分类:
移动开发 时间:
2014-06-28 08:47:38
阅读次数:
391
题目:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:
其他好文 时间:
2014-06-28 08:17:11
阅读次数:
305
Problem :It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order.Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and ...
分类:
其他好文 时间:
2014-06-28 08:13:17
阅读次数:
249
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-06-27 23:13:24
阅读次数:
218
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the tota...
分类:
其他好文 时间:
2014-06-27 09:53:29
阅读次数:
208
题目链接:http://acdream.info/problem?pid=1108
题意:n个数的数列,m次查询某个区间出现次数第k多的数出现的次数。n,m
解法:这个因为是离线的所以可以先统一处理,然后再输出。可以维护一个left和right指针,pre,pre[i]表示此时区间内出现次数大于等于i的数的种类。为了减少复杂度,关键是left和right的移动方式,即查询区间如何排...
分类:
其他好文 时间:
2014-06-27 09:38:07
阅读次数:
255