|
w*******y 发帖数: 60932 | 2 Nikon ProStaff 550 Laser Rangefinder
Rangefinder built rugged for years of use
6X multicoated monocular for clear view
Waterproof, fogproof for use in any environment
Boast a generous 18mm of eye relief
Range in 1/2-yd. increments to 99.5 yds.
Range 1-yd. increments to 550 yds
Nikon's engineers built the ProStaff 550 rangefinder for hunters who
appreciate gear that stands up to in-field use. These pocket-sized
workhorses features a 6X multicoated monocular for a bright, clear view of
your target... 阅读全帖 |
|
b********n 发帖数: 38600 | 3 For now, seems the value proposition of added gizmos is not moving the
purchasing needle.
Email, apps, voice, text, photo/video, music = core deliverables.
You will notice photos/video seems to be the big push in all their marketing.
Honestly, ask yourself...I did....A better quicker faster selfie or BS
posting to Youtube or photo's ain't moving my needle.
For the cost, I never felt the need to increase my status with the handheld
device. Is an incremental longer battery going to move my needle?... 阅读全帖 |
|
h*l 发帖数: 807 | 4 read between the lines,you can figure out what it means.
Assertion: F-22 production uses a shim line and national spreading of
suppliers has cut quality, thus the F-22 lacks interchangeable parts.
Fact: The F-22 does not have a shim line. During the earliest stages of
production while tooling was undergoing development, there were a few
aircraft with slight differences which were subsequently modified. The F-22
supplier base is the best in the industry, as demonstrated by the aircraft’
s high qu... 阅读全帖 |
|
l****z 发帖数: 29846 | 5 By Roger D. Luchs
The public's lasting, indeed rising, hostility to ObamaCare has come as a
surprise to the President and his fellow travelers in Congress, but then
omniscience has never been their strong suit.
In 1959, Charles Lindblom, then an associate professor of economics at Yale,
penned a highly influential article entitled "The Science of Muddling
Through." There he analyzed the workings of modern democracies and offered
a compelling explanation for why incremental policy change is a pr... 阅读全帖 |
|
l****z 发帖数: 29846 | 6 How Conservatives Can Win in Blue-State America: Lessons from South Africa's
Opposition
The new conventional wisdom in the aftermath of the 2012 elections is that
Republicans face two challenges: first, that the United States is no longer
a center-right nation, but a center-left one; second, that the country’s
demographic shift away from whites will make it tougher for Republicans to
win votes. The proposed solution is that Republicans must compromise on the
party’s core policies, from immigrati... 阅读全帖 |
|
t*****t 发帖数: 285 | 7 Given an array S of n integers, are there elements a, b, c in S such that a
+ b + c = 0? Find all unique triplets in the array which gives the sum of
zero.
Note:
Elements in a triplet (a,b,c) must be in non-descending order. (ie, a ≤ b
≤ c)
The solution set must not contain duplicate triplets.
For example, given array S = {-1 0 1 2 -1 -4},
A solution set is:
(-1, 0, 1)
(-1, -1, 2)
class Solution {
private:
int increment(vector& nums, int l, int r){
while(l阅读全帖 |
|
l*******o 发帖数: 620 | 8 -Your Checking Cashback Bonus rewards earned starting July 1, 2014
will now be separate from your Discover Card Cashback Bonus. To combine
rewards, you will be able to transfer your Checking Cashback Bonus to your
Discover Card Cashback Bonus in increments of $20. Any rewards earned prior
to July 1, 2014 will remain in your Discover Card Cashback Bonus Account.
You may redeem your Checking Cashback Bonus on DiscoverBank.com. You may
redeem your Checking Cashback Bonus for:
Cash in the form of a ... 阅读全帖 |
|
z********0 发帖数: 9013 | 9 问原版的啊 刮熟在呢
我就抄书了:
1. Switch to 2.5lb increments.
5lb on a 100lb Press is a 5% increase vs 2.5% when adding 2,5lb. Switch to 2
,5lb increments when you start struggling to get 5×5 on the Bench and Press
. If your gym doesn’t have 1,25lb plates, get a pair of fractional plates f
rom Iron Woody to take with you to the gym. Note that you should stick with
5lb increments on the Squat and Deadlift, because you don’t have the same %
issues.
2. Deload. If you fail to get 5×5 with the same weight ... 阅读全帖 |
|
m******y 发帖数: 588 | 10 要是我有些production db在好几个sql server上, 现在要把这些db create 一个
offline的db copy用于别的reporting. 第一次我可以restore backup files, 然后根
据reporting需要作些index调整什么的, 然后我想要create nightly job to do
incremental data load from the production dbs to offline dbs,不做schema
changes. 问题是我怎么才能作incremental load? 怎么来track changes on
production db 做synchronization? 我知道有些utility象sql data compare可以一个
一个db compare, 但是我想要的是schedule一个job同时能做好多个db的incremental
data load. Any scripts or reference or advice is appreciated. |
|
u****s 发帖数: 2186 | 11 public class T1 {
private int i;
public T1()
{
increment(i);
}
public void increment(int i)
{
i++;
}
public int getI()
{
return i;
}
}
class T2{
public void method(T1 t1)
{
if(t1 == null) t1 = new T1();
t1.increment(t1.getI());
}
public static void main( String [] args)
{
T1 t1 = null;
T1 [] t1s = new T1[]{ t1 };
T2 t2 = new T2();
for(int i=0;i
|
|
t*********e 发帖数: 630 | 12 一个简单的 demo, 就这一个 class, as a singleton session bean. 然后就是 JSF
中直接对它的引用。 分别点击 Increment, A and B 可分别加 1. 如果去掉
Singleton annotation, 则 click 无效, counter 不增加,A & B 的值一直呆在 1
不变.
这是什么原理? 另外,去掉 @Singleton, Counter 是不是就变成了一个 stateful
session bean.
Counter A | | #{counter.a} |
|
<... 阅读全帖 |
|
M****z 发帖数: 1058 | 13 其实各方面都会存在这样的人,不过非技术人员概率更大,因为他们不是工具的直接使
用者。
这篇文章我觉得靠谱,希望有帮助:
Why Agile Is So Hard
http://www.uxmatters.com/mt/archives/2013/08/why-agile-is-so-ha
Is agile a dirty word in your company or among the members of your UX team?
Do you hear the term lean UX and groan? It’s okay—and not really
surprising—if your answer is yes. Agile is hard, and we all know it. But
since agile is likely to stick around for a while, I’m sure you’ve thought
about how to make it easier.
However, the question shouldn’t be h... 阅读全帖 |
|
h*i 发帖数: 3446 | 14 They are not even on the same playing field. One represents a new paradigm.
Another is just incremental improvement on some old paradigm.
If anything computer science history has told us, is that incremental
languages will be forgotten, replaced by another incrementally improved ones
, because there are so many of them.
Those change paradigms live on. |
|
a********e 发帖数: 136 | 15 http://www.educ.umu.se/~cobian/cobianbackup.htm
This would allow you to do full, differential, or incremental backup, but
you have to know what you are doing. This software will touch the archive
bit of a file.
Windows 7 Backup and Restore is also pretty user friendly for doing
incremental backup. Instead of resetting the file archive bit, this
application creates a catalog.
I would use Windows 7 Backup and Restore for simplicity if I am only
interested in either full and incremental backup; h... 阅读全帖 |
|
h*******g 发帖数: 2201 | 16 Measuring the dielectric constant of a protein solution gives the
dielectric weight increment that can be used to calculate the protein dipole
according to the equation:
m2 = 2DoMkTd /NA
where d is the dielectric weight increment, M the molecular weight of the
protein, Do the dielectric constant of water. The dielectric weight
increment d can be calculated from the dielectric constant of the protein
solution (D), water (Do), and the protein conc... 阅读全帖 |
|
w*******y 发帖数: 60932 | 17 REI Outlet has Casio Pathfinder Triple Sensor Watch for $95.93 + free
shipping for REI members.
Link:
http://www.rei.com/product/810885
List price $200
REI outlet reduced price $119.93
"20% off any one item at REI-Outlet.com" -$24.00
Free shipping for REI members (Free site to store for non-members)
Total $95.93
I had to pay the extra $4.05 in taxes because my state has an REI.
Amazon has great reviews
Link:
http://www.amazon.com/Casio-Pathfinder-Altimeter-Barometer-PAG4
* Large, dual-laye... 阅读全帖 |
|
R****a 发帖数: 6858 | 18 空中力量澳大利亚 文章: 中国新型J20隐形战机对F35和F/A-18意味着什么.
来源: googleit 于 2010-12-31 15:09:43 [档案] [博客] 旧帖] [转至博客] [给我悄
悄话] 本文已被阅读:186次 字体:调大/调小/重置 | 加入书签 | 打印 | 所有跟帖
| 加跟贴 | 查看当前最热讨论主题 摘要:
F35基于错误的理论"飞机的机动性无关紧要,让导弹做转圈的活. "
* 第一, 假定F35能撑到可发射导弹的位置, 但是J20和T50拥有低可探测性, 又非得多
快得多, 因而使他们的下视下射导弹拥有先发制人的优势;
* 第二, 更危险的是, J20和T50有超强的应对来袭导弹的措施(包括超机动, 隐形等,超
高速,及电子对抗措施, 让F35会转圈的导弹无法得手.由于自大地认为敌人的导弹无法
穿透F35隐形技术的屏障,F35的相应应对能力要差得多.
* 第三, F35紧急应变能力原本似乎不必要的,但现在J20依仗其隐形和高速会飞快地出
现在打完导弹的F35面前,迫使它进入并不擅长的缠斗.
http://www.ausairpower.net/AP... 阅读全帖 |
|
y***o 发帖数: 416 | 19 统计专业问题请教,谢谢大家
在研究过程中有一个难题,请大家帮忙
有两组人群 <= 18 岁, > 18 岁. 两种药物效果如下:
new medicine traditional medicine incremental
counts % of recovery counts % of recovery
<= 18 10,000 4.20% 5,000 3.10% 1.10%
> 18 30,000 3.5% 15,000 2.10% 1.40%
现在的难题是如何对INCREMENTAL做SIGNIFICANT TEST
证明1.1% 和1.4% 是SIGNIFICANTLY DIFFERENT
也就是证明新药相对于旧药对成人更有效
谢谢大家! |
|
a*****y 发帖数: 33185 | 20 http://www.washingtontimes.com/news/2013/aug/6/chellaney-chinas
CHELLANEY: China’s salami-slicing strategy
Beijing works incessantly to redraw political boundaries
By Brahma Chellaney - - Tuesday, August 6, 2013
China’s furtive, incremental encroachments into neighboring countries’
borderlands have emerged as a key destabilizing element in Asia. While China
’s navy and a part of its air force focus on asserting revanchist
territorial and maritime claims in the South China and East China seas, it... 阅读全帖 |
|
c***n 发帖数: 2232 | 21 【 以下文字转载自 Military 讨论区 】
发信人: Regina (猫宝宝), 信区: Military
标 题: 空中力量澳大利亚 文章: 中国新型J20隐形战机对F35和F/A-18意味着什么.
发信站: BBS 未名空间站 (Fri Dec 31 18:54:16 2010, 美东)
空中力量澳大利亚 文章: 中国新型J20隐形战机对F35和F/A-18意味着什么.
来源: googleit 于 2010-12-31 15:09:43 [档案] [博客] 旧帖] [转至博客] [给我悄
悄话] 本文已被阅读:186次 字体:调大/调小/重置 | 加入书签 | 打印 | 所有跟帖
| 加跟贴 | 查看当前最热讨论主题 摘要:
F35基于错误的理论"飞机的机动性无关紧要,让导弹做转圈的活. "
* 第一, 假定F35能撑到可发射导弹的位置, 但是J20和T50拥有低可探测性, 又非得多
快得多, 因而使他们的下视下射导弹拥有先发制人的优势;
* 第二, 更危险的是, J20和T50有超强的应对来袭导弹的措施(包括超机动, 隐形等,超
高速,及电子对抗措施, 让F35会转圈的... 阅读全帖 |
|
q****i 发帖数: 1395 | 22 By Dragon Emperor
For those of you who say that the big size of the J-20 makes it less
manoeverable than the F-22, i say that 5th gen fighters are not supposed to
be dogfighters, so manoevrability is not an issue because BVRAAMs will
decide the fight in future wars as well as AESA radars. I have provided a
link to a site that will give more insight, perhaps.
http://www.ausairpower.net/APA-NOTAM-311210-1.html
The latest monograph by Dr Kopp, as published in the peer reviewed APA
Analyses journal,... 阅读全帖 |
|
发帖数: 1 | 23 美国海军早没有什么“军用芯片宙斯盾”和“军用芯片声呐”了。
90年代的宙斯盾基线6.1是最早使用部分商用系统集成的宙斯盾体系,而在2002财年的
基线7.1是第一种全COTS商用处理器的宙斯盾。基线7.1C是第一种开放架构的宙斯盾。
海军的宙斯盾,主系统最早使用AN/UYK-7 32位计算机系统,使用UNIVAC 1108架构。80
年代给AN/SPY-1B开发的AN/UYK-43 32位机使用同样指令集,运算速度提升3倍以上,并
且使用主动冗余技术,大大降低了系统故障的概率。
MK99火控分系统负责引导SPG-62照射雷达,由AN/UYK-20 16位计算机进行引导;80年代
后期更换16位的升级版本AN/UYK-44,运算速度提升4-6倍,该计算机的处理速度是90万
指令/秒,内存2MB。
90年代升级版本的AN/UYK-43引入开放商用处理单元模块,可以最多增加6块VMEbus集成
板。
90年代AN/UYK-43基本已经由AN/UYQ-70计算机更换,该系统的运算速度是AN/UYK-43的
960倍,商规改进型AN/UYK-43的155倍。该计算机对于COTS货架商用芯片的集成... 阅读全帖 |
|
w**t 发帖数: 227 | 24 【 以下文字转载自 Military 讨论区 】
发信人: Regina (猫宝宝), 信区: Military
标 题: 空中力量澳大利亚 文章: 中国新型J20隐形战机对F35和F/A-18意味着什么.
发信站: BBS 未名空间站 (Fri Dec 31 18:54:16 2010, 美东)
空中力量澳大利亚 文章: 中国新型J20隐形战机对F35和F/A-18意味着什么.
来源: googleit 于 2010-12-31 15:09:43 [档案] [博客] 旧帖] [转至博客] [给我悄
悄话] 本文已被阅读:186次 字体:调大/调小/重置 | 加入书签 | 打印 | 所有跟帖
| 加跟贴 | 查看当前最热讨论主题 摘要:
F35基于错误的理论"飞机的机动性无关紧要,让导弹做转圈的活. "
* 第一, 假定F35能撑到可发射导弹的位置, 但是J20和T50拥有低可探测性, 又非得多
快得多, 因而使他们的下视下射导弹拥有先发制人的优势;
* 第二, 更危险的是, J20和T50有超强的应对来袭导弹的措施(包括超机动, 隐形等,超
高速,及电子对抗措施, 让F35会转圈的... 阅读全帖 |
|
b*****d 发帖数: 61690 | 25 A former colleague of Rachel Mitchell, the outside counsel hired by
Republicans to question Christine Blasey Ford last week, is blasting a memo
the lawyer drafted as "disingenuous."
In a memo to the Senate Judiciary Committee, Mitchell wrote that Ford's
sexual misconduct allegations against Supreme Court nominee Brett Kavanaugh
were "weak" on legal grounds.
Mitchell, an Arizona sex-crimes prosecutor, wrote that she does not believe
a "reasonable prosecutor" would bring Ford's case to trial.
Mat... 阅读全帖 |
|
k*****u 发帖数: 14053 | 26 ☆─────────────────────────────────────☆
purdueme (General_9th) 于 (Wed Aug 3 13:35:16 2011, 美东) 提到:
16吋的轮子
轮胎的suggest的气压是44psi
感觉好高啊
最近这经常90多度的气温
请教各位
这样的胎,打到多少算合适啊?
不是很放心打这么足的气
另外近期可能会有一趟长途
轮胎几个月新
求推荐气压值
谢谢~~
☆─────────────────────────────────────☆
kelvinchufei (Kelvin) 于 (Wed Aug 3 13:37:20 2011, 美东) 提到:
看车手册,RTFM
一般32~34,夏天去高的值
轮胎上写的是最高气压44 psi
☆─────────────────────────────────────☆
purdueme (General_9th) 于 (Wed Aug 3 13:38:37 2011, 美东) 提到:
很遗憾,车子没有manual
另外,这个胎真的是44psi
最大好... 阅读全帖 |
|
s********d 发帖数: 2216 | 27
买家的底牌怎么能给别人看,不然 seller 看到了,岂不是要榨干 buyer 极限?
这个是 ebay 的竞价系统设置。 你怀疑的 seller 自己 bid, 也不是没可能。不过这
几块钱的东西,考虑到时间成本,可能性不大。
http://pages.ebay.com/help/buy/automatic-bidding.html
How automatic bidding works
When you place a bid, you enter the maximum amount you're willing to pay for
the item. The seller and other bidders don't know your maximum bid.
We'll place bids on your behalf using the automatic bid increment amount,
which is based on the current high bid. We'll bid only as much as necessary... 阅读全帖 |
|
c*******y 发帖数: 1038 | 28 also round down to $5 increments. Seems better than OD since it is not
totally lost but carried over to next quarter.
Staples Rewards® are issued online monthly at staples.com/rewards in
increments of $5. Monthly balances of less than $5 will roll over through
the end of the following calendar quarter. Unissued Rewards will expire at
the end of the following calendar quarter unless a Qualifying Purchase is
made during that rollover period. |
|
t**********t 发帖数: 12071 | 29 根据我们同行们对楼主的了解,楼主的东西肯定不是INCREMENTAL的(能坚持走GALLAGER
路线的,一定不会去做INCREMENTAL的东西的)。我觉得是借口而已。 |
|
T**********y 发帖数: 157 | 30 这几天很郁闷。首先是做一个报告被系里一个教授指出说我所有的工作都是在别人的框
架下完成的,没有自己的identity。然后是一个paper悲剧了,reviewer说是基于以前
工作的incremental work。看来是需要好好考虑一下自己的研究了。
怎么才能做出原创性的工作呢?大家有什么建议?天赋固然是一方面,有没有什么可以
遵循的规则啊?
无奈是在tenure的压力下,很多人(包括我)也许更倾向于做一些incremental和保险
的工作。 |
|
s**********e 发帖数: 33562 | 31 不过俺的看法是,这种incremental的文章也得有。世界上哪里来那么多革命性的文章
?很多进展不就是incremental的一点一点地前进的吗?尤其是技术工程类的东西,积
累是必要的。
当然前提是文章是有用的。那些没用的纯水文章是该BS的(同时BS俺自己一把) |
|
h******u 发帖数: 155 | 32 深刻理解樓主痛苦。現在問題是大部分的research確實是incremental的,所以這些
proposal能不能中全靠運氣。所以我覺得寫proposal的主要任務是開拓新領域,
propose別人想都沒想過,聼都沒聼過的,以至於人家沒法說你。這確實很難,需要很
長時間積累。所以我覺得理想的model是用一群incremental的proposal打底,碰運氣,
然後一兩年try一個全新的idea |
|
e**p 发帖数: 82 | 33 谢谢楼上两位大牛的回答。
我的感觉是真正新的idea很难能够写得让人信服啊。原因很简单,要写出让别人信服的
东西,自己一定是对问题以及解法有深入了解的。这样的话所propose的东西很可能就
已经可以写成paper(在投或已发)。只要成文了尤其是published的东西就不能说全新
了。就象这次我propose 的一个算法,解决了之前在literature中没有解决过的一类重
要问题,并投了一个好的会议论文。一个reviewer直接就说我已经make contribution
了,其他后续工作就是incremental了。搞笑的是我proposal里的另一个真正新的idea,
我自己并不知道该如何去解这个问题,只是high level的描述了问题以及后续的解决
问题的思路和方法,同一个reviewer 评价说lack details,problem modeling and
detailed solution will help to gain insights to the idea.看到这我就在想如果
我提供了技术细节的话他是不是就要说后续工作incremental了。
严格说起来... 阅读全帖 |
|
S*****n 发帖数: 4185 | 34 Journal Publications
M. Wang and D. P. Bertsekas, " A Unified Framework of Random Incremental
Methods for Large-Scale Convex Optimization ," In preparation.
M. Wang and D. P. Bertsekas, "Incremental Constraint Projection Methods for
Variational Inequalities," Lab. for Information and Decision Systems Report
LIDS-P-2898, MIT, December 2012; Submitted.
M. Wang and D. P. Bertsekas, "Stabilization of Stochastic Iterative Methods
for Singular and Nearly Singular Linear Systems," Lab. for Information ... 阅读全帖 |
|
n*****y 发帖数: 536 | 35 现在transfer miles不再是免费的,请问大牛是怎么操作的?
How do I transfer United MileagePlus miles?
The United MileagePlus Transfer Miles Program is an online program which
allows MileagePlus members to transfer their miles from one MileagePlus
account to any other MileagePlus account. In order to transfer miles, you
simply need to know the recipients' MileagePlus account number and e-mail
address. To begin a transaction, complete the transfer miles order form.
When prompted, enter the e-mail address and Mileage... 阅读全帖 |
|
n*****y 发帖数: 536 | 36 现在transfer miles不再是免费的,请问大牛是怎么操作的?
How do I transfer United MileagePlus miles?
The United MileagePlus Transfer Miles Program is an online program which
allows MileagePlus members to transfer their miles from one MileagePlus
account to any other MileagePlus account. In order to transfer miles, you
simply need to know the recipients' MileagePlus account number and e-mail
address. To begin a transaction, complete the transfer miles order form.
When prompted, enter the e-mail address and Mileage... 阅读全帖 |
|
s********h 发帖数: 158 | 37 the ipod is becoming a mature product. as with any such product, the
incremental value/benefit to customers diminishes with every new version.
look at windows, versions 3.0, 95 and 2000 are revolutionary, XP and 2003
are still good, but vista and 7 provided very little incremental value
despite many newly added features.
the difference btwn windows and ipod/iphone is that windows has a firm lock
on pcs, notebooks and distriubtion channels, and the switch cost is very
high. i cannot say the same |
|
r****m 发帖数: 1204 | 38 Hmmm, marginal tax rate for Roth and effective tax rate for Traditional IRA.
Really? I am afraid you are wrong in your description.
Obviously, there are many differences between Roth IRA and Traditional IRA,
such as eligibility, withdrawal rules, etc. some differences are very
significant.
First of all, if you are eligible, always invest in Roth IRA, period.
Compared with Traditional IRA, Roth has too many advantages!
Now for tax rate, both are subject to income tax, with Roth taxed at the
ye... 阅读全帖 |
|
i**********e 发帖数: 1145 | 39 The reason you are not getting the lower comparisons is because in your code:
else{
from++;
len=1;
}
after the if (i==from) block.
Are you sure you want to increase the search position by one forward?
Here's an example:
... 1 2 4 3 5 ...
i=5 6 7 8 9
Let's say your current maximum is 4. And now your index i starts at 5. You
compare element no. 8 and 9, and since 3 is less than 5, you continue
comparing element no. 7 and 8. Since 4 is not less than 3, you decided that
you can stop compari... 阅读全帖 |
|
l*****v 发帖数: 498 | 40 Given two arrays A & B of length l, containing non negative integers, such
that the sum of integers in A is the same as sum of integers in B.( The
numbers need not be the same in both the arrays.)
Now if you start with an index 'k' in each array and do the following
summation, SUMMATION (Ak-Bk), where Ak is the value at index k of array A,
and Bk is the value at index k of array B, where 'k' increments and wraps
back all the way to k-1, the final sum value will be zero.
Question: Find a suitable... 阅读全帖 |
|
i**********e 发帖数: 1145 | 41 这代表 hash table 里的值加一个 或者 减一。
一开始的初始值是 0.
h[0]++ --> increment h[0] by 1, now h[0] = 1
h[3]-- --> decrement h[3] by 1, now h[3] = -1
h[0]++ --> increment h[0] by 1, now h[0] = 2
一些常见面试题的答案与总结 -
http://www.ihas1337code.com |
|
g*****k 发帖数: 623 | 42 Why you people like to decrement m instead of incrementing m?
By increment, you can get rid of push_back and erase, if you reserve size m
for subset.
Thus you can access subset[m] each time and don't need to erase elements.
题目的意思相当于有序打印集合A所有大小为3的子集,代码如下:
void run(int a[], int n, int m, vector &subset)
{
if(n < m) return ;
if(m == 0) {
for(int i = 0; i < subset.size(); i++)
cout << subset[i] << " ";
cout << endl;
return ;
}
subset.push_bac... 阅读全帖 |
|
b*****n 发帖数: 482 | 43 Q1: it is similar to the one in CareerCup 150
Use two queues, q1 for incrementing factor of 2, q2 for incrementing
factor of 5. Below are the steps
1. init the queues.
q1: (1,0) which means 2^1*5^0.
q2: (0,1) which means 2^0*5^1.
2. Compare front elements from the two queues, and dequeue the smaller
one: (i,j). Put (i,j) in you output sequence. If num of elements in the
output sequence reaches N, break.
3. Enqueue (i, j+1) into q2, and if (i,j) is from q1, also enqueue (i+1,
j) into q1.
4. Go ba... 阅读全帖 |
|
d********w 发帖数: 363 | 44 problem: Enumerate points that satisfy the following constraints in 3
dimensions:
1. x + y + z = 1
2. 0 <= x, y, z <= 1
3. x, y and z are multiples of a given increment between 0-1
Example:
increment = 0.5
x y z
-------------
0 0 1
0 .5 .5
0 1 0
.5 0 .5
.5 .5 0
1 0 0 |
|
c*****e 发帖数: 737 | 45 C(n, 3)么,n = 1/increment,然后遍历一遍找出所有的解。这和increment为多少没
关系,只要有结果就输出就可以了。 |
|
q******0 发帖数: 15 | 46 Undefined.
The is related to the concept of "sequence point". e.g.
a[i] = i++
because there is no sequence point specified for the assignment, increment
or index operators, you don't know when the effect of the increment on i
occurs.
Same reason for i++ + i++ |
|
g****y 发帖数: 240 | 47 Edit: 好像不对,还是更复杂的情况。
想了一个O(n)的解法。请帮忙看一下对不对。
if A and B have no duplicate char: easy problem. just traverse C. increase A
's
index if A's char matches or increase B's index if B's char matches.
if A and B have duplicate chars, we assume A[i, j] == B[m, n].
when we traverse C and in the position where C[k] == A[i] == B[m], we have
two ways to go: increase A's index or increase B's index. in this kind of
situation, we will always select to increase A's index.
if we are lucky, A is the right way to ... 阅读全帖 |
|
g**e 发帖数: 6127 | 48 hash个啥。直接auto increment id就行了。当然了,getUniqueId本身就是一道高深的
设计题。我们可以从mysql(或其他RDBMS)的auto increment id开始。 |
|
t********e 发帖数: 344 | 49 实现一个increment an integer by 1的函数,the integer can be huge, 数据结构自选
e.g., [2,3,6] --> [2,3,7]
我一开始用ArrayList, 为的是方便处理最大数位进位的情况, e.g. 999 ->
1000。
后来经过提醒用char[],这样计算前需要转换成int, 而且如果最大位数要进位需要重
新初始化一个char[] ... 不知道这样对吗?
关于increment()计算本身,我用iteration和recursive各写了一遍,主要考虑了进位
,不过没考虑负数 ... 不知道算不算一个bug?
唉,刚开始准备找工作就面了G家,心里好没底啊。希望好心人bless有个onsite吧 |
|