由买买提看人间百态

topics

全部话题 - 话题: beginning
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
f**d
发帖数: 768
1
来自主题: Neuroscience版 - eBook: From computer to brain
这是一本计算神经科学的优秀著作,全文拷贝这里(图和公式缺),有兴趣的同学可以
阅读
如需要,我可以分享PDF文件(--仅供个人学习,无商业用途)
From Computer to Brain
William W. Lytton
From Computer to Brain
Foundations of Computational Neuroscience
Springer
William W. Lytton, M.D.
Associate Professor, State University of New York, Downstato, Brooklyn, NY
Visiting Associate Professor, University of Wisconsin, Madison
Visiting Associate Professor, Polytechnic University, Brooklyn, NY
Staff Neurologist., Kings County Hospital, Brooklyn, NY
In From Computer to Brain: ... 阅读全帖
k****u
发帖数: 1686
2
来自主题: Fengshui版 - 六爻入门——基础篇
声明
1.此资料中内容是六爻占卜术的最基础的知识;
2.我能整理此资料,并不代表我的技术高,这只是个人机缘的关系。
3.资料中的内容、观点与论坛无关。
整理此资料的目的
1.为了让不懂六爻占卜的朋友对其有所了解;
2.给想学习六爻占卜的易友一个入门的基础资料;
3.为了大家相互交流与个人卦技的提高。
资料内容简述如下:
第一部分 为占卜术基础内容,此中内容为所有占卜方法都使用的基础知识;
第二部分 为六爻占卜术的基础内容,其为六爻占卜方法专用的基础知识。
第三部分 为六爻占卜中一些常见的基础问题的个人浅见。
学习方法:
学习占卜不是一天两天的事儿,我们以六爻为例,你学会了起卦的方法,这并不代
表你就会解卦了,有的人学习了十几年,几十年也没有看到门,可是有的人学了几个月
甚至几天就可以分析简单的卦了,有的人不服气,有的人不明白,其实这其中除了个人
的机缘与命运不同以外,还有个学习方法的问题。(以下内容为一家之言,仅供参考)
1、学习六爻占卜术,首先要有一个稳定的心态,因为时下派系繁多,又都有各自
的一套技法,而我们这些新人也没有办法去分析那一家对那一家错,所以我建议... 阅读全帖
g***l
发帖数: 18555
3
我找到了一个SCRIPT LOGIN的
USE master
GO
IF OBJECT_ID ('sp_hexadecimal') IS NOT NULL
DROP PROCEDURE sp_hexadecimal
GO
CREATE PROCEDURE sp_hexadecimal
@binvalue varbinary(256),
@hexvalue varchar (514) OUTPUT
AS
DECLARE @charvalue varchar (514)
DECLARE @i int
DECLARE @length int
DECLARE @hexstring char(16)
SELECT @charvalue = '0x'
SELECT @i = 1
SELECT @length = DATALENGTH (@binvalue)
SELECT @hexstring = '0123456789ABCDEF'
WHILE (@i <= @length)
BEGIN
DECLARE @tempint int
DECLARE @firstint in... 阅读全帖
r*******g
发帖数: 1335
4
来自主题: JobHunting版 - 问个amazon面试题
我比较了你和doubleplay的算法,然后自己用二分法写了个,二分法的效率是O(nlogn)
我现在还没看懂doubleplay的算法,你的算法更容易理解,每次判断是否是loop的开头
,doubleplay那个至今理解不了。
但是我发觉你们的结果都没有二分法快啊,我用的N=10000000,你能不能测试下,不知
道结果是不是和我类似,难道是c++的问题?
感觉你们这个也不是O(N),shyx那个是O(N),但是很难想到什么基于素数的算法。
void Swap(int * array,int begin,int end){
for (int i=0;i<(end-begin+1)/2;i++){
int tmp=array[begin+i];
array[begin+i]=array[end-i];
array[end-i]=tmp;
}
}
void Convert(int * array,int begin,int total){
int N=total/2;
if(N==1)
... 阅读全帖
o**m
发帖数: 828
5
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自竞选宣言:http://uflchina.org/news/96/
韩晓彤(Han, Xiaotong)个人竞选网页:http://dotforpresident.blogspot.com/
于龙 (Yu,Long)个人竞选网页:http://share.renren.com/share/240730380/5853341850?ref=minifeed&sfet... 阅读全帖
b*******e
发帖数: 6920
6
Mardi Gras! Galveston Parade Schedule
Texas’ Largest Mardi Gras Celebration Comes With Parades, Family Gras and
More!
[January 10, 2013] - The 102nd celebration of Mardi Gras! Galveston will
take place February 1-12, 2013 with 24 parades, several of which are new.
The majority of parades will be held in Galveston's downtown Mardi Gras
entertainment district while others will travel along the beachfront on
Seawall Boulevard.
Friday, February 1, 2013
Party Gras! Parade, 5 p.m. (Entertainment Distr... 阅读全帖
K**O
发帖数: 2172
7
【 以下文字转载自 Florida 讨论区 】
发信人: odom (odom), 信区: Florida
标 题: UF学生会主席竞选风云录(持续更新,现场直播)
关键字: facss,maillist,主席
发信站: BBS 未名空间站 (Sun Apr 10 19:22:23 2011, 美东)
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自竞选宣言:http://uflchina.org/news/96/
韩晓彤(... 阅读全帖
c*********7
发帖数: 7607
8
【 以下文字转载自 Florida 讨论区 】
发信人: odom (odom), 信区: Florida
标 题: UF学生会主席竞选风云录(持续更新,现场直播)
关键字: facss,maillist,主席
发信站: BBS 未名空间站 (Sun Apr 10 19:22:23 2011, 美东)
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自竞选宣言:http://uflchina.org/news/96/
韩晓彤(... 阅读全帖
o**m
发帖数: 828
9
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自竞选宣言:http://uflchina.org/news/96/
韩晓彤(Han, Xiaotong)个人竞选网页:http://dotforpresident.blogspot.com/
于龙 (Yu,Long)个人竞选网页:http://share.renren.com/share/240730380/5853341850?ref=minifeed&sfet... 阅读全帖
c****6
发帖数: 1550
10
☆─────────────────────────────────────☆
odom (odom) 于 h 提到:
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自竞选宣言:http://uflchina.org/news/96/
韩晓彤(Han, Xiaotong)个人竞选网页:http://dotforpresident.blogspot.com/
于龙 (Yu,Long)个人竞选网页:htt... 阅读全帖
G******s
发帖数: 1530
11
【 以下文字转载自 Florida 讨论区 】
发信人: odom (odom), 信区: Florida
标 题: zz facss主席竞选和maillist事件全记录(持续更新,现场直播)
关键字: facss,maillist,主席
发信站: BBS 未名空间站 (Sun Apr 10 19:22:23 2011, 美东)
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自竞选宣言:http://uflchina.org/news/96... 阅读全帖
l****5
发帖数: 2968
12
【 以下文字转载自 Florida 讨论区 】
发信人: odom (odom), 信区: Florida
标 题: UF学生会主席竞选风云录(持续更新,现场直播)
关键字: facss,maillist,主席
发信站: BBS 未名空间站 (Sun Apr 10 19:22:23 2011, 美东)
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自竞选宣言:http://uflchina.org/news/96/
韩晓彤(... 阅读全帖
K**O
发帖数: 2172
13
【 以下文字转载自 Florida 讨论区 】
发信人: odom (odom), 信区: Florida
标 题: UF学生会主席竞选风云录(持续更新,现场直播)
关键字: facss,maillist,主席
发信站: BBS 未名空间站 (Sun Apr 10 19:22:23 2011, 美东)
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自竞选宣言:http://uflchina.org/news/96/
韩晓彤(... 阅读全帖
h*********u
发帖数: 10868
14
我虽然没有投票权,但仍然为我的好朋友,篮球版的版主, 绰号 大熊猫 的于龙同学 摇旗呐喊。
【 以下文字转载自 Florida 讨论区 】
发信人: odom (odom), 信区: Florida
标 题: UF学生会主席竞选风云录(持续更新,现场直播)
关键字: facss,maillist,主席
发信站: BBS 未名空间站 (Sun Apr 10 19:22:23 2011, 美东)
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自... 阅读全帖
t*******i
发帖数: 742
15
【 以下文字转载自 Florida 讨论区 】
发信人: odom (odom), 信区: Florida
标 题: UF学生会主席竞选风云录(持续更新,现场直播)
关键字: facss,maillist,主席
发信站: BBS 未名空间站 (Sun Apr 10 19:22:23 2011, 美东)
zz from renren
http://blog.renren.com/GetEntry.do?id=721173395&owner=38623977
在此我谨以个人名义记录整个facss主席竞选和maillist事件的起因经过结果。我不遮
掩我对于龙的支持,但会尽量保持中立。以下所有信息都是公开途径可以获得。
首先是两位选举人的背景:
http://uflchina.org/news/96/
韩晓彤,女,本科三年级,优势在于具有长期facss工作背景。
于龙,男,第五年博士生。
以下是竞选公告
离新一届主席选举开始还有不到48小时,现再次公示两位候选人信息。
详细资料及各自竞选宣言:http://uflchina.org/news/96/
韩晓彤(... 阅读全帖
S*********g
发帖数: 24893
16
在佛州无影脚熊猫马龙竞选大胜之夜,我哭了。
hsh嘱我一定要写点什么
激动的泪水模糊了我的眼
我只有一句话
龙哥有肉吃,咱们也能分点儿屎
(选举结果,马龙哥177:173大胜,马龙哥还囊括了20张黑人选票。)
熊猫马龙 pandamalone 是中科大少年班的,科大2000-2004期间最著名的衙内。
马龙是辽宁辽阳人,父亲是当地一霸,黑白通吃的那种。pandamalone还是学生的时候
在FL就买了2套房子2辆豪车。马龙有一句经常说的豪言,就是
————----- 我爸爸有司机,你有么? -----------
马龙在科大期间热爱篮球,在球场上的火气非常大,马龙在球场上的名言:以后不要让
我再看见到你,今后见你一次,打你一次。记得有一次,在科星杯篮球赛(科大院系之
间的比赛),马龙作为比赛的裁判,因为不满一名观众对他判罚的抱怨,当着几百名比
赛观众,当场就把那位为本系加油的观众给踹到了,用的是马龙最擅长的连环腿(就是
马龙以前ID picture 的那个狗撒尿的姿势),以上是本人亲眼所见。给本人留下了阴
影和无限敬仰。
pandamalone来美后经常飞来飞... 阅读全帖
h***e
发帖数: 20195
17
【 以下文字转载自 Military 讨论区 】
发信人: StephenKing (88), 信区: Military
标 题: 群众最喜爱的小将战无不胜攻无不可兽欲天齐
发信站: BBS 未名空间站 (Wed Apr 13 10:39:44 2011, 美东)
在佛州无影脚熊猫马龙竞选大胜之夜,我哭了。
hsh嘱我一定要写点什么
激动的泪水模糊了我的眼
我只有一句话
龙哥有肉吃,咱们也能分点儿屎
(选举结果,马龙哥177:173大胜,马龙哥还囊括了20张黑人选票。)
熊猫马龙 pandamalone 是中科大少年班的,科大2000-2004期间最著名的衙内。
马龙是辽宁辽阳人,父亲是当地一霸,黑白通吃的那种。pandamalone还是学生的时候
在FL就买了2套房子2辆豪车。马龙有一句经常说的豪言,就是
————----- 我爸爸有司机,你有么? -----------
马龙在科大期间热爱篮球,在球场上的火气非常大,马龙在球场上的名言:以后不要让
我再看见到你,今后见你一次,打你一次。记得有一次,在科星杯篮球赛(科大院系之
间的比赛),马龙作为比赛的裁判... 阅读全帖
j****a
发帖数: 55
18
来自主题: JobHunting版 - 也来问个面试题
楼上的看起来比较elegant,我随笔写的,不知道对错啊...
// assume A picks first, return difference between what A picks and what B
picks.
int pickNumber(int* array, int begin, int end, HashTable* hashTable) {
int result;
if (getFromHash(hashTable, begin, end, &result)) {
return result;
}
if (end == begin) {
putToHash(hashTable, begin, end, -array[begin]);
return -array[begin];
}
int diff1 = pickNumber(array, begin + 1, end);
int diff2 = pickNumber(array, begin, end +... 阅读全帖
s*******e
发帖数: 93
19
来自主题: JobHunting版 - 这题谁知道答案?
我也写了一个code. 有测试ihasleetcode的所有test case答案都一样。
如果没有想错的话应该是O(n)
因为begin和end两个值都最多扫过每一个字母一次
假设都是ascii字符
typedef struct range
{
int begin;
int end;
} Range;
Range shortestSubstring(const char* str, int strLen, const char* characters,
int charCount)
{
int* needToFind=new int[256];
int* hasFound=new int[256];

for(int i=0;i<256;i++)
{
needToFind[i]=0;
hasFound[i]=0;
}

for(int i=0;i {
int index=(int)characters[i];
... 阅读全帖
j********x
发帖数: 2330
20
preorder重建很简单:
tree_node* binary_tree::reconstruct(std::vector& tree, size_
t begin) {
if(begin >= tree.size()) { return NULL; }
tree_node *root = new tree_node(tree[begin].node_->key_,
tree[begin].node_->val_);
//root->key_ = tree[begin].node_->key_;
//root->val_ = tree[begin].node_->val_;
std::cout<<"begin: "< <<" size: "< <<" key: "<key_
<<" val: "<val_
<阅读全帖
b*******n
发帖数: 847
21
谢谢!
经过你提醒我改了我的code,这回过了,发现用array的index来referecen简单多了
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector > levelOrderBottom(TreeNode *root) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
vector > traversal;
vector path;
vector阅读全帖
wh
发帖数: 141625
22
来自主题: Connecticut版 - 你们在下雨吗?准备看焰火吗?
我们这里昨晚雷闪电鸣,今天倒没有雷电,不过一直下雨。
贴个康州各地的国庆焰火表演,很多地方因为下雨改到周五或周六了。Quassy
Amusement Park的3D焰火表演改到周日晚上十点十五分。
http://connecticutlifestyles.com/fireworks-displays-4th-july-pa
July 3, 2014:
Talcott Mountain Simsbury Concert and Fireworks
The Performing Arts Center at Simsbury Meadows
Concert starts at 7:30pm; Fireworks after the concert
Rain Date: Friday, July 4
Stamford Fireworks
(Rain date of July 5)
6:00 p.m. entertainment begins
9:00 p.m. fireworks display
Off Cummings Park
Derby / Shelton Fireworks
(Rai... 阅读全帖
S*********g
发帖数: 24893
23
在佛州无影脚熊猫马龙竞选大胜之夜,我哭了。
hsh嘱我一定要写点什么
激动的泪水模糊了我的眼
我只有一句话
龙哥有肉吃,咱们也能分点儿屎
(选举结果,马龙哥177:173大胜,马龙哥还囊括了20张黑人选票。)
熊猫马龙 pandamalone 是中科大少年班的,科大2000-2004期间最著名的衙内。
马龙是辽宁辽阳人,父亲是当地一霸,黑白通吃的那种。pandamalone还是学生的时候
在FL就买了2套房子2辆豪车。马龙有一句经常说的豪言,就是
————----- 我爸爸有司机,你有么? -----------
马龙在科大期间热爱篮球,在球场上的火气非常大,马龙在球场上的名言:以后不要让
我再看见到你,今后见你一次,打你一次。记得有一次,在科星杯篮球赛(科大院系之
间的比赛),马龙作为比赛的裁判,因为不满一名观众对他判罚的抱怨,当着几百名比
赛观众,当场就把那位为本系加油的观众给踹到了,用的是马龙最擅长的连环腿(就是
马龙以前ID picture 的那个狗撒尿的姿势),以上是本人亲眼所见。给本人留下了阴
影和无限敬仰。
pandamalone来美后经常飞来飞... 阅读全帖
h***e
发帖数: 20195
24
【 以下文字转载自 Military 讨论区 】
发信人: StephenKing (88), 信区: Military
标 题: 群众最喜爱的小将战无不胜攻无不可兽欲天齐
发信站: BBS 未名空间站 (Wed Apr 13 10:39:44 2011, 美东)
在佛州无影脚熊猫马龙竞选大胜之夜,我哭了。
hsh嘱我一定要写点什么
激动的泪水模糊了我的眼
我只有一句话
龙哥有肉吃,咱们也能分点儿屎
(选举结果,马龙哥177:173大胜,马龙哥还囊括了20张黑人选票。)
熊猫马龙 pandamalone 是中科大少年班的,科大2000-2004期间最著名的衙内。
马龙是辽宁辽阳人,父亲是当地一霸,黑白通吃的那种。pandamalone还是学生的时候
在FL就买了2套房子2辆豪车。马龙有一句经常说的豪言,就是
————----- 我爸爸有司机,你有么? -----------
马龙在科大期间热爱篮球,在球场上的火气非常大,马龙在球场上的名言:以后不要让
我再看见到你,今后见你一次,打你一次。记得有一次,在科星杯篮球赛(科大院系之
间的比赛),马龙作为比赛的裁判... 阅读全帖
c****6
发帖数: 1550
25
☆─────────────────────────────────────☆
StephenKing (88) 于 (Wed Apr 13 10:38:15 2011, 美东) 提到:
在佛州无影脚熊猫马龙竞选大胜之夜,我哭了。
hsh嘱我一定要写点什么
激动的泪水模糊了我的眼
我只有一句话
龙哥有肉吃,咱们也能分点儿屎
(选举结果,马龙哥177:173大胜,马龙哥还囊括了20张黑人选票。)
熊猫马龙 pandamalone 是中科大少年班的,科大2000-2004期间最著名的衙内。
马龙是辽宁辽阳人,父亲是当地一霸,黑白通吃的那种。pandamalone还是学生的时候
在FL就买了2套房子2辆豪车。马龙有一句经常说的豪言,就是
————----- 我爸爸有司机,你有么? -----------
马龙在科大期间热爱篮球,在球场上的火气非常大,马龙在球场上的名言:以后不要让
我再看见到你,今后见你一次,打你一次。记得有一次,在科星杯篮球赛(科大院系之
间的比赛),马龙作为比赛的裁判,因为不满一名观众对他判罚的抱怨,当着几百名比
赛观众,当场就把那位为... 阅读全帖
h***e
发帖数: 20195
26
【 以下文字转载自 Military 讨论区 】
发信人: StephenKing (88), 信区: Military
标 题: 群众最喜爱的小将战无不胜攻无不可兽欲天齐
发信站: BBS 未名空间站 (Wed Apr 13 10:39:44 2011, 美东)
在佛州无影脚熊猫马龙竞选大胜之夜,我哭了。
hsh嘱我一定要写点什么
激动的泪水模糊了我的眼
我只有一句话
龙哥有肉吃,咱们也能分点儿屎
(选举结果,马龙哥177:173大胜,马龙哥还囊括了20张黑人选票。)
熊猫马龙 pandamalone 是中科大少年班的,科大2000-2004期间最著名的衙内。
马龙是辽宁辽阳人,父亲是当地一霸,黑白通吃的那种。pandamalone还是学生的时候
在FL就买了2套房子2辆豪车。马龙有一句经常说的豪言,就是
————----- 我爸爸有司机,你有么? -----------
马龙在科大期间热爱篮球,在球场上的火气非常大,马龙在球场上的名言:以后不要让
我再看见到你,今后见你一次,打你一次。记得有一次,在科星杯篮球赛(科大院系之
间的比赛),马龙作为比赛的裁判... 阅读全帖
A**u
发帖数: 2458
27
来自主题: Quant版 - 【SDE】dSt=\alphadt+St\sigmadWt
应该可以解,
但我前面算错了
前面写的
dS(t,w) = (S_t + 0.5 S_xx) dt + S_x dw
ds = a dt + b S dw
所以
1 S_t + 0.5 S_xx = a
2 S_x = bS
由 2 S = exp(bx) + c(t)
1. c'(t) + 0.5 b * b * exp(bx) = a
这好象没解
这个题好想,我也看到过,有人贴出来,大概就这么做的
________________________________________________
方程还是不变.
2--> S = c(t)exp(bx)
1--> (c'(t) + 0.5 b*b*c(t) exp(bx) = a
所以 c'(t) + 0.5b*b*c(t) = a * exp(-bx).
这时 y' + p(t)y = g(t) 形式, p(t) = 0.5b*b, g(t) = a * exp(-bx)
乘以 z(t) 两边
z(t) y' + z(t)p(t) y = z(t) g(t)
有 z'(t) = z(t)p(t).
所以z(t) = exp(... 阅读全帖
d****o
发帖数: 1055
28
来自主题: JobHunting版 - 被thank you的fb电面面经
int decode(vector in, int begin, int end){
if(begin>end) return 1;
if(begin==end&&in[begin]==0) return 0;
if(begin==end) return 1;
int cur = in[begin]*10+in[begin+1];
if(cur>=0&&cur<=9){
return 0;
}else if(cur==10||cur==20){
return begin+2<=end?decode(in,begin+2,end):1;
}else if((cur>=11&&cur<=19)||(cur>=21&&cur<=26)){
return decode(in,begin+1,end)+decode(in,begin+2,end);
}else{
return decode(in,begin+1,end);
}
}
int... 阅读全帖
c********t
发帖数: 5706
29
想了一个笨的O(n*logn)方法
1.找到从begin到end最小值min, 得到index_min
2.则从begin index到 end index的rectangle area = min*(end-begin+1)。
3.用recursion重复1,2,计算[begin,index_min-1] 的rectangle面积和[index_min+1
,end]的面积。
过了small test, large test 在[0,1...19999]的例子,得到runtime error。
拷到eclipse测试,通过了。谁能帮我看看有什么问题。
public class Solution {
int max;
public int largestRectangleArea(int[] height) {
// Start typing your Java solution below
// DO NOT write main() function
max = 0;
if(height == null... 阅读全帖
a****e
发帖数: 9589
30
ZZ
Best Places To Watch Fireworks in Atlanta:
•Lenox Square Mall: 免费,7月4号,9:40 p.m焰火开始(本人去过,很不错)
The absolute biggest and best fireworks demonstration in the Southeast takes
place every July 4 at Lenox Square Mall. The daylong celebration begins at
noon with a family festival and live entertainment. At precisely 9:40 p.m.,
the night sky over Buckhead explodes with more than three tons of fireworks
in a spectacular display of light, sound and color. The show lasts 15
minutes and is spectac... 阅读全帖
i*********5
发帖数: 19210
31
【 以下文字转载自 Triathlon 俱乐部 】
发信人: ironman2015 (ironman circa 2015), 信区: Triathlon
标 题: Bigfuzzydoug’s Ten Points to Swimming
发信站: BBS 未名空间站 (Thu Jan 13 09:23:59 2011, 美东)
Bigfuzzydoug’s Ten Points to Swimming:
http://www.beginnertriathlete.com/discussion/forums/thread-view
The key to swimming is reducing drag, not endurance or powering through the
water. This is not just my opinion; it is the law of physics. I’ll
explain it in a simple way: When you bike, you have to push air in front of
you ou... 阅读全帖
C****i
发帖数: 1776
32
来自主题: TrustInJesus版 - 神學教育典範﹕神學生必讀書目
神學教育典範﹕神學生必讀書目
A CLASSIC SEMINARY EDUCATION:
My Recommended Reading List
What the 21st century longs and needs to see, are Christians and
churches w
ho have a message to proclaim. Do you know what you believe? Building one
's own theological foundation is a life time task. It may involve going to s
eminary, or it may not. Not everyone has that opportunity. Sadly, very oft
en a seminary degree does not mean a solid foundation in the doctrines of th
e Bible. However you can launch ou... 阅读全帖
G*******s
发帖数: 4956
33
Blinded By Tradition:
An Open Letter to Dave Hunt
Regarding His Newly Published Attack Upon the Reformation, What Love Is This
? Calvinism's Misrepresentation of God
James White
Updated 5/16/02, see bottom of file
Dear Dave,
In the period of time since I finally received my own copy of your book (you
may recall I scanned through it while standing at your table in St. Louis a
t the PFO Conference) I have gone through a number of different emotions. A
t first I was just going to do one Dividing ... 阅读全帖
i*********5
发帖数: 19210
34
Bigfuzzydoug’s Ten Points to Swimming:
http://www.beginnertriathlete.com/discussion/forums/thread-view
The key to swimming is reducing drag, not endurance or powering through the
water. This is not just my opinion; it is the law of physics. I’ll
explain it in a simple way: When you bike, you have to push air in front of
you out of the way. The bigger the frontal section of your body and bike,
the more air you have to move. What’s worse is that it’s not a one to one
relationship. An increas... 阅读全帖
i*********5
发帖数: 19210
35
来自主题: _Triathlon版 - Bigfuzzydoug’s Ten Points to Swimming
Bigfuzzydoug’s Ten Points to Swimming:
http://www.beginnertriathlete.com/discussion/forums/thread-view
The key to swimming is reducing drag, not endurance or powering through the
water. This is not just my opinion; it is the law of physics. I’ll
explain it in a simple way: When you bike, you have to push air in front of
you out of the way. The bigger the frontal section of your body and bike,
the more air you have to move. What’s worse is that it’s not a one to one
relationship. An increas... 阅读全帖
i*********5
发帖数: 19210
36
来自主题: _Triathlon版 - Bigfuzzydoug’s Ten Points to Swimming
Bigfuzzydoug’s Ten Points to Swimming:
http://www.beginnertriathlete.com/discussion/forums/thread-view
The key to swimming is reducing drag, not endurance or powering through the
water. This is not just my opinion; it is the law of physics. I’ll
explain it in a simple way: When you bike, you have to push air in front of
you out of the way. The bigger the frontal section of your body and bike,
the more air you have to move. What’s worse is that it’s not a one to one
relationship. An increas... 阅读全帖
n**h
发帖数: 154
37
来自主题: JobHunting版 - 螺旋打印matrix
前两天正好练了一下手
void serial_print_matrix(int A[N][N])
{
int i;
int begin, end;
int top;
for (begin = 0; begin < N / 2; begin++) {
end = N - begin - 1;
//top
for (i = begin; i < end; i++) {
printf("%2d ", A[begin][i]);
}
//right
for (i = begin; i < end; i++) {
printf("%2d ", A[i][end]);
}
//bottom
for (i = begin; i < end; i++) {
printf("%2d ", A[end][end - i + begin]);
}
//left
for (i = begin
j*****g
发帖数: 223
38
来自主题: JobHunting版 - 一些面经
For the sorting w/ k elements problem, it's easy to achieve O(n) time
complexity and O(1) space complexity by using counting/frequency sort:
step 0: initialize counting/freq array k, where k0 ... kn elements can be
indexed into 0 to n of the array. And array is initialized to be 0.
step 1: scan the array, and for each a[i] do k[a[i]]++;
step 2: rescan the array and put final sorted element back in.
count = 0;
for (i = 0; i < k; i++)
for (j = 0; j < k[i]; j++)
a[count++] = i;
(a bit simpli... 阅读全帖
U***5
发帖数: 2796
39
来自主题: JobHunting版 - 一道A家店面题求解
一边看球一边草草写了写,corner case没时间搞了,只写了头2个search的情况:
小于key的最大值 - op_max_less
大于key的最小值 - op_min_great
其他几种情况自己加Functor就是了。感觉myfind return那里比较繁琐,应该有更好办
法整理一下。
写得不好,轻拍。
//Compare.h
enum Op_code
{
op_max_less = 0,
op_min_great
};
class Less
{
public:
Less(int v): val_(v), op_(op_max_less){}
bool operator()(int v1)
{
return v1 < val_;
}
const Op_code op_;
private:
int val_;

};
class Greater
{
public:
Greater(int v): val_(v), op_(op_min_great){}
bool opera... 阅读全帖
D*****r
发帖数: 6791
40
来自主题: TrustInJesus版 - Mark Twain:Letters from the earth
Letters from the Earth
When the Creator had finished thinking, He said, "I have thought. Behold!"
He lifted His hand, and from it burst a fountain-spray of fire, a million
stupendous suns, which clove the blackness and soared, away and away and
away, diminishing in magnitude and intensity as they pierced the far
frontiers of Space, until at last they were but as diamond nailheads
sparkling under the domed vast roof of the universe.
At the end of an hour the Grand Council was dismissed.
They left... 阅读全帖
S**U
发帖数: 7025
41
来自主题: Wisdom版 - 一个无信仰者对信仰的思考
尼采说过失去盲目的信仰之后,如何挣扎找到自己相信的美好。
Nietzsche's "Three Metamorphoses"
by Jason Francois
In the section of Thus Spoke Zarathustra entitled, "Of the Three
Metamorphoses,” Zarathustra describes a process of human transformation.
This transformation will become Zarathustra's answer to the fears and
anxieties created by the "death of God".
Nietzsche begins: "I name you three metamorphoses of the spirit: how the
spirit shall become a camel, and the camel a lion, and the lion at last a
child".
These metaphors... 阅读全帖
s*******f
发帖数: 1114
42
来自主题: JobHunting版 - 问一道微软面试题
static const int MAX_LEN = 10000000;//max size, if we cannot find
deplication within MAX_LEN, the random function is good.
//return where it begin duplicate
int TestRandomFun(int (*f)()){
static const int INIT_LEN = 100000;
static const int SUBARR_LEN = 10; //find 10-len substr first then
keep comparing,
static const int DUP_THRESHHOD = 1000; //if it keep equalling to
1000, we say then random function produce duplications.
vector v(INIT_LEN);
int c = 0;
while (v.size() < MAX_LEN){
for (int ... 阅读全帖
x******a
发帖数: 6336
43
//main()
#include
#include
#include "linkedlist.h"
int main()
{
LinkedList myList(5, "luke");
Iterator myIterator=myList.begin();
myList.insert(myIterator, "leia");
myIterator.forward();
myList.erase(myIterator);
myList.insert(myIterator, "chewbca"); 《======出问题。
myList[2]="han";
for (int i=0; i std::cout< }
myList.insert(myIterator, "chewbca"); 《======出问题。
这一句运行起来ta... 阅读全帖
c*****n
发帖数: 130
44
来自主题: Fishing版 - 德州的筒子们注意了!
TPWD News Release
Temporary Fishing Closure in Place on Texas Coast during Freeze
Feb. 2, 2011
Media Contact: Steve Lightfoot 512-389-4701, s*************[email protected].
us
AUSTIN– The Texas Parks and Wildlife Department has issued a temporary
closure to saltwater fishing along parts of the Texas coast to protect
resources during freezing weather conditions. The closure takes effect at
noon Wednesday, Feb. 2, 2011 and extends through noon on Saturday, Feb. 5,
2011.
In addition to killing game f... 阅读全帖
z***y
发帖数: 7151
45
这个不奇怪啊。
你可以看一看那个procedure, 你看里面有几个对temp table 的改变, 这些数据的改
变都会触发
recompilation。
我这个版本是2008 SP2的。
create procedure sys.sp_replmonitorrefreshagentdata
as
begin
set nocount on
declare @retcode int
,@agent_id int
,@agent_id2 int
,@publisher_id int
,@xact_seqno varbinary(16)
,@logreader_latency int
,@publisher_db sysname
,@publication sysname

-- security check
-- Has to b... 阅读全帖
O*******d
发帖数: 20343
46
来自主题: Programming版 - recurvion真的很难懂~~
recursion和写loop一样,需要有起始值和终止条件。还要有变化值使终止条件可以达
到。 可以从简单练习做起。 例如遍历多叉树,比如把一个folder里的所有folder和文
件的名字都印出来。再简单的练习可以把一段句子反转。
void Reverse(char* begin, char* end)
{
if(end > begin)
{
char temp = *begin;
*begin = *end;
*end = temp;
Reverse(begin + 1, end - 1);
}
}
char str[] = "ABCDEFG";
Reverse(str, str + strlen(str) - 1);
如果写成循环
char* begin = str;
char* end = str+ strlen(str) - 1;
while(end > begin)
{
char temp = *begin;
*begin = *end;
*end = temp;
begin++;
end--;
}
这里的关键是一旦终... 阅读全帖

发帖数: 1
47
Spoiler alert: 中或输
https://www.reddit.com/r/taiwan/comments/87i2lk/scenario_the_fourth_taiwan_
strait_crisis_of_2020/
2018 (March onward) – America and China initiate a series of tit-for-tat
trade restrictions and tariffs, gradually resulting in economic losses and
stock market drops totaling in the hundreds of billions
Mid-2019 – Somewhat overdue, the next global recession begins, mostly due
to bad debts and a round of mass layoffs originating in the Chinese economy.
Stock market crashes and so... 阅读全帖
p*l
发帖数: 1359
48
我的模版
\ProvidesPackage{beamerthemeclassnote}
\mode
\setbeamertemplate{caption}[numbered]
\setlength\parindent{28pt}
\setlength{\parskip}{0.75\baselineskip}
\setbeamersize{text margin left=0.5in,text margin right=0.5in}
\setbeamercolor{structure}{fg=black}
\setbeamercolor{palette primary}{fg=black,bg=white}
\setbeamertemplate{section in toc}{\vspace{12pt}\textbf{\inserttocsection}\}
\setbeamertemplate{subsection in toc}{\vspace{12pt}\hspace{18pt}\textbf{\
inserttocsubsectionnumber.}~... 阅读全帖
g**********y
发帖数: 14569
49
先把字符排序,然后对每个不同的字符(个数是len)来递归。相当于把len个字符插进前面的生成串里,总共有C(n+len, len)种方式。
这是java code
好象这也是G喜欢问的一道题,面试时写出来还是很吃力的。程序不难,但是那些递归关系和边界条件想清楚,很费脑力。我觉得谁要不用debugger, 一遍把它写对,差不多就可以把G拿下了。
public class RepetitionPermute {
public void permute(String a) {
char[] c = a.toCharArray();
Arrays.sort(c);
permute("", c, 0);
}

private void permute(String s, char[] c, int begin) {
if (begin == c.length) {
System.out.println(s);
return;
}
... 阅读全帖
g**********y
发帖数: 14569
50
先把字符排序,然后对每个不同的字符(个数是len)来递归。相当于把len个字符插进前面的生成串里,总共有C(n+len, len)种方式。
这是java code
好象这也是G喜欢问的一道题,面试时写出来还是很吃力的。程序不难,但是那些递归关系和边界条件想清楚,很费脑力。我觉得谁要不用debugger, 一遍把它写对,差不多就可以把G拿下了。
public class RepetitionPermute {
public void permute(String a) {
char[] c = a.toCharArray();
Arrays.sort(c);
permute("", c, 0);
}

private void permute(String s, char[] c, int begin) {
if (begin == c.length) {
System.out.println(s);
return;
}
... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)