由买买提看人间百态

topics

全部话题 - 话题: repetition
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
r****o
发帖数: 1950
1
if multiple repetitive elements, use binary search first?
r****o
发帖数: 1950
2
Will the repetitive elements will also be counted as continuously increasing?
then your algorithm needs to consider them.

相差。如果相差小于3,那之间的元素都可以直接略过。如果相差大于或等于3的话,那
就要一个一个比较之间的元素,然后如果之间的元素都是递增的,那就继续比较到 a[i
] >= a[i+1]为止。
i**********e
发帖数: 1145
3
No the repetitive elements will not be counted as continuously increasing.
Could you give a counter-example?
一些常见面试题的答案与总结 -
http://www.ihas1337code.com

increasing?
[i
r****o
发帖数: 1950
4
No counter-example.
If the repetitive elements are not counted as continuously incr, then your
solution is correct.
s********t
发帖数: 94
5
【 以下文字转载自 Actuary 讨论区 】
发信人: snowingrat (冰天雪地小老鼠), 信区: Actuary
标 题: 有没有做risk management的大虾?职业问题请教
发信站: BBS 未名空间站 (Mon May 30 22:01:59 2011, 美东)
先说下背景:本科数学,毕业后到一家asset management公司做初级的equity analyst
. 两年后觉得想做精算,于是读了一个精算的master,soa过了3门。因为种种原因搬到
另外的一个城市,精算机会不多,原来学校的connection也没有了,找了3个月精算工
作无果。现在开始考虑risk management和其他investment方面的工作,手里有两个
offer:
一个是本地很大一家asset management,跟我原来做的工作很像。坏处是工作比较
repetitive 和boring,好处是公司很大,估计有很多上升的机会,也有可能转到risk
management或直接投资的部门。
二是一家刚开张的consulting firm,几个partner招初级的rese... 阅读全帖
g**********y
发帖数: 14569
6
来自主题: JobHunting版 - A家的题
Given a number N, print all the ways (combinations) to represent the number
from the given set of integers.
Ex: Given set is {2,3,7,8,9} and given number N = 7, then the combinations
are:
7,2+2+3. Repetitions are not allowed, hence 3+2+2 or 2+3+2 are not allowed.
是个典型的递归搜索。
面试的人问他能不能O(n^2)或者O(n^3), 这个不可能吧?允许一个数重复用的话,答案
就是指数级的。
有什么想法?
a***r
发帖数: 93
7
这题如果用DP来做,哪位给分析一下什么是subproblem?
【 以下文字转载自 Programming 讨论区 】
发信人: minisand (老婆是A+海博), 信区: Programming
标 题: 请教一个字符串比较排序的问题
发信站: BBS 未名空间站 (Mon Nov 9 16:35:46 2009, 美东)
之前有人贴出了常见的那个求Maximum repetitive substring的代码,如下:
void MaxDuplicatedSubstring(char *input, char *result)
{
int length = strlen(input);
char **substrings = new char**[length];
for (int i=0; i < length; i++)
substrings[i] = input + i;
qsort(substrings, length, sizeof(char*), (int (*)(const void*, const void*
))strcmp);
... 阅读全帖
S******t
发帖数: 151
8
来自主题: JobHunting版 - facebook一题
It is easy to come up with an $O(SL)$ algorithm for this problem but what is
good about this problem is that it actually has a linear time solution:
Let’s first make some notations clear:
1) |S| -> The length of S.
2) |L| -> The number of words in the list $L$.
3) $len_L$ -> The length of each string in $L$.
First we use an Aho-Corasick automaton to find out the occurrences of all
patterns. The time complexity of this step is $O(|S| + |L| * len_L + z)$
where $z$ is the number of output matches. ... 阅读全帖
l******d
发帖数: 530
9
来自主题: JobHunting版 - 问两个offer nvidia和arista
"90% works is to program ASIC registers"
是不是硬件工程师做好板子,告诉你什么register做什么用的,你就去设置,然后硬件
变了你就跟着变?以前做了好几年这种工作,基本都是repetitive work,啥经验值都
没长。

the
imprive
i***0
发帖数: 8469
10
来自主题: JobHunting版 - Immediate interviews........phn hire
FULL TIME POSITION
hope you are doing good. Below are the 4 different positions of SDET. Please
let me know your comfort level with these
Redmond,WA
JOB-1:
Role: SDET with Windows 8
Experience: 4+ years
Following would be some of the responsibilities for the role:
1. Work along with test lead for the assigned business applications
2. Understand the assigned applications from a functional perspective
3. Create test cases based on business & technical requirements
4. A... 阅读全帖
a*******y
发帖数: 1040
11
来自主题: JobHunting版 - 贡献个题
you are given nos 1,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 u hav to form a 9 digit no such
dat 1st 2 digits are divisible by 2,1st 3 digits are divisible by 3,1st 4
digits are divisible by 4 and so on..... (repetitions not allowed)
但是我觉得那个最后fail的情况我return -1 不太好,这样即使fail了还会再在这个错
的上面try组合,虽然我让他即使退出了,但是还会有函数调用在stack上,还有怎么能
让这个函数return那个正确的值哪?本体只有一个正确的值
int GenerateNumber(string input, int digit, bool used[],int number, int n)
{
int temp = 0;
//early termination if failed
int numbeofdigit = 0;
... 阅读全帖
l********r
发帖数: 140
12
Any idea?
Especailly for the case that there are multiple same letters in the string.
c*****a
发帖数: 808
13
use hash to check duplicate?
l*******b
发帖数: 2586
14
用leetcode上next permutation的办法就可以过吧
整数版本的,换成字符就好啦
vector > permute(vector &num) {
sort(num.begin(), num.end());
vector > r;
r.push_back(num);
while(nextPermute(num))
r.push_back(num);
return r;
}
bool nextPermute(vector &num) {
int i,j,n;
i = j = num.size() - 1;
while(i > 0 && num[i] <= num[i-1])
--i;
n = i - 1;
if(n < 0) return false;
else{... 阅读全帖
p*****2
发帖数: 21240
15
复杂度太高吧
l*******b
发帖数: 2586
16
嗯,我觉得差不太多,n! 和n*n!这个比较
x***y
发帖数: 633
17
来自主题: JobHunting版 - 我们组(Nvidia)要找一个senior
要会perl, mysql, 能够做相对boring repetitive的work, 能够和别的managers沟通。
因为是senior的职位, 所以最少要五年的经验吧(fresh 肯定是不行了)。
好处是比较轻松, 老板人比较好;但是可能学不到什么东西。
投我邮箱吧 i*******[email protected].
r*********n
发帖数: 4553
18
来自主题: JobHunting版 - 一道面试题, 挺难的, 求助
you know the center and the orientation (assuming card is rectangle) for
each card
to test whether a point falls onto a particular card is equivalent to test
whether a 2D point is within a rectangle.
one way to do this is to write down the line equations for all sides in the
form f(X,Y) = aX + bY + c = 0... and check
f_1(x, y)*f_2(x, y) <= 0 && f_3(x, y)*f_4(x, y) <= 0
here f_1 and f_2 denote the line equations of parallel sides and similarly f
_3, f_4. f_1(x, y)*f_2(x, y) <= 0 means point (x,y... 阅读全帖
j********r
发帖数: 25
19
Question: Implement a Codec.
=> =>
Abckkkkkkkkkkks55p=> Abc11xk55p => Abckkkkkkkkkkks55p
也就是说,对于两个以上的重复字符,编码成
[n]x[c] where n is the repetition count and c is the actual
character,
比如以上的11为k的重复数,x是特殊字符,k是重复的字符。
中间会有special case, 比如:
Abc5xp, If you directly output above sequence, the decoder could decode it
as:
Abcppppp,
这种情况你应如何处理.
e********3
发帖数: 18578
20
来自主题: JobHunting版 - 请问:做QA有什么不好?
Career path is dead end, not much upward mobility, and once you are an QA,
it's hard for you to switch to SDEV. QA is basically paper pushing like a
glorified secretary, it is preserved for people not very good at programming
but can endure or even thrive in tedious repetitive work.
In terms of salary, if you search Glassdoor, SDET earns about 85% of SDEV
and QA earns about 75-80% of SDEV, you can see who is important now in the
company. America is capitalism and your value/respect correlates to... 阅读全帖
f*******r
发帖数: 976
21
LZ不用多放在心上,这道题不简单啊。这道题考的是对KMP的理解深度,最主要的就是
考的KMP里面的计算pattern string的next矩阵的计算方法。如果一个string是由一个
substring重复多次拼接而成,那么它的next矩阵肯定是这样:
x x x 3 4 5 6 7 8 9 ...
也就是说,next矩阵的后半部分一定是一个递增的数列。通过这个next矩阵我们就可以
计算出那个substring的长度,然后再来计算整个数组是不是这个substring的倍数,比
如abcdabcdabc虽然是重复多次,但是最后那个重复是abc,没有完整,少了个d。对于
KMP的理解,这篇博文写得不错:http://blog.csdn.net/v_july_v/article/details/7041827
我也来贴两个解法,第一个解法是暴力解法,从左到右扫描,如果找到了那个重复的
substring,就用这个substring来继续match整个string。如果不成功,那么就继续找
那个substring,不回溯,只是比较次数多,时间复杂度不是O(n),而是O(n^2).
// R... 阅读全帖
e*******o
发帖数: 4654
b******e
发帖数: 165
23
Two positions - Staff Thermal Engineering Architect and MTS, Tin Mitigation
Functional Architect.
Staff Thermal Engineering Architect
SUMMARY
For the development of novel thermal system solutions within our EUV plasma
chamber Mechanical Engineering team, we are seeking an experienced and
creative Staff Thermal Engineering Architect. Help us to develop well
engineered thermal architectures based on advanced FEA modeling and
instrumentation to enhance our tin capture and removal systems and provi... 阅读全帖
m*****n
发帖数: 2152
24
来自主题: JobHunting版 - 请教一些面试口水题
google了一下,下面回答对付面试,行不行?
1. hadoop 本质上有什么优势,比起传统的数据库?
大数据时代数据的特点是大量模糊数据(unstructured data)。Hadoop的优势是能对海
量模糊数据进行汇总排序比对等操作,把他们变成有意义的数据。传统的数据库擅长处
理精确数据(structured data),精确数据是指每条数据都有着准确的含义和确定的价
值,表达很明确的信息,但是无法做到短时间海量统计。
2. mongodb 本质上有什么优势?和sql比
传统有关系型数据库与NoSQL系统在数据结构上的本质区别。传统关系型数据库通常是
基于行的表格型存储,而NoSQL系统包括了列式存储(Cassandra)、key/value存储(
Memcached)、文档型存储(CouchDB)以及图结构存储(Neo4j)
mongodb的特点是非事务、schemaless、吞吐大,它们适用于 Web 2.0 应用用户广、数
据形式不固定、对事务无要求的特点。
3. TDD本质是怎么个过程?
Test-driven development (TDD) is a softwa... 阅读全帖
b***e
发帖数: 1419
25
来自主题: JobHunting版 - G家一道算法题
你这个可以, 但是有重复的,会降低算法的效率。可以改进成无重复的方法:
Output 1,
L2 - 2 // collect 2^i*3^j*5^k
L3 - 3 // collect 3^j*5^k only
L5 - 5 // collect 5^k only
Output 2, put 2*2 to L2
L2 - 4
L3 - 3
L5 - 5
Output 3, put 3*2 to L2, put 3*3 to L3
L2 - 4, 6
L3 - 9
L5 - 5
Output 4, put 4*2 to L2
L2 - 6,8
L3 - 9
L5 - 5
Output 5, put 5*2 to L2, put 5*3 to L3, put 5*5 to L5
L2 - 6,8,10
L3 - 9,15
L5 - 25
So on and so forth. This way, there won't be any repetitions and the
algorithm is precisely effective.
d****n
发帖数: 233
26
来自主题: JobHunting版 - G的一道Onesite题
Implement a encoding system as following:
Abckkkkkkkkkkks55p=> Abc11xk55p.
Rules:
encoded them as: [n]x[c]
where n is the repetition count and c is the actual character,
X is the special character.
Decoder side:
Any time above pattern is detected, it will output n number of c.
If x is the last character, output x.
How do you handle x in the original input?
f*********s
发帖数: 34
27
来自主题: JobHunting版 - 问一个G家面试题

Correction:
1. Complexity is n*lg(max(n)), so this algorithm works well if there are
large amount of repetitive smaller numbers;
2. In the last step, there should exist only one group with even number of
elements which has the even number;
M*S
发帖数: 459
28
来自主题: JobHunting版 - 问一个面试题
Given an list of songs, how to play them randomly without repetition?
如果我们调用随机数产生函数,那么无法避免产生重复数。怎么才能产生不重复的随机
数呢?谢谢。
l*****z
发帖数: 3022
29
good at solving difficult problems
Don't like do repetitive simple tasks, don't like jobs that is not
challenging.
i***l
发帖数: 468
30
过了onsite还要这么罗嗦? 招聘人员发来的。都要回答?
---------------------------------------------------
n order for me to best prepare for this part of the process, I will need the
following from you (and apologies in advance for some repetition from our
phone calls):
1. Three references: please let your references know to expect an email/
call from us in the next few days. Also – please confirm their title,
relationship to you, and best way to contact them. (At least one reference
should be from a current/recent ... 阅读全帖
e***a
发帖数: 1661
31
the bill receipt's numbers were repetitive to cause this matter.
e*******s
发帖数: 1979
32
来自主题: JobHunting版 - 只刷了110道现在。
有个很好的pdf 不记得哪儿的了
但是有个很好用的可以推到出正确解法的例子 xyxyzxyxz
kmp的核心就是match repetitive prefix 比如位置0的xyx和位置5的xyx
这些东西自己写出来是很难的 但是基本的思想应该过多久都不会忘 说说就行了

aaaaaa,
c********1
发帖数: 1839
33
Company: a Global Well-Funded Dynamic Electric Vehicle Start-Up
In this role, you will be part of IT/Digital operation team and have the
opportunity to work with various engineering teams to develop and support
both on-perm and on global-cloud platform.
Responsibilities:
Ø Responsible for on perm Data Center infrastructure planning and
setup
Ø Responsible for the day-to-day support, and ongoing maintenance and
ensuring the environment is scalable to meet growth, including ongoing
imp... 阅读全帖
n**a
发帖数: 41
34
Company: Mitsubishi Electric Research Labs
Location: 201 Broadway, Cambridge, MA 02139
Start Date: September 1, 2009
Duration: 4 months
Project title: Low complexity space-time adaptive signal processing
Project Description: Space-time adaptive processing (STAP) refers to
processing signals received on multiple elements of an antenna array and
from multiple transmitted pulses separated by a repetition interval. STAP
improves low velocity target detection by offering robust and strong clutter
re
A******i
发帖数: 34
35
来自主题: JobMarket版 - Cost Accountant-Santa Barbara
Cost Accountant
Duties and Responsibilities
• Support an accurate and on time monthly close and reporting cycle
, including preparation of all inventory related reconciliations.
• Prepare and enter cost and inventory-related journals entries,
including freight, inventory and reserve entries.
• Understand and apply GAAP accounting principles, procedures,
guidelines and business rules.
• Develop and maintain costing system including overhead pool
analysis betwee... 阅读全帖
g******1
发帖数: 295
36
来自主题: JobMarket版 - [内推]Clinical Laboratory Scientist
If interested, please email your resume to arthurbuffet At hotmail.com
ABOUT THE ROLE
The Clinical Laboratory Scientist is responsible for performing high
complexity laboratory testing (Next generation DNA sequencing) on patient
specimens, performing quality control and quality assurance procedures,
interpreting and reporting patient results, and complying with all
applicable local, state and federal laboratory requirements. The work
requires keeping meticulous and organized records, excellent a... 阅读全帖
G********n
发帖数: 468
37
Harassment covers a wide range of behaviors of an offensive nature. It is
commonly understood as behaviour intended to disturb or upset, and it is
characteristically repetitive. In the legal sense, it is intentional
behavior which is found threatening or disturbing.
In crime and law, hate crimes (also known as bias-motivated crimes) occur
when a perpetrator targets a victim because of his or her perceived
membership in a certain social group, usually defined by racial group,
religion,etc.
To com... 阅读全帖
W*******l
发帖数: 222
38
☆─────────────────────────────────────☆
GlacierMin (秦皇汉武) 于 (Sat Sep 17 22:24:44 2011, 美东) 提到:
我爸妈偶尔用落地晒衣架把衣服晾在阳台上。今天某个邻居丢了一个纸条。我看了以后
非常生气。字里行间充满了种族歧视。原文如下:
This is Not China...its the GOOD be USA(还双线画上了USA)!!
According to the Bylaws...you can not (画上了下划线)DRY/HANG clothes on your
balcony!
I am tired of seeing your laundry...takes away from the beauty of the
building. Please take care of today!
首句中就stereotype China and Chinese,让我非常不爽!靠,咱中国可是美国人的债
主!我仔细查阅了我的lease,里面只是说"may not"而不是"can not"。两个... 阅读全帖
m*********r
发帖数: 607
39
what's the point of having so many repetitive threads??
b**********y
发帖数: 7371
40
I agree that from pov of techniques and skills reqiured,DIY installing
those click n go flooring planks is pretty easy. but, when factoring the
amount of work, time and laborious factor, it may not be worth the hassle. I
am looking at hand a job to replace laminate in a basement, and tearing
down the existing flooring, hauling all the shit up stairs and dumping it,
carrying the new underpayment and 70 cartons of the flooring back down the
steps...... this simple physical labor and repetitive nat... 阅读全帖
t*******n
发帖数: 4445
41
来自主题: Medicine版 - 问一下手腕酸痛的问题
Many possibilities, from repetitive injury to pinched nerve. You should
arrange to see doc soon.
Bengay and advil will mask the symptoms for a while, but won't solve the
underlying cause.
c******r
发帖数: 889
42
来自主题: Medicine版 - 手指关节痛
如果你曾长时间使用计算机鼠标,then mouse syndrome? repetitive strain injury?
多休息.换更ergonomic mouse.
如果不是,疼痛并不缓解,看医生.
g*******n
发帖数: 19
43
Asperger's syndrome
An autism-like disorder of social impairment and repetitive activities
without marked language or cognitive delays
l****z
发帖数: 29846
44
WASHINGTON—Combining aerobic exercise and resistance training lowered blood
-sugar levels in people with Type 2 diabetes, a new study has found.
The same improvement in glycemic levels wasn't seen among patients who
performed aerobic exercise or resistance training alone, according to the
study, which will be published in this week's Journal of the American
Medical Association.
Patients who walked and lifted weights also lost more fat and trimmed their
waistlines more than people who did just on... 阅读全帖
l*h
发帖数: 4124
45
来自主题: Medicine版 - 【求助】精神强迫症如何治疗?
well, you may argue that some of his thoughts are obsessive thoughts instead
of delusional thoughts. in obsessive thoughts, there is no detachment from
reality. you don't see a corpse under a chair in obsessive thoughts, you don
't feel like entering a tomb in obsessive thoughts. "如果过分克制自己的想法
会出现呕吐的症状" also argue against it as an OCD.
repetitive behavior does not make it an OCD. it also appears in psychosis.
this could well be the reason why he has seen many "doctors" and taken many
drugs withou... 阅读全帖
l*h
发帖数: 4124
46
he will need EMG (including repetitive nerve stimulation and conduction
velocity). EMG will tell pretty well what group of diseases he has.
Definitive diagnosis can usually be achieved by muscle biopsy. Nerve biopsy
is unnecessary with this kind of presentation.
standard EMG uses fine needle electrodes. in small children, this requires
right level of sedation plus quite some experience.
if this is not possible, there is surface EMG which is non-invasive but
gathers less information.
if he has ea... 阅读全帖
A*********r
发帖数: 2115
47
来自主题: NextGeneration版 - 妈妈们---千万要小心啊-----
Some people are sadistic. The tissues and ligaments of babies are very
fragile and repetitive shaking can cause injuries to vital organs or the
brain.
Imaging shake a bag of tofu for 5 minutes.
c*****g
发帖数: 228
48
“开始一直说是有语言障碍,一直当他语言障碍治疗的”
是在哪里做的治疗?在中国吗?
1. 小孩可能只是sensitive,不喜欢人多的环境。有没有交流障碍主要看眼神交流,共
同兴趣。
2. 帕动物很正常吧。
3. 除了自闭,ADHD也是要考虑的
4. 不懂是怎么测定的,但是如果孩子的专注力很差,很可能影响他的认知力发展
5. 这个可以算作是repetitive的行为,很多Autism或者Asperger的小孩都有这样的问题
6. 这个是认知的问题,也就是智力方面
7. 没什么关系
8. 是口齿不清楚,还是言不达意?
9. 会提问题这很好啊

线,不
m****h
发帖数: 41
49
我打字很慢,这里重贴一个我以前写的关于自闭症的文章:我在另一个版回应了一个帖
子,在这里把我的帖子再发一次:
I am a licensed psychologist specialized in the diagnosis and treatment of
Autism.Here is some basic information about autism.
If you have questions, please email me. I'd be glad to provide more
information.
Autism Spectrum Disorder (ASD)is a neurological disorder that has a strong
genetic component. However the etiology is not clear at this point.
大约50% 的患autism的人有智力障碍,有相当一部分患者没有语言功能。所谓“天才”
确实存在,但绝不是“autism"的代名词。在我的经验当中,这样的“天才”占极小的
比率,但是媒体都... 阅读全帖
m****r
发帖数: 1904
50
来自主题: NextGeneration版 - High Risk Pregnancy Exercises
LEGS:
1. Ankle Pumps-Flex and extend ankles repetitively
-Target muscle area is front and back of the lower leg(anterior tibialis and gastroc, respectively). Good for promoting circulation and balance.
2. Heel Slides-Slowly bend knee so that your heel slides up towards you hip, then straighten your leg out again.
-Target muscle is hip flexor and quadriceps.
3. Snow Angels(Hip Abduction/Adduction)-Begin with ankles together, legs straight. Slowly move one ankle out to the edge of the bed, a... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)