由买买提看人间百态

topics

全部话题 - 话题: ary
首页 上页 1 2 3 4 下页 末页 (共4页)
w*********s
发帖数: 2136
1
【 以下文字转载自 Military 讨论区 】
发信人: whiteclouds (/ 参考消息 /), 信区: Military
标 题: 奥鸡巴想对巴基斯坦不宣而战。北京发最后通牒。
发信站: BBS 未名空间站 (Mon May 23 03:59:30 2011, 美东)
US, Pakistan Near Open War; Chinese Ultimatum Warns Washington Against
Attack
Webster G. Tarpley, Ph.D.
http://tarpley.net/2011/05/21/us-pakistan-near-open-war-chinese
May 20, 2011
China has officially put the United States on notice that Washington’s
planned attack on Pakistan will be interpreted as an act of aggression
against Beijing. This blunt warning... 阅读全帖
e*******n
发帖数: 174
2
二手交易风险自负!请自行验证是否合法和一手卡!:
Y
我想卖的物品:
United Airline e-Certificate (适用于国内和国际航班)
单张面值:
$150, 共3张。适用于全家出行,美国国内最合适
可接受价格(必须明码标价!):
$100 = face value * 0.66
物品新旧要求:
Ticketing Dates: Tickets must be booked before or on 9/12/2013
Travel can happen later.
付款方式:
non-cc paypal
其他补充说明:
Non-refundable
========================================================
Redemption Instructions
1.
To redeem online go to
united.com
and enter your flight information, travel
dates and any other search criteria. In the
Offer C... 阅读全帖
z***b
发帖数: 4667
3
来自主题: Faculty版 - 急问一下final contract的问题
这里是不是说最晚7年tenure,但是给了我2年的credit,所以我最晚第5年可以申请ten
ure,是不是这个意思啊?谢谢
还有contract里面没有任何医疗保险,退休保险之类的细节,正常吗?
This appointment is a probationary appointment and is subject to renewal con
sideration. Under the faculty
personnel rules of the University of ××× System, a full -time probatio
nary appointment may be held a
maximum of 7 years prior to a tenure appointment. In your case the probation
ary period will be 7 years.
You have been given credit for two (2) years teaching experience at a univer
sity othe... 阅读全帖
b******i
发帖数: 2536
4
Gone!!Gone!!Gone!!
二手交易风险自负!请自行验证是否合法和一手卡!:
Y
我想卖的物品:
United Airline e-Certificate (适用于国内和国际航班)
单张面值:
$150, 共3张。适用于全家出行,美国国内最合适
可接受价格(必须明码标价!):
$117 = face value * 0.78
物品新旧要求:
Ticketing Dates: Valid for 1 year from July 11, 2013
付款方式:
non-cc paypal
其他补充说明:
Non-refundable
========================================================
Redemption Instructions
1.
To redeem online go to
united.com
and enter your flight information, travel
dates and any other search criteria. In the
Offer Code box, enter y... 阅读全帖
e*******n
发帖数: 174
5
二手交易风险自负!请自行验证是否合法和一手卡!:
Y
我想卖的物品:
United Airline e-Certificate (适用于国内和国际航班)
单张面值:
$150, 共3张。适用于全家出行,美国国内最合适
可接受价格(必须明码标价!):
$100 = face value * 0.66
物品新旧要求:
Ticketing Dates: Tickets must be booked before or on 9/12/2013
Travel can happen later.
付款方式:
non-cc paypal
其他补充说明:
Non-refundable
========================================================
Redemption Instructions
1.
To redeem online go to
united.com
and enter your flight information, travel
dates and any other search criteria. In the
Offer C... 阅读全帖
P**********3
发帖数: 77
6
这里应该有一些同学和我一样在国内结婚,却没有在国内为结婚证翻译并公证。结果到
了办F2->H4的时候不知道如何处理。这里提供一个简单方法。版主麻烦M一下。
1. 自行将中文结婚证翻译成英文。将翻译件打印在一页纸上(见模版)
2. 找一个中国同学或朋友(请他带上Driver's License),一起去找当地的公证员(Not
ary Public),一般银行和学校都有公证员提供免费的公证服务。
3. 当公证员的面请同学在翻译件空白处写一段Affidavit,证明他中英文俱佳并亲自翻译
此文件。然后请公证员公证并在同一页盖章。
4. 将翻译件和结婚证复印件订在一起交给律师。Done!
翻译模版和Affidavit模版请大家去m************[email protected]自行下载。密码是jobhu
nt.请勿修改密码,下载完请log off.谢谢。
b***a
发帖数: 6422
7
来自主题: JobHunting版 - CS PHD不能去研发部门还能干啥?
同样的COMPANY如果MS和PHD都去申请,面试什么的是完全一样吗?然后拿到OFFER,SAL
ARY会一样或者还是相差很少吗? 正在找JOB,一点概念也没有。

years
like
d****j
发帖数: 293
8
来自主题: JobHunting版 - Facebook Phone Inteview + 流程请教
面试官没提到题目不可以外泄,而且也都是常见的, 所以就在这里发了。
两轮电话面试都是45分钟,2道编程题,白板共享文档写程序。
简单寒暄5-10分钟,谈谈research,最近做的project等等。
然后直接告知共享文档link,写程序。
Round 1:
A. Given an arbitrary tree, can you print it level by level (with each level
printed on the same line).Define your own tree node structure, can be
binary tree or n-ary tree.
B. Given a set of distinct integers, can you print out all subsets?
Round 2:
A. Remove duplicated integers in an array, and then return an array without
duplicates. Follow up: what if allow duplic... 阅读全帖
d****j
发帖数: 293
9
来自主题: JobHunting版 - Facebook Phone Inteview + 流程请教
面试官没提到题目不可以外泄,而且也都是常见的, 所以就在这里发了。
两轮电话面试都是45分钟,2道编程题,白板共享文档写程序。
简单寒暄5-10分钟,谈谈research,最近做的project等等。
然后直接告知共享文档link,写程序。
Round 1:
A. Given an arbitrary tree, can you print it level by level (with each level
printed on the same line).Define your own tree node structure, can be
binary tree or n-ary tree.
B. Given a set of distinct integers, can you print out all subsets?
Round 2:
A. Remove duplicated integers in an array, and then return an array without
duplicates. Follow up: what if allow duplic... 阅读全帖
s*******f
发帖数: 1114
10
来自主题: JobHunting版 - Facebook Phone Inteview + 流程请教
//A. Given an arbitrary tree, can you print it level by level (with each
level
//printed on the same line).Define your own tree node structure, can be
//binary tree or n-ary tree.
struct Node{
int d;
std::vector children;
};
void PrintByLevel(Node *r){
if (!r)
return;
std::queue q;
q.push(r);
int pre_count = 1;
int count = 0;
while (!q.empty()){
Node *p = q.front();
for (std::vector::const_iterator ci = p-
>children.begin(); ci != p->children.end(); ++ci){
q.push(*ci);
++cou... 阅读全帖
x*********s
发帖数: 2604
11
来自主题: JobHunting版 - 问一道算法题
how to serialize and deserialize a n ary tree?
s*********l
发帖数: 103
12
来自主题: JobHunting版 - 找硬币的经典问题
k-ary tree.
d*****t
发帖数: 41
13
来自主题: JobHunting版 - 一点面经~
在本版混了半年时间,大部分时间潜水。现在终于拿到个一般的OFFER,结束了我的job
hunting。这半年来在本版学到了很多东西,现在写点面经回报本版~
第一个面试是MS的on campus。当时准备不足,问了个OOD设计纸牌,然后写个随机
shuffle的方
法。一边想一边改,十分狼狈,后来终于还是写出来了。除此之外还问了些以前
project的问题,和
career goal。后来一周后居然收到通知,要on site,谁知他们on site时间一拖再拖
,最后居
然定在第一面的4个月之后,所以到现在还是一般将来时。
第二个面试是GOOGLE的两个电面。第一个电面是一个声音很科幻的欧洲女,问了SQL的
inner
join和outer join。当时回答得很简略,其实没把所有知道的都说出来,也可能是因为
比较紧张。
然后让写一个画直线但不能有断点的方法,有点类似于PIE里那个画圆的题。没想出简
单的方法,就
用笨办法分各种情况讨论,还频频出错,搞得我满头大汗。一边写一边解释,其中我也
提到了浮点数
不能直接用等号比较之类的问题。第一面之后第二天进行了第二面,问了好长时间的简
历上的... 阅读全帖
i**********e
发帖数: 1145
14
来自主题: JobHunting版 - BB 一题
用 hashtable 的话直接 hash Jay,John, JACK to "j", Jay and Jack to "ja",
John to “jo",以此类推。。。(在 C++ 这个叫 hash_multimap,一个 key 可以有
多个对应的 values)
输入 "J" 的时候就直接做 hashtable lookup for key "j","Ja" 的时候就 lookup
key "ja" 就好了。
用 hashtable 其实类似于用 n-ary tree(也就是 prefix tree/trie),每个 node
有 26 个孩子 ("a-z")。hashtable 的坏处是每次 lookup 都要用 hash function 来
计算,而且还可能有冲突而导致效率更慢。
一些常见面试题的答案与总结 -
http://www.ihas1337code.com
B*****g
发帖数: 34098
15
【 以下文字转载自 Database 讨论区 】
发信人: Beijing (中国万岁,北京加油), 信区: Database
标 题: Oracle Webinar hosted by CINAOUG on July 18, 2011
发信站: BBS 未名空间站 (Mon Jul 11 23:21:11 2011, 美东)
Oracle Webinar hosted by CINAOUG on July 18, 2011
The Chinese in North America Oracle User Group (CINAOUG) will host a webinar
on Monday, July 18, 2011 featuring Tingda Lu, who will talk about Oracle da
tabase architecture and its main components. Before Mr. Lu's presentation, w
ebinar attendees are invited to participate in an inte... 阅读全帖
l*******0
发帖数: 176
16
来自主题: JobHunting版 - 发一个MSFT bing的onsite面经
一轮店面:
1. how to efficiently get all the email address from a page
2. normalized directory without using stack
/a/b/c/.././ -> /a/b
onsite 四轮
1. 国人大哥
a. 怎么实现相关搜索,例如,我搜索 Bush, 相关搜索应该会显示president,
bill clinton等等.
b. 一个fair的coin怎么产生unfair的head/tail 分布
c. 生男生女的概率经典问题.
2. 东欧人
a. process和thread区别
b. 什么是critical section. 什么是mutex,和semaphore的区别。如何设计一个
lock。
c. 怎么判断操作系统的stack的地址是递增还是递减的。
d. coding: Binary tree的width.(经典题)
3.
a. 两个n-ary tree. 找到相同的最大子树(经典题)
b. 增强版本: 如果当前leve... 阅读全帖
q****x
发帖数: 7404
17
来自主题: JobHunting版 - Microsof bing onsite面经疑问
d. coding: Binary tree的width.(经典题)
啥是width?直径?
a. 两个n-ary tree. 找到相同的最大子树(经典题)
这个咋做?
a. 从袋里每次拿两个球,一次拿到两个蓝色球的概率是50%,估计袋中共有多少球。
没看懂。一共几种颜色?
l*********y
发帖数: 142
18
来自主题: JobHunting版 - Microsof bing onsite面经疑问
两个n-ary tree. 找到相同的最大子树(经典题)?
不知到咋做?
k***t
发帖数: 276
19
来自主题: JobHunting版 - Find LeastCommonAncestor for N-ary Tree
写了一个,没测试。谁给Review一下。谢了。
===========================================
#include
#include
#define N 100
struct Node {
int val;
int nC; // Num of Children
Node *c[N]; // Children
};
bool hasP=false, hasQ=false;
Node * doLCA (Node *r, Node *p, Node *q) {
Node *first=NULL, *second=NULL;
assert(p&&q);
if (!r) return NULL;
if (p==r) {hasP=true; return r;}
if (q==r) {hasQ=true; return r;}
for (int i=0;inC;i++) {
Node *t=doL... 阅读全帖
m***n
发帖数: 2154
20
来自主题: JobHunting版 - 求教硬币组合问题
算法就是把硬币排序, 从大的排起。。
最多包含 x= amount/denom[k] 个 k硬币, 类似于一个BFS 的N-ary tree 搜索了
f*****7
发帖数: 92
21
来自主题: JobHunting版 - T第二轮面经
显然是用divide-and-conquer求diameter
最远的两个点一定是叶子,否则cut-and-paste,我们总能找到更长的
二叉树可以用modified post-order做,因为后序遍历的实质就是分治
n-ary tree,可以用两次BFS,证明很难,搜一下就有了
f*****7
发帖数: 92
22
来自主题: JobHunting版 - T第二轮面经
显然是用divide-and-conquer求diameter
最远的两个点一定是叶子,否则cut-and-paste,我们总能找到更长的
二叉树可以用modified post-order做,因为后序遍历的实质就是分治
n-ary tree,可以用两次BFS,证明很难,搜一下就有了
J**9
发帖数: 835
23
来自主题: JobHunting版 - yelp 电面面经应该已跪了
N-ary tree
typedef struct tree_node {
char *data;
int numChildren;
struct tree_node **children;
} treeNode;
search by pre-order traversal:
treeNode *searchNode(treeNode *root, char *data)
{
if (!root || !data) return NULL;
if (!strcmp(root->data, data))
return root;
for (int i=0; inumChildren;i++)
{
treeNode *node = searchNode(root->children[i], data);
if (node)
return node;
}

return NULL;
}
n****2
发帖数: 307
24
来自主题: JobHunting版 - G家onsite一题
N-ary tree serilize deserilize?
j****3
发帖数: 129
25
来自主题: JobHunting版 - 问一道n-ary tree 的题目
自己顶
l********s
发帖数: 358
26
来自主题: JobHunting版 - 问一道n-ary tree 的题目
DFS and serialize the subtree to a string, insert the string in a HashSet.
If the string already exists in the HashSet, we have two identical sub-
trees.
b******g
发帖数: 3616
27
来自主题: JobHunting版 - 问一道n-ary tree 的题目
这个DFS如何保证:当serialize出来的两个string一样时,一定这两个subtree也
identical呢?
l********s
发帖数: 358
28
来自主题: JobHunting版 - 问一道n-ary tree 的题目
I think we can pre-order serialize n-array tree similar to binary tree using
sentinels such as '#'.
http://leetcode.com/2010/09/serializationdeserialization-of-bin
e********2
发帖数: 495
29
来自主题: JobHunting版 - 问一道n-ary tree 的题目
serialize之后就用prefix tree啊!
n*******e
发帖数: 37
30
来自主题: JobHunting版 - 问一道n-ary tree 的题目
对identical subtree的定义不是很了解
想问一下, 如果有下面这个tree:
1
/ | \
3 2 5
/
3
其中的两个3算是identical subtree吗?
l********s
发帖数: 358
31
来自主题: JobHunting版 - 问一道n-ary tree 的题目
算!
d****n
发帖数: 233
32
来自主题: JobHunting版 - 问一道n-ary tree 的题目
Post order traversal, 同时对每个子树算hash, 遇到conflict,
再深度比较。

false
f********a
发帖数: 165
33
来自主题: JobHunting版 - serialize n-ary tree 一问
如果n==2的话,那就应该是binary tree. 应该适用于binary tree啊。两个树
serialize结果是一样的,那就没办法区别啊,怎么deserialize?
c*******e
发帖数: 373
34
来自主题: JobHunting版 - serialize n-ary tree 一问
A空B
AB空
就区别了
c*******e
发帖数: 373
35
来自主题: JobHunting版 - serialize n-ary tree 一问
n叉的方法一定能搞定2叉 所以2是n的特例
2叉的方法不一定能搞定n叉,但是同样思路,稍微扩展一下应该不难搞定,所以说n
是2的扩展
一般和特殊,这是一种单向关系,不是对称的 :)
f********a
发帖数: 165
36
来自主题: JobHunting版 - serialize n-ary tree 一问
以我举的二叉树为例,子节点为a, 一个树是以b为左节点,一个树以b为右节点,按照
geeks里面的serialize都是ab)), 怎么区别呢?你的答案a空b或者ab空不是这个方法的
输出啊。
t*****3
发帖数: 112
37
来自主题: JobHunting版 - serialize n-ary tree 一问
你没理解geeks和楼上的解释,n叉树是二叉树的扩展,不意味着方法能原样照搬。区别
在于二叉分左右,所以序列化时每个child指针都得明确有还是null,所以把n叉树方法
反推回二叉就是a)b))或者ab)))。你得搞清楚哪些是共性,哪些是区别,不能按照自己
感觉去定义
S*******C
发帖数: 822
38
来自主题: JobHunting版 - 这道题要用什么数据结构?
要用tree的话得用n-ary tree,而且每个node都得允许有multiple parent pointer,
这样很复杂
i*******a
发帖数: 61
39
1 best time to sell and buy stock1
2 find k largest/smallest in n sorted list
3 lru cache
4 design etsy database schema
5 find element in rotated array
~~~~~~~~~~~~~~~~~~~~~~
都不难,可惜挂了,自己分析,可能是1 第四轮印度小哥说的优化用db polymorphism
没懂(真的不太懂这个)2自己写题慢了(可是聊天20分钟,面试官也没有要出下一题
的意思)
~~~~~~
dropbox的在线题目
就是一个矩阵,来表示n个人之间的关系,可以是朋友(用f)或者是敌人(e), 俄且
这个关系是双向的,现在 给你一个string的关系,还有两个人的id判断这个string的
关系是合法还是非法的,string关系比如 feffeef 是可以倒回来的。
~~~~~~~~~~
马上要面L家了,想请教一下几道经典题,new grad小白,啥都不懂,请各位大牛不吝
赐教:
1library design题,design一个java... 阅读全帖
T*********e
发帖数: 9208
40
来自主题: Living版 - 敢情对小偷开枪有罪?
freeze后也可以攻击你,按你们的标准直接打死得了。
你们为了赢得争论,根本都不顾法律了。法律说的是reasonable, immeidately necess
ary. 背对逃跑怎么也不可能是immediately necessary, 否则freeze后也是immediatel
y necessary了。你们干脆打死锁有人算了
t*******a
发帖数: 623
41
从X-ary上看这颗比其他的都健康.
t****r
发帖数: 702
42
http://phx.corporate-ir.net/phoenix.zhtml?c=148005&p=irol-newsA
9293&highlight=
没那么夸张,只是phase I study 有效果而已。。。
Alnylam and Collaborators Publish Results from Phase I Clinical Trial and Ex
tension Study with ALN-VSP, an RNAi Therapeutic for the Treatment of Liver C
ancer
- Results Published in Cancer Discovery Document Most Comprehensive Human Ex
perience To Date for RNAi Therapeutics Delivered with Lipid Nanoparticles (L
NPs) -
CAMBRIDGE, Mass.--(BUSINESS WIRE)--Jan. 30, 2013-- Alnylam Pharmaceu... 阅读全帖
l*******y
发帖数: 1498
43
刚收到american express的一封邮件:
Congratulations! You are now eligible to receive your annual complimentary
credit score and report, exclusively for American Express® CardMembers
请问这个是真的免费的吗,会不会一段时间后又收费了?
多谢!
C****s
发帖数: 353
l*******y
发帖数: 1498
45
恩知道了
是免费的就行了
s****r
发帖数: 5136
46
http://eclaim.kccllc.net/caclaimforms/jga/home.aspx
A $2.085 million Settlement has been reached with JPMorgan Chase & Co. ("JPM
C") and Chase Bank USA, N.A. ("CBUSA," and collectively with JPMC, "Chase")
in a lawsuit where the Plaintiffs allege that Chase violated state common an
d statutory law when Chase forfeited rewards points upon CBUSA's closure of
credit-card accounts. Chase denies any liability or wrongdoing.
The Settlement offers payments to CBUSA cardmembers who, between June 2009 a
n... 阅读全帖
T****e
发帖数: 483
47
http://www.fjrenyu.cn/show.asp?id=488
感觉统合
感觉统合的概念
感觉统合术语是由ShrttinhyotC.S(1960)LashleyK.S(1960)提出的,并广泛地应用
于行为和脑神经科学的研究。AyresA.J根据对脑功能研究,1972年首先系统地提出了感
觉统合理论(SensoryIntegration Theory)。她认为感觉统合是指将人体器官各部分感
觉信息输入组合起来,经大脑统合作用,完成对身体内外知觉做出反应。只有经过感觉
统合,神经系统的不同部分才能协调整体工作,使个体与环境顺利接触。
自闭症儿童大多有感知觉方面的障碍。他们对刺激或是过于敏感或是反应迟滞。主
要是由于大脑在受到刺激后,接收和处理信息出现异常。而感觉统合训练通过对孩子视
觉、听觉、触觉、嗅觉和味觉、本体感、前庭觉方面的锻炼,来提高感知能力,分辨能
力以及身体的平衡感和各部位的协调性等。在进行感觉统合训练之前,训练者必须了解
孩子对外界刺激的敏感度。
第一部分 触觉
触觉对人的身体、精神和行为起着重要的作用。从婴儿时期起,触觉刺激使我们能
够认知这个世界、保持自身的... 阅读全帖
a*****g
发帖数: 19398
48
来自主题: NextGeneration版 - 长篇文章:Why Do Americans Stink at Math?
长篇文章:Why Do Americans Stink at Math?
When Akihiko Takahashi was a junior in college in 1978, he was like most of
the other students at his university in suburban Tokyo. He had a vague sense
of wanting to accomplish something but no clue what that something should b
e. But that spring he met a man who would become his mentor, and this relati
onship set the course of his entire career.
Takeshi Matsuyama was an elementary-school teacher, but like a small number
of instructors in Japan, he taught no... 阅读全帖
x****e
发帖数: 1780
49
揭批一下伊利诺斯大学芝加哥分校电器与计算机工程系的黑暗
耳闻目睹几个朋友的悲惨经历,本虾十分愤慨。
本虾一直思索我这个著名ID是干什么用的。黄色小说只能给大家带来一时之乐,只不过
是一些三俗内容而已,揭批这世上的丑恶才是我的最爱--毕竟名声越大责任越大嘛。
言归正传。先谈谈这个系的系主任。
系主任是一印度老太太 Dutta。
本虾第一感觉是她没有自己的主页(现在好像有了个很简陋的主页,都没有
publication list),所有的文章,书都是和老公一起写。毕业于University of Cincinnati的物理系。主页上看她一度是个postdog,后来一度跃为Team Leader of the Optoelectronics Team, US Army Research Laboratory。 这个不是米国公民是当不了的。后来发现她老公也是ECE的教授,而且是一个重量级人物,以前在NCSU当过教授(夫妻店),还做过whitehouse得science committee member。这一切都得到了解释。 后来听说一段她这个系主任的由来:03年的时候系里两个大牛争夺系主任的职... 阅读全帖
a***9
发帖数: 1884
50
"一个就是现在washington university in st. louis Department of Electrical and
Systems Engineering的系主任Arye Nehorai。"
此人在其中国学生中的口碑甚差, 犹太人, 极尽剥削...
首页 上页 1 2 3 4 下页 末页 (共4页)