由买买提看人间百态

topics

全部话题 - 话题: reverted
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
m*****t
发帖数: 334
1
void revert(char *str)
How to revert a string in-place and only scan the string once? (Remember, if
you use strlen() then it counts as one scan)
c***2
发帖数: 838
2
revert not reverse
an exmaple
str="abc"
foo(str)
str=="ABC"
revert(str)
str=="abc"
very simple
r**u
发帖数: 1567
3
来自主题: Linux版 - SVN revert to revision (转载)
【 以下文字转载自 Software 讨论区 】
发信人: raou (raou), 信区: Software
标 题: SVN revert to revision
发信站: BBS 未名空间站 (Thu Jan 3 13:38:11 2013, 美东)
I need to test some old code so I reverted my working copy back to an old
revision. But, after that, how can I make my working copy go back to the
latest revision?
I tried update to head but the working copy still has the state of the old
revision.
Thanks.
x*********s
发帖数: 2604
4
require one more parameter, revert(char* str, int n);
r******d
发帖数: 308
5
This function will revert string "how are you?" to "you are how?"?
r**u
发帖数: 1567
6
来自主题: Software版 - SVN revert to revision
I need to test some old code so I reverted my working copy back to an old
revision. But, after that, how can I make my working copy go back to the
latest revision?
I tried update to head but the working copy still has the state of the old
revision.
Thanks.
t****t
发帖数: 6806
7
来自主题: Software版 - SVN revert to revision
how did you "revert" to old revision?
ideally, you can use "svn update -r old_version" to use the old revision.
subsequent "svn update" will go back to HEAD.
worst case, just delete all working copy and co again.
o******e
发帖数: 1001
8
来自主题: Quant版 - 拟合mean reverting process
现在手头有一堆数据,想要用统计的方法拟合成mean reverting process。从来没有做
过这个事情,大家能不能提供一些关键词啊?谢了!
z****g
发帖数: 1978
9
来自主题: Quant版 - 拟合mean reverting process
笑到死,用GARCH fit mean reverting
x********o
发帖数: 519
10
来自主题: Quant版 - 拟合mean reverting process
GARCH(1,1) is essentially a mean reverting process.
your reply implies......, you know.
z****g
发帖数: 1978
11
来自主题: Quant版 - 拟合mean reverting process
X_t = X_{t-1} + GARCH(1,1)
please tell me this is mean reverting.
x********o
发帖数: 519
12
来自主题: Quant版 - 拟合mean reverting process
I just offered LZ an option to model the volatility by GARCH(1,1), which is
actually a mean reverting process.
I do not know what kind of data LZ has, there might be no GARCH effect (no
pattern).
of course, I agree with you, one should check whether there is GARCH effect
before go further.

发帖数: 1
13
【 以下文字转载自 JobHunting 讨论区 】
发信人: AmABB2015 (), 信区: JobHunting
标 题: 老印 manager 给我穿小鞋,已报告HR, 但是没什么用,求助
发信站: BBS 未名空间站 (Tue Sep 19 18:58:15 2017, 美东)
10/30/17 update:
刚才在我个人邮箱发现一封邮件,HR发过来的termination letter,说是因为
我不签那个offer。
然而那个offer是18年1月才生效,上面还注明我原来的offer会在今年年底12月31号终
结,从来也没说立刻终止啊。上周五我解释了我不签的原因以后,HR的回复说不签会被
视为constructive resign, will lead to termination accordingly。根本没提立即
termination。再说也不能因为不签明年的offer就立马终止今年的employment啊,
contractor都没有这样的。我算见识了什么叫low了。
--------------------------------------------... 阅读全帖
A*******5
发帖数: 690
14
10/30/17 update:
刚才在我个人邮箱发现一封邮件,HR发过来的termination letter,说是因为
我不签那个offer。
然而那个offer是18年1月才生效,上面还注明我原来的offer会在今年年底12月31号终
结,从来也没说立刻终止啊。上周五我解释了我不签的原因以后,HR的回复说不签会被
视为constructive resign, will lead to termination accordingly。根本没提立即
termination。再说也不能因为不签明年的offer就立马终止今年的employment啊,
contractor都没有这样的。我算见识了什么叫low了。
----------------------------------------------------------------------------
---
10/06/17 Update:刚才看见烙印在我关闭了的以前Angular2的project底下疯狂留言
几乎语无伦次地胡说八道,给了不相干的链接说Angular2支持某个platform,跟我有毛
关系啊。
又说Ang... 阅读全帖
s*******u
发帖数: 1055
15
上个礼拜五我跟我的老印manager argue 了最近他要大面积修改我的project,不难,
但是费事,近400个jsp,上面每一个element的innerHTML都要改成Java Snippet,算下
来近3000个,要求手改,不能写scripts,我并没有反对手改,因为所有 gulp 能用的
有关Dom 的plugin都是针对HTML的,JSP用不了,我自己写的plugin,明确声明只能用
于一部分JSP,那些tag夹着snippet纠结在一起的实在无能为力,也不值得,之前我的
scripts因为不成熟,出过一些bug,注意是之前,和这次没关系。我只是对他说能不能
下次在做这么重大改动时提前跟我商量一下,我是project owner,他这次一面说时间
紧,一面直接给我发个email让我照着就完了,他那back end才几行code,根本被考虑
我的工作量。而我只是说我以后能不能商量下,而不是现在。我连续加班两天搞定了,
并且在daily meeting 上当着全组和QA的面跟他confirm 是annually. 结果我昨天晚上
刚check in,他今天一早跟我说他把我的... 阅读全帖
A*******5
发帖数: 690
16
update:简直欺人太甚,我要找律师了。HR 居然不管不顾地站在老印一边,给我发邮
件不许我work onsite,还给我规定不合理的任务,我以前就拒绝过Angular2,因为它
在我们支持的IE11上根本不work,连老印manager都承认过。欺人太甚!
我找到了7月份的Jira记录,我在下面明确写了IE11不work,HR的那封邮件是
Retaliation的直接证据,
以前我还可怜HR,不想让她受牵连,好心没好报,这次跟老印一锅端吧
----------------------------------------------------------------------------
-----
Update: 周一我要去纽约的EEOC, 当面file charge,目前看来律师费是不用了,如果
我自己搞不定,再请律师也行。
感谢提供这方面信息的热心朋友。我自己在网上research,综合律师咨询的信息。搞懂
了这个流程。给需要的朋友做参考,以后有遇到这种破事的朋友,可以找我。
第一, EEOC 是 U S Equal Employments opportunities co... 阅读全帖
f**********t
发帖数: 1001
17
来自主题: JobHunting版 - 面试题讨论
#include "common.h"
void CS_(const vector &vs, size_t up, size_t down, size_t col,
map> &graph) {
size_t uu = up;
while (uu < down && vs[uu].size() <= col) {
++uu;
}
if (uu + 1 >= down) {
return;
}
char pre = vs[uu][col];
for (size_t dd = uu + 1; dd < down; ++dd) {
if (vs[dd].size() <= col) {
continue;
}
if (pre != vs[dd][col]) {
graph[pre].insert(vs[dd][col]);
if (uu + 1 < dd) {
CS_(vs, uu, dd... 阅读全帖
d**********o
发帖数: 1321
18
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
* 关于软件工程项目
** From: 小伙伴
Sent: Thursday, June 20, 2013 8:59 PM
To: me~~~
Subject: thoughpts on our projects 2- JS calendar code
Here is an example of calendar resource code written in JavaScript. It
should be helpful.
http://www.oschina.net/code/snippet_994981_22108
Best,
小伙伴
** From: me~~~
Sent: Saturday, June 29, 2013 11:12 PM
To: 小伙伴
Subject: CS502_Weekly Reports
Hi 小伙伴,
I have been busy for a while, and now began to think about our projects for
CS502 the software engineering.
I want to know i... 阅读全帖
d**********o
发帖数: 1321
19
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
* 关于软件工程项目
** From: 小伙伴
Sent: Thursday, June 20, 2013 8:59 PM
To: me~~~
Subject: thoughpts on our projects 2- JS calendar code
Here is an example of calendar resource code written in JavaScript. It
should be helpful.
http://www.oschina.net/code/snippet_994981_22108
Best,
小伙伴
** From: me~~~
Sent: Saturday, June 29, 2013 11:12 PM
To: 小伙伴
Subject: CS502_Weekly Reports
Hi 小伙伴,
I have been busy for a while, and now began to think about our projects for
CS502 the software engineering.
I want to know i... 阅读全帖
l*****7
发帖数: 8463
20
来自主题: Military版 - "乌克兰在2014" 普京大败!
乌克兰反对派违反了 <<和解协议>>。
如果俄国不能把乌克兰这事摆平了, 俄国就真的不行了。
References:
乌克兰总统与反对派签署解决危机的和解协议(图)
http://news.6park.com/newspark/index.php?app=news&act=view&nid=
21日稍早前,亚努科维奇宣布,将提前举行总统大选,恢复2004年宪法,限制总统权力
,将总统部分权利分配给议会,他承诺邀请反对派加入政府,组建联合政府。
http://www.theguardian.com/world/2014/feb/21/ukraine-president-
Ukraine opposition leaders sign deal with government
Deal sets out plans to hold early presidential elections, form a national
unity government and revert to the 2004 constitution
Ukraine opposition leaders sign ... 阅读全帖
l*****7
发帖数: 8463
21
反对派蠢得无与伦比:
1. 乌克兰反对派违反了 <<和解协议>>,
2. 刚上台就解散特警,
3. 立法消除俄语,
4. 解除武装司令,
5. 减工资等等。
根本不需要普京动手,自己先作死般造出各方面的敌人。
http://www.mitbbs.com/article3/Military/41120191_0_tn.html
发信人: luke837 (abcdefg), 信区: Military
标 题: Re: "乌克兰在2014" 第一回合, 普京大败!
发信站: BBS 未名空间站 (Sat Feb 22 14:08:28 2014, 美东)
乌克兰反对派违反了 <<和解协议>>。
如果俄国不能把乌克兰这事摆平了, 俄国就真的不行了。
References:
乌克兰总统与反对派签署解决危机的和解协议(图)
http://news.6park.com/newspark/index.php?app=news&act=view&nid=
21日稍早前,亚努科维奇宣布,将提前举行总统大选,恢复2004年宪法,限制总统权力
,将总统部分权利分配给议会,他承诺邀请反对派加入政府,组建联合... 阅读全帖
L**********g
发帖数: 498
22
Recent changes
Frontier2015 made a number of edits to the article. One of them mentions the
quote about Yitang Zhang's advisor not finding him jobs was translated
incorrectly, but I don't see any source or reason to believe that. I
reverted that change. I also reverted some of the wording about Yiteng being
unknown to the mathematical community, because that is a highly relevant
part of his biography, and mentioned in several of the sources. 71.255.245.
25 (talk) 01:57, 3 February 2015 (UTC)
Fro... 阅读全帖
a********h
发帖数: 819
23
Da Niu,
yeah, I didn't know this until a few days ago.
I converted 20K(deductible) +5K (non-deductible) to Roth last year, still
have 50K(deductible) in my rollover IRA.
so I only can claim 1.67K basis for the 5K, and still have 3.33K basis in
the rollover IRA.
so if I don't convert more to Roth in 2012 and after 2012 I can't convert
anymore due to income restriction, the 3.33K basis will stay in my IRA until
I start withdrawal in 20-30 years? And at that time, the basis is still 3.
33K? (doesn'... 阅读全帖
V******U
发帖数: 100
24
【 以下文字转载自 EB23 讨论区 】
发信人: tt20152015 (tt2015), 信区: EB23
标 题: 会哭的孩子有奶喝, 大家一起来吧!!!!!! 更新媒体
发信站: BBS 未名空间站 (Fri Sep 25 21:56:37 2015, 美东)
trackitt上来的, 自己的利益要自己争取阿!!!!!!!
1 ) Send email to your representatives
http://immigrationgirl.com/urge-your-representative-to-take-bac
2) Sign the Petition
https://petitions.whitehouse.gov/petition/uscis-and-dos-changed-priority-
dates-categories-all-sudden-and-causing-financial-and-mental-loss
3) Email Greg Siskind at [email protected]
/* */ asking to joi... 阅读全帖
A*******5
发帖数: 690
25

是的,他自己也老参与coding,但是编出来的玩意能一次就work的小于50%,他能每次
过关那是下属们帮他兜着,第一次和他合作时,他的idea考虑不周,你说我个刚来几个
星期的新人对product不了解,你都在这公司好几年了,还是Director,连前端的职位
最高的developer都说I'm sorry you have to do that。(擦屁股的活)
这也是为什么那天他把我所有check in都revert我那么来气的原因,他说只要有一个错
他就有权全revert,不需要解释,我立马就说你这样的错也没少犯,是不是以后谁都可
以因为一个错或者只是认为还没证实的错就可以把其他任何人的work都revert了?他立
马说不行!他可是后端,好多次build都fail了,我们手贱,一大早synchronize,然后
连login 都上不去,给他留面子,默默的在自己的workspace里把他update的文件恢复
成之前的版本,才能干活, 等下午,估计他自己改过来了,再synchronize。结果咱们
善意的容忍让他们把自己当盘菜了。
A*******5
发帖数: 690
26

是的,他自己也老参与coding,但是编出来的玩意能一次就work的小于50%,他能每次
过关那是下属们帮他兜着,第一次和他合作时,他的idea考虑不周,你说我个刚来几个
星期的新人对product不了解,你都在这公司好几年了,还是Director,连前端的职位
最高的developer都说I'm sorry you have to do that。(擦屁股的活)
这也是为什么那天他把我所有check in都revert我那么来气的原因,他说只要有一个错
他就有权全revert,不需要解释,我立马就说你这样的错也没少犯,是不是以后谁都可
以因为一个错或者只是认为还没证实的错就可以把其他任何人的work都revert了?他立
马说不行!他可是后端,好多次build都fail了,我们手贱,一大早synchronize,然后
连login 都上不去,给他留面子,默默的在自己的workspace里把他update的文件恢复
成之前的版本,才能干活, 等下午,估计他自己改过来了,再synchronize。结果咱们
善意的容忍让他们把自己当盘菜了。
t*******r
发帖数: 22634
27
如果 mean reverting 是自然界的主导力量,那么人类现在还是
鲨鱼。。。
用马工的说法,大部分 constrained optimization algorithm,
基本都是 directive force 远大于 chaotic force 的。(当然,
不要把所有现实世界里的 optimization algorithms 都理解为像
zombie 那样简单重复的小学计算题。。。就是了)。
实际上 mean reverting 的最大力量,我觉得反而是有着诸多幻想
且不切实际的推妈,热衷于 repetitive training,不懂得顺其自然
顺水推舟的道理,把娃主动推成 mean reverting 的。。。俗话说,
被推傻。。。人家 mother nature 早就说了,尼玛逆水推舟的事也
敢去干?尼玛不把 mother nature 放眼里,那能有好果子吃么?当然,
个别运气好到赌场中奖的,另说。。。
m********e
发帖数: 129
28
咱们中国人一定要签,里边有所有国家,所以feel free to forward to other forums
. 麻烦大家谁有账号,转发一下,我刚刚注册了一个华人的,发现要等好长时间才能发
贴。。。。还有其他论坛。谢谢啦!!
link:
https://petitions.whitehouse.gov//petition/uscis-and-dos-revert-original-
october-visa-bulletin
还有另外一个,其他人发起的,也可以签一下:
https://petitions.whitehouse.gov/petition/direct-uscis-allow-aos-filing-
announced-september-9-many-people-are-severely-disadvantaged-change
现在是所有合法移民团结起来的时候了,不然合法移民永远任人宰割
今天可以随意更改VB
明天就可以随意收回已发给你的绿卡
--------------------------------------
-----
这个是我写的,主要就是怕发出去,... 阅读全帖
w***n
发帖数: 2474
29
转贴一下网友碰到这个故障的留言。
I've had the same problem with the reverting changes for 2months now. Every
3 days my laptop force updates, fails, reverts, gets stuck trying to revert.
After turning on and off the laptop a bunch of times in a row it slows down
the reboot enabling me the right amount of time to hit the shift/F11 key
and have it actually let me reset my computer. Then 5hrs later I am back up
and running for about 2days 3 if I'm lucky then the force update starts all
over. I have tried everything... 阅读全帖
s****c
发帖数: 11300
30
来自主题: Hardware版 - pogoplug 折腾总结
1.我该准备什么样存储设备?
个人认为最简单的就是最好的 找一个空闲的足够大的usb移动硬盘就行。硬盘要被重新
格式化所以把文件做好备份。我以前试过用一个usb flash drive专门装系统,然后外
接移动硬盘做存储,效果很不好,因为大部分usb2.0的移动硬盘速度都很慢,而且
flash drive最好不要放swp文件避免寿命下降,所以造成性能下降。注意安装完成后
你的硬盘将被格式化为ext3系统,如果想在windows下读写的话需要安装相关软件
具体方案请自行放狗搜
2.安装:
注意事项:如果你在2012年7月前安装过pogoplug,请按照步骤3先将其恢复出厂状态,
去掉破解。如果是全新的pogoplug可以直接安装。不要尝试论坛上给出的升级方案,因
为你根本就无法运行(archlinuxarm安装树的依赖文件错误),先恢复,在重新破解。
所有的安装过程都在参考链接1里面,大家参照step by step做就行了。需要注意的是
你需要网线连到路由器上以下载安装文件。
3.反安装:
在arch linux root账号下,下载这个文件:
wget http://archlinu... 阅读全帖
s****c
发帖数: 11300
31
来自主题: Hardware版 - pogoplug 折腾总结
1.我该准备什么样存储设备?
个人认为最简单的就是最好的 找一个空闲的足够大的usb移动硬盘就行。硬盘要被重新
格式化所以把文件做好备份。我以前试过用一个usb flash drive专门装系统,然后外
接移动硬盘做存储,效果很不好,因为大部分usb2.0的移动硬盘速度都很慢,而且
flash drive最好不要放swp文件避免寿命下降,所以造成性能下降。注意安装完成后
你的硬盘将被格式化为ext3系统,如果想在windows下读写的话需要安装相关软件
具体方案请自行放狗搜
2.安装:
注意事项:如果你在2012年7月前安装过pogoplug,请按照步骤3先将其恢复出厂状态,
去掉破解。如果是全新的pogoplug可以直接安装。不要尝试论坛上给出的升级方案,因
为你根本就无法运行(archlinuxarm安装树的依赖文件错误),先恢复,在重新破解。
所有的安装过程都在参考链接1里面,大家参照step by step做就行了。需要注意的是
你需要网线连到路由器上以下载安装文件。
3.反安装:
在arch linux root账号下,下载这个文件:
wget http://archlinu... 阅读全帖
r**a
发帖数: 536
32
来自主题: Quant版 - 问个mean reversion的问题
我觉得MJ给的答案也没错。你从risk-neutral的角度出发,option price确实和drift
无关。option price就只和vol有关了。在mean-reverting下,vol会比较小(这个要相
对于没有mean reverting的case)
虽然我不太清楚MJ的答案的details,但是感觉上他假设vol是const。如果你抛弃这个
假设,单纯来看vol的变化的话。就能得出Crack的结论。
另外,说个题外话。我记得看过一篇文章,里面提出一个在risk-neutral下drift是
mean-reverting的stock的模型。具体的东西,我现在想不起来了。

may
y******i
发帖数: 199
33
来自主题: Quant版 - 问个mean reversion的问题
我觉得这位的思路很好。
我是这样理解的。
首先,如果mean reverting(MR)和non-mean reverting(NMR)的SDE中的vol参数都给定
为相同值的话,那么期权价格肯定应该是相同的。
其次,如果我们考虑分别假设这两个模型,然后用同一个市场历史价格数据序列来
calibrate公式中的vol参数。
i)在有非常liquid的数据(近似连续的时间序列,并且bid-ask spread很小)的情况下
,由于drift term对quadratic variation是没有贡献的,所以calibrate出来的vol还
是一样的。所以期权价格还是应该相同。
ii)如果数据不是非常liquid,有离散性,比如只用日收盘价序列,那么drift term就
有影响了。这种情况下,我觉得calibrate出来的MR模型中的vol应该更大一些,因为其
variance中的一部分被mean reverting的效应抵消之后,net variance才和NMR模型中
vol贡献的variance相同。这种情况下,如果还是假设连续模型的话,则MR模型下的期
权价格还应该更高一些。
请... 阅读全帖
G**Y
发帖数: 33224
34
he President of Russia met with media representatives to answer a number of
their questions, in particular with regard to the situation in Ukraine.
PRESIDENT OF RUSSIA VLADIMIR PUTIN: Good afternoon, colleagues,
How shall we do this? This is what I’d like to suggest: let’s have a
conversation, rather than an interview. Therefore, I would ask you to begin
by stating all your questions, I will jot them down and try to answer them,
and then we will have a more detailed discussion of the specifics t... 阅读全帖
c********e
发帖数: 4283
35
来自主题: USANews版 - 取消出生公民权了
不一定 没人challenge EO的话 EO就还是EO而已 就像Obama的dreamer EO,就一直是EO
反倒是老床要revert 这个EO在被別人challenge.
其实很多EO就一直是EO 反过来也有很多EO被revert了 也沒人care
J*e
发帖数: 230
36
来自主题: FleaMarket版 - jianshimit 是骗子吗
有能帮查一下ip吗。chase 已经不能revert了。不知道为什么星期天付的周二就不能
revert。得报警了。
还有什么办法?
我也在班上买过几万gc的。只是几个月来一次,没有考古。
d*****z
发帖数: 114
37
在当今的投资界,Charlie Munger不能不说是个相当有名的人。但在很多人的印象中,
这种名望是与Buffett紧密相连的,Munger作为Buffett的副手与合作者,在Berkshire
Hathaway取得了罕有的成功,仅此而已。实际上Munger在价值投资领域的个人成就非常
的了不起,自己本人完全可以跻身最伟大的投资家之列。更使Munger远超同辈的是他擅
长从哲学的角度对投资艺术进行思考和总结,其思想体系几乎可以称之为有关投资的认
识论和方法论。确定无疑的,Buffett也不断从中汲取了大量养料,并成功地运用于实
践中。然而即使在投资界真正了解Munger思想的人却也实在不多。这正印证了现实世界
的普遍现象:人们都在不断地追逐转瞬即逝的表象并被其所迷惑,而忽略了背后的真正
有意义的东西。
Munger的思想体系并不单纯的针对投资而言,而有更广泛的适用范围,本质就是从如何
认识世界开始的。在现代社会中,因为社会分工越来越深入,人们大都把精力专注于特
定的领域,而忽视了对其他领域广泛的学习,更不用谈加以融会贯通了。我们常常看到
很多非常聪明的人,在本领域做出很杰出的成绩,但... 阅读全帖
S**C
发帖数: 2964
38
来自主题: Investment版 - 大家投资FUND都REBALANCE吗?
As a accumulator, I am going to add new money to the recently
underperforming asset/funds as I believe every asset price will revert to
the mean eventually, and I have a long investment horizon, and hopefully
longer than the mean-reverting time frame.
As I do not believe smart people can suddenly become dumb, I am more likely
to add to the short-term underporforming long-term solid funds rather than
chaing the current hot ones, as long as there is no material change in that
fund.
g**********y
发帖数: 14569
39
来自主题: JobHunting版 - 问道amazon的面试题
主要是Bravethinker的code, 改动很小:
1. 试candidate时,对相同值,用index最小的那个,这样往下滑得更快。
2. founded不用ArrayList, 改成数组,速度更快。
3. 测试candidate时,直接改map; 测试不通过时revert修改。不过这个改动好象无关
紧要,不怎么影响速度。
public class BraveThinker implements IMilestone {
private int dfsCount = 0;
public int[] findMilestones(int[] dists) {
long t0 = System.currentTimeMillis();

dfsCount = 0;

int L = dists.length;
int N = (int) ((Math.sqrt(1 + 8 * L) - 1) / 2);
int[] founded = new int[N+1];... 阅读全帖
g**********y
发帖数: 14569
40
来自主题: JobHunting版 - 问道amazon的面试题
主要是Bravethinker的code, 改动很小:
1. 试candidate时,对相同值,用index最小的那个,这样往下滑得更快。
2. founded不用ArrayList, 改成数组,速度更快。
3. 测试candidate时,直接改map; 测试不通过时revert修改。不过这个改动好象无关
紧要,不怎么影响速度。
public class BraveThinker implements IMilestone {
private int dfsCount = 0;
public int[] findMilestones(int[] dists) {
long t0 = System.currentTimeMillis();

dfsCount = 0;

int L = dists.length;
int N = (int) ((Math.sqrt(1 + 8 * L) - 1) / 2);
int[] founded = new int[N+1];... 阅读全帖
i*****r
发帖数: 265
41
You can revert a binary number in logn time (n being the number of bits of
your integer, like 32-bit integer). Then you can compare if the reverted one
is the same as origin.
a********9
发帖数: 129
42
来自主题: JobHunting版 - 有人整理过FB的面试题么
之前稍微收集了一下
glassdoor
===================
edit distance
level traverse tree(高频)
1) Calculate the square root of a double(高频)
2) Given n intervals [si, fi], find the maximum number of overlapping
intervals.
3) Print all the paths from root to every leaf in a binary tree.
4) Print the sum of all the numbers at every vertical level in a binary tree
5) Given a set of n jobs with [start time, end time, cost] find a subset so
that no 2 jobs overlap and the cost is maximum ?
6) Given 1 trillion messages ... 阅读全帖
f**********t
发帖数: 1001
43
来自主题: JobHunting版 - 求助一面试题
// Given an string array sorted by characters in another string.
// Return that sorting base string.
// Example. give you
// {foo, cat, cao, bag, bat, aac}
// return: fcbagto
void buildGraph(vector &vs, unsigned col, unsigned up, unsigned down,
map> &res) {
char pre = '#';
unsigned count = 0;
unsigned uu = up;
for (unsigned i = up; i < down; ++i) {
if (vs[i].size() <= col) {
break;
}
if (vs[i][col] == pre) {
++count;
} else {
... 阅读全帖
f******o
发帖数: 102
44
他既然说了suppose you wrote the code and know the code very well, 那就是从代
码角度入手。 看从什么时候出现问题, 然后找出culprit change list, revert that
change list or revert the deployment.
d*******s
发帖数: 65
45
我一般这么做,不排除有大牛有更厉害的做法。
如果你要删除的commit改了文件A,你的patch已经merge到remote,而且在你之上文件A
没有新的merged commit。那么你可以先用git log 找到你的commit id。然后
git revert 。然后upload这个revert commit。等这个merge了就好了。
w**z
发帖数: 8232
46
you should use git revert, it will revert your commit by adding a new commit
. you won't be able to erase your commit.
g*****g
发帖数: 34805
47
public branch用revert,private用reset。reset灵活性更大一些,revert比较安全。
rebase 是在
private branch上sync public branch上的修改的时候用的。
M*******n
发帖数: 1143
48
来自主题: Money版 - Ink Plus match 70k回信
match 70k points但不match first year $95 annual fee.
另外这句话啥意思? "please revert once you spend $5,000.00 within 3 months
from account open date"
需要3个月花完$5000在联系他们要额外10k points?
************************************************************
Dear xxx,
Thank you for contacting Chase with your request for bonus
points.
I am happy to extend the 70,000 points offer to you. In
order to credit the additional 10,000 bonus points, please
revert once you spend $5,000.00 within 3 months from
account open date.
A... 阅读全帖
c*******u
发帖数: 12899
49
☆─────────────────────────────────────☆
littlehei (嘿嘿) 于 (Thu Mar 10 19:27:29 2011, 美东) 提到:
上大学新生入学体检的时候第一次检查出来,众目睽睽下几个肝感觉阳性的同学给点名
,被校医区别对待了,甚
至游泳卡也过了好久才拿到。。。当时只觉得无地自容,感觉被歧视了。
//幸好后来好像没有再这么被当众羞辱过。出国的体检,工作以后每年的体检都没有很
多废话。
后来我自己一直很注意这个方面的话题。得知我父亲年轻的时候得过乙肝,家里的孩子
成为乙肝病毒携带者也是
十有八九的事。虽然医学上说这个病毒携带是不可治愈也不可逆转的,还是相信民间偏
方吃了不少中药。小三阳
还是小三阳,姐姐是大三阳的,据说一度变成小三阳,现在不知道。因为美国好像没有
大小三阳的说法。
一直风平浪静的直到怀孕。第一trimester血结果出来以后,产科医生似乎有点紧张。
然后州政府的health
department给我打电话,说要把我登记在案。让我LG去打肝炎预防针,说小孩出生的几
个小时内得打第一针预防
针,期间各种血液体液样... 阅读全帖
Y********d
发帖数: 1478
50
If "如果 mean reverting 是自然界的主导力量,那么人类现在还是鲨鱼。。。" is
true,
证明你认为chaotic force 远大于directive force,which contradicts
"用马工的说法,大部分 constrained optimization algorithm,基本都是 directive
force 远大于 chaotic force 的。"
我以我理解的mean reverting 导出我的教育理念,和你讲的推妈完全相反。
我不认为你的理解能力存在问题,但是先入之见太强。
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)