m********r 发帖数: 811 | 1 【 以下文字转载自 Physics 讨论区 】
发信人: miniplayer (mplayer), 信区: Physics
标 题: What is the shortest non-zero lenght, L, of a magnetic quadrupole that is imaging in the horizonta
发信站: BBS 未名空间站 (Mon Aug 31 18:20:27 2009, 美东)
What is the shortest non-zero lenght, L, of a magnetic quadrupole that is
imaging in the horizontal plane, with omega=9 ? |
|
m********r 发帖数: 811 | 2 What is the shortest non-zero lenght, L, of a magnetic quadrupole that is
imaging in the horizontal plane, with omega=9 ? |
|
e***s 发帖数: 799 | 3 对不起,我又没认真看回复。。。。
public static bool FindSum(int[] arr)
{
bool found = false;
Array.Sort(arr);
int lenght = arr.Length;
int left, right;
for(int i = lenght - 1; i >= 2; i--)
{
left = 0;
right = i - 1;
while (left < right)
{
if (arr[left] + arr[right] == -arr[i])
return true;
else if (arr[left... 阅读全帖 |
|
e**n 发帖数: 5876 | 4 目前的PRO系列
还发了另2个patents
1) 300-500mm f/2.8-4.0 MFT lens (33,8 cm lens lenght)
2) 200-300mm f/2.8-4.0 MFT lens (22,8 cm lens lenght) |
|
A*********u 发帖数: 8976 | 5 1, !! is to concatenate character variables
"a"!!"b"="ab"
lenght of City_Country should be
length of First + lenght of " ," (1) + length of "England"
length 是在 compile 的时候决定的,compile的时候Function不执行
2, default length of the scan function result is 200
3, 原题的delimiter可能是', '即逗号和空格,你仔细看看
1,
data test;
first='Ipswich, England';
City_Country= Substr(First, 1,7)!! ','!!'England';
run;
请问这个!!(两个感叹号)是什么意思啊,是空格吗?好像在online tutor中没见过。
还有为什么length of city_country 是25?为什么不是17呢?
substr出来的值有default长度的吗?
2,
dat |
|
s***d 发帖数: 15421 | 6 比芯片的一个gate lenght差不了多少
★ 发自iPhone App: ChineseWeb 7.7 |
|
g***y 发帖数: 764 | 7 inverted list:
A: 3, 5, 99, 21
B: 4, 23
C: 9, 20, 35
D: 1, 6, 24
Merge sort all list to produce to below sorted array:
1D 3A 4B 5A 6D 9C 20C 21A 23B 24D 35C 99A
the problem is find the smallest sub array which contains all four letters (
A, B, C, D)
It can be solved by O(n) where n is the length of the array by idea of
dynamiac progeamming and also by looking up the original inverted list:
Starting from index 0, end index 3 (we know the min lenght of the subarry is
4),
scan the four items, bookk... 阅读全帖 |
|
i**********e 发帖数: 1145 | 8 Already found a bug in your code.
--> int length=sizeof(input)/sizeof(int);
This will always set lenght as 1. Because input is an int* pointer that's
passed into the function, therefore sizeof(input) = sizeof(int*) = 4. |
|
i**********e 发帖数: 1145 | 9 Already found a bug in your code.
--> int length=sizeof(input)/sizeof(int);
This will always set lenght as 1. Because input is an int* pointer that's
passed into the function, therefore sizeof(input) = sizeof(int*) = 4. |
|
k****n 发帖数: 369 | 10
actually, we will traverse all the posting list at most once,
so it's O(n)
like this:
record all the occurrence positions in the longer array in the following
posting list
a[0]: 1 5 7 8 13 19
a[1]: 2 9 20
a[2]: 13 15 17
...
keep a cursor in each posting list.
firstly locate the 1st ordered positions
then move the a[0] cursor forward and check if there is need to update.
the number of updates is at most sum of all posting lists lenghts
the number of checks is complicated, but seems also O(n) |
|
k*****y 发帖数: 744 | 11 Python写了一个,练练手
L = ['fooo', 'barr', 'wing', 'ding', 'wing']
S = 'lingmindraboofooowingdingbarrwingmonkeypoundcake'
# L1 stores distinct stings in L
# multiples counts the corresponding multiples
L1 = []
multiples = []
for str in L:
if str not in L1:
L1.append(str)
multiples.append(L.count(str))
# k is the lenght of each substring
k = len(L[0])
match = [0]*len(S)
checklist = []
for i in range(0, len(L1)):
mul = multiples[i]
list_pos = []
# find all possible positio... 阅读全帖 |
|
k*****y 发帖数: 744 | 12 Python写了一个,练练手
L = ['fooo', 'barr', 'wing', 'ding', 'wing']
S = 'lingmindraboofooowingdingbarrwingmonkeypoundcake'
# L1 stores distinct stings in L
# multiples counts the corresponding multiples
L1 = []
multiples = []
for str in L:
if str not in L1:
L1.append(str)
multiples.append(L.count(str))
# k is the lenght of each substring
k = len(L[0])
match = [0]*len(S)
checklist = []
for i in range(0, len(L1)):
mul = multiples[i]
list_pos = []
# find all possible positio... 阅读全帖 |
|
e*****e 发帖数: 1275 | 13 来自主题: JobHunting版 - 问一道老题 用DP乱写了点code,发现还是得O(n2),不好意思,刚刚想歪了。
typedef struct subarray_info
{
int start;
int end;
int min;
int max;
int new_start;
}subarray_info;
void calculate_subarray_info (subarray_info * info, int input_array[], int n
, int k)
{
if ( n == 1)
{
info[0].start = 0;
info[0].end = 0;
info[0].min = input_array[0];
info[0].max = input_array[0];
info[0].new_start = 0;
return;
}
calculate_subarray_info (info, input... 阅读全帖 |
|
z**r 发帖数: 17771 | 14 【 以下文字转载自 EmergingNetworking 讨论区 】
发信人: zher (民工.铜豌豆), 信区: EmergingNetworking
标 题: Mobile Packet Core position
发信站: BBS 未名空间站 (Tue Mar 20 00:40:01 2012, 美东)
if you are interested, please send your resume over.
Position Name: Packet Core Tester (SGSN,GGSN)
Location: Seattle, WA
Contract lenght: 6 months to 1 year, renewable
SKILL LEVEL:Senior YRS OF EXPER: 5+
DEGREE:Bachelor of Science MAJOR: Computer Science,
Engineering
OVERTIME:No ... 阅读全帖 |
|
d**********x 发帖数: 4083 | 15 读书,大型项目。开源的项目也有很多优秀的,比如webkit之类。
感觉如果以后不接触大型cpp项目的话,也就这样了,没必要学太多。。现在我感觉cpp
的未来不是很光明
像我当年那么脑残粉的确实不多。。以下是cpp深入学习的书单,传说中的书单
Effective cpp, More Effective cpp
Exceptional cpp, More Exceptional cpp
Imperfect cpp
Modern cpp Design
cpp Template
cpp Inside Object Model
the cpp Programming Language
cpp Standard Library
Generic Programming and the STL
侯捷的 深入理解stl
另外参考03版标准。
下面是前几天newsmth cpp版贴的面试题目....顺便也贴一下
1. str的内容是什么?
char* a = "
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrs... 阅读全帖 |
|
d**e 发帖数: 6098 | 16 ☆─────────────────────────────────────☆
CAIWU (Cai) 于 (Mon Jul 16 01:46:48 2012, 美东) 提到:
看了c++complete reference 那本书
☆─────────────────────────────────────☆
mxf (mxf) 于 (Mon Jul 16 01:59:30 2012, 美东) 提到:
继续写code
☆─────────────────────────────────────☆
CAIWU (Cai) 于 (Mon Jul 16 03:07:17 2012, 美东) 提到:
有些理论光写小程序学不来
想找点进阶的书看看
练习code就那些leetcode上的
基本只用到c的东西
☆─────────────────────────────────────☆
bokertov (早上好) 于 (Mon Jul 16 05:39:35 2012, 美东) 提到:
effective C++讲得比较深入
☆────────────... 阅读全帖 |
|
M********n 发帖数: 34 | 17 直接recursion会容易点吧
循环
依次改变一个字母, 查找是否在dict内,
不再字典内, 返回;
在, lenght +1, 返回
记录最小值 |
|
x***y 发帖数: 633 | 18 Find max and min of A, if lenght(A) = max-min+1, the whole array is O(n);
otherwise, consider the subarray that only contains max or min O(n); finally
,consider the 3 subarrays that contains neither max nor min.
so T(n) = 3T(n/3)+O(n) => T(n) = nlog(n) |
|
b******b 发帖数: 713 | 19 1. if you remember the Manacher’s Algorithm, then first use that algorithm
to find the longest palindrome string end at last char of given string, then
result is S.lenght - length of longest palindrome string end at last char.
use Manacher's algo, it's O(n).
2. 2nd floor's answer seems correct to me.
its
round |
|
t****n 发帖数: 24 | 20 申请的是那个Chase FreedomSM Visa - $100 Bonus Cash Back
我现在有CITI的CC,有两年了吧。然后一张AMEX的BLUE什么,今年5月申请的。再上一
次申请的应该是08年的事情了,当时被WAMU拒绝了。
他们拒绝我理由是:
Insufficient lenght of credit history
Presence of a resent inquiry
High percentage of credit profile consists of credit cards
来自EXPERIAN
第一个我觉得说服力不够
第二个,我前面说了,这两年就上次的WAMU和5月的AMEX了。可能5月离现在太近了?
第三个不是很明白什么意思,欠信用卡公司钱比例太高?我AMEX的还请很久了。CITI估
计比例就10%-15%这样吧。我不觉得高。 |
|
D***L 发帖数: 449 | 21 昨天晚上7点开始,觉得宫缩,开始还不知道是 contraction,只觉得肚子疼,10点多
给医院打电话,去检查了cervix lenght,还有4cm多,内检说是cervix还闭合,urine
test,监测发现确实在contraction,每4-5分钟一次。医生给打了一针,大概2am放我
回家了。
睡觉到今早7点多,又开始宫缩了,还是4-5分钟一次。一直到现在11点。没看到
bleeding和泼水。
这种假宫缩,一般持续多久啊?我这样子是正常的么? 刚才打电话给医院,让我去那
里继续检测。
我现在27周。
在线等,多谢了 |
|
h******1 发帖数: 8 | 22 想去墨西哥续签F-1,但是因为F-1已经过期,需要先申请墨西哥 visa
人在Purdue,不知道该去Indianapolis的consulate还是Chicago的,打了一早上电话也
没人接。
Chicago consulate网站上写的材料如下。并说明:VISA PROCESSING TIME IS TWO
BUSINESS DAYS. 但是我不打算在芝加哥住两天啊,他们能把护照寄回来么?材料清单
上是没有快递信封这一项的。跪求最近签过墨西哥的大侠们说说~~~
Personal apperance is a must.
A valid passport issued by your country or travel document issued by the DHS
(Department of Homeland Security).
Visa or stamp from DHS and I-94 (if applicable) signed I-20 or signed I-797
or signed IAP-66 or DS2019. Visa and proof of l... 阅读全帖 |
|
I*I 发帖数: 618 | 23 if it is an abstract, just consider it as abstract;
if it is a full lenght paper, say 4 pages or 8 pages with complete
bibliography, it is definitely a publication. |
|
g******4 发帖数: 6339 | 24 My two cents:
[1] Phase I:
Banks withhold foreclosure properties, control short sale prices.
Supply: non-foreclosed properties.
Median sale price goes down about 10% a year.
Last 2 -3 years
[2] Phase II:
Banks withhold most foreclosure properties listed at $300,000 or higher;
放出低价房(under $300,000).
[3] Phase III:
银行放出高价房.
During phase II and III, banks control the supply. The lenght of them
depends on the capital market.
Maybe, we never see 买方市场. Maybe, in the end of phase III, we will see a
rea |
|
z**r 发帖数: 17771 | 25 【 以下文字转载自 EmergingNetworking 讨论区 】
发信人: zher (民工.铜豌豆), 信区: EmergingNetworking
标 题: Mobile Packet Core position
发信站: BBS 未名空间站 (Tue Mar 20 00:40:01 2012, 美东)
if you are interested, please send your resume over.
Position Name: Packet Core Tester (SGSN,GGSN)
Location: Seattle, WA
Contract lenght: 6 months to 1 year, renewable
SKILL LEVEL:Senior YRS OF EXPER: 5+
DEGREE:Bachelor of Science MAJOR: Computer Science,
Engineering
OVERTIME:No ... 阅读全帖 |
|
o********e 发帖数: 2218 | 26 oh, that makes sense. I thought you break with a super light cue. Mine are
18 for the playing cue, 20 for the breaking cue that used to be my playing
cue. Does the extra lenght of 1-inch work for you anyways?
) |
|
m********8 发帖数: 157 | 27 landed two stocked rainbows, the large one was about 20 inches in lenght,
picture later.
on night craw, around 8:00 PM |
|
ET 发帖数: 10701 | 28 今天收到刚trade的Titleist 775cb.
实际上,我想要的是735cb.
只是一时没又找到有人愿意trade,就找了775cb凑合了。
下午击了近60个球,打了half round,有点感受。
我没自己仔细check这2套club的lenght, lie, loft等差距,
但就感觉,775cb能比mizuno mx23 hit longer.
我不喜欢mizuno mx23的原因就是因为club face太大了,775cb显然好些。
其它讲不出什么了。似乎能喜欢775cb多些。
不过用这套2-3个月后, 我估计我又 要换了。
还有driver, 现在用的是10.5 degree,我想换成9.5 或8.5什么的,我的launch angle
还好,
所以希望能在增加些距离。
还希望增加个3 wood, 讲53的gap wedge 换成50度,在加个sand wedge... |
|
t*****8 发帖数: 1274 | 29 另一个deal,貌似更好...从哪里冒出来这么多不锈钢管子啊...
Everything but the lower receiver. Get the kit here.
http://jsgunparts.com/store/
不过网站好像down了...
You can get a stripped lower for $59.95. That gets you a black gun for $529.
95 + S&H.
Includes:
Complete Flat Top 16" .223/5.56 M-4 Upper Receiver
Complete DPMS Mil-Spec Lower Receiver Parts Kit w/Standard Pistol Grip
Complete M-4 Collapsing 6 Position Stock Assembly
Upper Receiver Specs:
Billet Upper Receiver Complete with Charging Handle, Bolt & Carrier Group,
Hea... 阅读全帖 |
|
w**********o 发帖数: 138 | 30 I am interested in buying this skis (Nordica Hot Rod Helldiver, http://www.nordica.com/site/ski.php?site=2&lang=1&id=21) but have concern about its lenght. The smallest size is 170cm, which is 5 cm taller than my height.
Will it be too long? From what I read, the length of skis could be longer
than you height if you skill is advanced and if it is a all-mountain (fat?)
skis.
My current skis are 160cm with 70mm waist (also Nordica). I am a advanced
skier with 20+ days each season, mostly in Tahoe |
|
s****y 发帖数: 2159 | 31 可以的,你的 水平长5cm 没问题。
而且tahoe lake 那种雪质很重,长的 fat ski 很好用
〈=1&id=21) but have concern about its lenght. The smallest size is 170cm,
which is 5 cm taller than my
height.
) |
|
|
i****a 发帖数: 36252 | 33 Still uploading? Are you loading the uncut version? 1 hour full lenght AV?
Driving back to SD now.
[发表自未名空间手机版 - m.mitbbs.com] |
|
p*******y 发帖数: 944 | 34 谢谢大牛,我试验了,它在显示focal lenght时候有些问题,显示出上千的焦距,见附
件,不知是不是我扫描的图片都是原图的缩小版有关还是设置的问题。
我在网上之后又找到了另一个软件叫做turbo photo,同样的图片,这个软件就可以正
常显示,见另一附图。
刚才又被人告知,原来adobe bridge也可以(这个图不是我的),本问题算圆满解决了 |
|
p*******y 发帖数: 944 | 35 给家里人买了个ZS7,趁着没寄走前跟自己的单反比较了一下。ZS7是网评不错的,松下
今年刚出的卡片机,带GPS,12X optical zoom, 应该体现了DC的state of art
performance了。俺这儿上的是canon T1i+xxbis。
测试条件是:
(1)T1i: hand-held, AV mode, f/4, 200mm, point metering, sunlight WB, Auto
ISO;
(2)ZS7:hand-held, AV mode, f/4.9 (maximum), 300mm(maximum focus lenght) ,
point metering (不确定,看那个图标像), sunlight WB, Auto ISO
对焦点统一是图中看到那个白色房子,都照了两张选优。ZS7还没看manual,就是根据屏幕显示的改的,其他大部分都是出厂设置。更多条件见Exif。
感觉是:
1. 嗯,还是单反IQ(=image quality)好得多。
不过除此以外,似乎DC优势更多:
2. ZS7的色彩非常好(虽然单反的更真实),我根本没有意去设 |
|
x****c 发帖数: 25662 | 36 ☆─────────────────────────────────────☆
pettybaby (早日毕业) 于 (Thu May 27 19:09:24 2010, 美东) 提到:
给家里人买了个ZS7,趁着没寄走前跟自己的单反比较了一下。ZS7是网评不错的,松下
今年刚出的卡片机,带GPS,12X optical zoom, 应该体现了DC的state of art
performance了。俺这儿上的是canon T1i+xxbis。
测试条件是:
(1)T1i: hand-held, AV mode, f/4, 200mm, point metering, sunlight WB, Auto
ISO;
(2)ZS7:hand-held, AV mode, f/4.9 (maximum), 300mm(maximum focus lenght) ,
point metering (不确定,看那个图标像), sunlight WB, Auto ISO
对焦点统一是图中看到那个白色房子,都照了两张选优。ZS7还没看manual,就是根据屏幕显示的改的,其他大部分都是出厂 |
|
p*******y 发帖数: 944 | 37 【 以下文字转载自 PhotoForum 讨论区 】
发信人: pettybaby (早日毕业), 信区: PhotoForum
标 题: Re: 请教:如何统计一堆照片的焦距分布
发信站: BBS 未名空间站 (Fri Aug 13 23:14:38 2010, 美东)
谢谢大牛,我试验了,它在显示focal lenght时候有些问题,显示出上千的焦距,见附
件,不知是不是我扫描的图片都是原图的缩小版有关还是设置的问题。
我在网上之后又找到了另一个软件叫做turbo photo,同样的图片,这个软件就可以正
常显示,见另一附图。
刚才又被人告知,原来adobe bridge也可以(这个图不是我的),本问题算圆满解决了 |
|
n*******e 发帖数: 594 | 38 "blue giants have a short life" is fine.
in this instance, all blue giants have a singular, similar length of life
time, in this case, it is shortened.
"blue giants have short lives" eludes to similar but seperate notion.
although all blue giants might have short lives, but their 'shortened'
lenght may vary.
laters. |
|
w********g 发帖数: 121 | 39 【 以下文字转载自 Overseas 讨论区 】
发信人: whatswrong (What's+Wrong???), 信区: Overseas
标 题: 一道本科生的工程题目,要用matlab求解
发信站: BBS 未名空间站 (Thu Mar 29 14:23:28 2007)
那位可以指点一二?
I am studying an estuarine system. I have symplified it down to being a box
of dimensions 200 km (lenght), 0.050 km (deep) and 50 km (wide). The water
flows along the length at a rate of 1 cm/s (left to right). There is a
lateral diffusion of 8.2x10^6 and a vertical diffusion of 8.2. The system is
obviously time dependent. The current concentrat |
|
a*****a 发帖数: 438 | 40 I'm a bit confused with what you want.
Are you talking about the lenght of your sql command
statement, or the length of the column?
* If it's command statement, you may try put it in a stored
proc.
* If it's the length of the column (assuming you are using a
TEXT field):
If you use VC++'s ODBC, TEXT column is mapped to RFX_TEXT.
And it takes a default nMaxLength of 255 (you can check the
prototype of RFX_TEXT in afxdb.h). Just supply your length
to overwrite the default value. |
|
h****r 发帖数: 2056 | 41 yes, I mean the lenght of the sql command statement, store
procedure
is good, but maybe not fast. Now I overcome the 1k
limitation to 4k
limitation, it is the limiation of the ODBC packet size,
which is 4k.
Do you have some good way to over the 4k limiation of sql
statement? |
|
z**r 发帖数: 17771 | 42 if you are interested, please send your resume over.
Position Name: Packet Core Tester (SGSN,GGSN)
Location: Seattle, WA
Contract lenght: 6 months to 1 year, renewable
SKILL LEVEL:Senior YRS OF EXPER: 5+
DEGREE:Bachelor of Science MAJOR: Computer Science,
Engineering
OVERTIME:No
% TRAVEL:0
WORK STATUS:Authorized to work in US
... 阅读全帖 |
|
t****t 发帖数: 6806 | 43 The array size information is bound to the array type. But if the function
you called does not know the type of the array, i.e. doesn't know the lenght
of the array, then you can not know the length of array. :)
That is to say, you have to know the length of array before you know the
length of array. So the answer is no for C language. For C++, this can be
solved with template.
Please read C FAQ, there's a section for array and pointer.
type. |
|
M*m 发帖数: 141 | 44 Hmm, thanks, how do I understand parameter "a" here?
void f(int a[3]){
printf("size %d", sizeof(a)); // print 4;
}
Does that mean that C compiler will ignore [3], and simply convert the it to
int *?
lenght |
|
l**t 发帖数: 64 | 45 直接定义三个数组不就行了,把lenght设大点,怕浪费就每次改成numbers大小
搞计算的都很直接,一般不会搞像你这样的复杂数据结构
integer numbers
integer rows(LENGTH)
integer cols(LENGTH)
real value(LENGTH) |
|
m*******l 发帖数: 12782 | 46 瞎说一句,传统的C,如果处理字符串一般函数依赖 '\0' 而不是LENGTH
例如这里
char* your_fun(char *source);
当然这样有危险,例如微软就高了一套_s的派生函数,这些函数一般要求传一个LENGHT变量
但是这个一般是MAXIMUM,不是真正的LENGTH. |
|
c****l 发帖数: 1086 | 47 Not as easy as you thought, let's say you will got a litter of ten mice, are
you gonna breed all of the Cre+ mice with Cre- mice to figure out which is
homo Cre? Since the mice are good for breeder only 6 months or so, by the
time you figure out which is homo Cre, you are only left with 3 months. I do
not think it is practical to do this routinely.
RACE, is Rapid Amplification of cDNA Ends which is used to get full-lenght
cDNA, has nothing to do with insertional site analysis.
not sure about par |
|
w********g 发帖数: 121 | 48 【 以下文字转载自 Overseas 讨论区 】
发信人: whatswrong (What's+Wrong???), 信区: Overseas
标 题: 一道本科生的工程题目,要用matlab求解
发信站: BBS 未名空间站 (Thu Mar 29 14:23:28 2007)
那位可以指点一二?
I am studying an estuarine system. I have symplified it down to being a box
of dimensions 200 km (lenght), 0.050 km (deep) and 50 km (wide). The water
flows along the length at a rate of 1 cm/s (left to right). There is a
lateral diffusion of 8.2x10^6 and a vertical diffusion of 8.2. The system is
obviously time dependent. The current concentrat |
|
z**h 发帖数: 224 | 49 eta is the screening length?
if I don't konw the screening lenght. |
|
m********r 发帖数: 811 | 50 What is the shortest non-zero lenght, L, of a magnetic quadrupole that is
imaging in the horizontal plane, with omega=9 ? |
|