1、问题
There are two int variables: a and b, don't use "if"、"? :"、"switch" or other judgement statement, find out the biggest one of the two numbers.
(有两个变量a和b,不用“if”、“? :”、“switch”或其他判断语句,找出两个数中比较大...
分类:
其他好文 时间:
2014-09-03 11:20:16
阅读次数:
178
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-09-03 11:05:46
阅读次数:
168
A patch captures the changes of two different files (oldfile and newfile). Given the oldfile and the patch, one can use the patch program to create th...
分类:
其他好文 时间:
2014-09-03 03:52:15
阅读次数:
252
题意:给空间内两根圆柱,求轴线垂直相交时公共部分的体积。暴力积分即可。ID:Date'n'Time:Name:Task:.Ext:Status:Time:Memory:158937402.09.14 19:37HuZhifeng217.CPPAccepted499 ms46 kb精度卡爆,0.001...
分类:
其他好文 时间:
2014-09-03 01:26:15
阅读次数:
267
问题描述
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 digit. Add
the two numbers...
分类:
其他好文 时间:
2014-09-02 19:57:55
阅读次数:
166
杭电的这个出题人真闷骚啊....冠以 与女孩约会的名义 出了这么个这题 不难的 但是一定要读懂题目意思Two solutions are different if x0 != x1 or y0 != y1.这就告诉我们 1+3=4 与 3+1=4 这是2种方法但是如果那个古怪的女孩给了你1 1 1 ...
分类:
其他好文 时间:
2014-09-02 14:03:24
阅读次数:
194
Median-求中位数,文件中数字升序排列://Median-求中位数,文件中数字升序排列
#include<iostream>
#include<fstream>
#include<cstdlib>
intmain()
{
usingnamespacestd;
ifstreamfin;
ofstreamfout;
doublemedian,tem1,tem2;
intcount=1;
fin.op..
分类:
其他好文 时间:
2014-09-02 12:34:15
阅读次数:
196
Scramble StringGiven a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible...
分类:
其他好文 时间:
2014-09-02 00:17:33
阅读次数:
260
LeetCode: Scramble StringGiven a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is o...
分类:
其他好文 时间:
2014-09-01 22:42:34
阅读次数:
308
LeetCode: Gray CodeThe gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n represen...
分类:
其他好文 时间:
2014-09-01 22:31:13
阅读次数:
289