就是那个cut rope的二维扩展。用DP来做。
int getPrice(int L, int W, vector > pieces) {
int vector > M(L+1, vector(W+1, 0));
/*
Use DP.
For , cut the pieces from the left top corner we c
an get three sub-problems:
(1). getPrice(L-l(k), W, prices) & getPrice(l(k), W-w(k), prices)
(2). getPrice(L, W-w(k), prices) & getPrice(L-l(k), w(k), prices)
*/
for(int i=0; i<=L; ++i) {
for(int j=0; j
... 阅读全帖
不刷题也不容易的,下面是我经历的一个挑战,大家可以看看能否达到人家的要求。
这个Startup的要求是一个小时左右完成下面这个Project,下面是原文:
As I mentioned, the next step is a technical skills challenge. We expect the
exercise to take about an hour, though it is not timed.
Take-Home Challenge - Backend
* Using Java or Kotlin and framework(s) of your choice (though we like
Spring Boot), create an API that accepts a freeform search query and returns
a list of matching Flickr titles and image URLs for various sizes.
* Limit the response to ten titles.
... 阅读全帖
Costco Wholesale Corp. has attained a goal that retailers have sought for
years: near-zero expenses for credit-card payments.
In a deal with Visa Inc. and Citigroup Inc., Costco’s acceptance costs will
be about zero, according to people familiar with the arrangement. That
compares with the roughly 0.6 percent of each transaction the retailer pays
its current partner, American Express Co. While Costco will still incur
small fees on Visa cards issued by other banks, incentives from Citigroup
and V... 阅读全帖
living room set - dark brown & black
Sofa: 122 x 37 x 27, long section 83inches - selling for $400 (bought in
2008 at $900)
coffee table Length: 55 1/8 ", Width: 26 ", Height: 18 1/2 " - selling for $
80 (Ikea price $179)
2x tv unit : 35 x 15 x 19 each, selling $40 for both (Ikea price $80 for
both)
if you buy full set, take $40 off the total price
living room set - light brown
coffee table with glass top 29 1/2 x 53 x 17 1/2 - $50
Bookcase with double doors 16 x 27 x 45 - $50
TV unit 23 1/2 x 5... 阅读全帖
since u are not satisfied with the format of output,you should define it
by yourself at first,and then translate it to ......
I think that html format is ok for you.
Here is a table head which contain 7 colume,you can add data and define as
you want
### u can search any format u like from internet and view source from the
browser
Furniture on sale:
Wood coffee table, cabinet, night stand, book shelf
1: Nice sturdy wood coffe table (almost new): 48" x 24" x 20" (width, depth,
height): $55 or obo
2: Cabinet with 4 drawers: 24" x 14.5 x 36 (width, depth, height): $12 or
obo
3: Night stand with 3 drawers (scrolling wheel): 16.5" x 16" x 22.5" (width,
depth, height): $6 or obo
4: Small cabinet/end table (scrolling wheel): 23"/17"(w/wo top plate) x 15"
x 25" (width, depth, height): $6 or obo
5: Book shelf: 24.5" x 9.5" x 36":... 阅读全帖
Royal Arches (15 pitches 5.7)
Matthes Crest 5.7 (Simul-climb most of the 1-mile traverse)
这两个就是两个long day了,是前后都需要take easy的long day
West Crack (4-pitch 5.8)
South Crack (7-pitch 5.8)
Commitement (3-pitch 5.9)
Jam Crack (second pitch 5.9) 我去年被人鄙视没爬这个了。据说很不错
这些加上一些附近的路线又是至少三天了
这些都在我们目前的能力范围之内。今年一个season还能涨一些。不过基本就这些了。
Valley很多off-width,这个要单独练。我去年爬了不少off-width,今年争取多lead些
off-width。如果off-width有长进可以爬爬Central Pillar of Frenzy (5-pitch 5.9
)。不过很多人都说这条是他们爬过的最难的5.9。
http://www.fuzzyyellowballs.com/video-tennis-lessons/serve/adva
serve-technique/the-various-serve-stances/
In the serve fundamentals section of FuzzyYellowBalls, we suggested you
use the party stance when you were first learning the serve because it’s
a very simple stance and lets you execute all of the fundamentals of the
serve. Not only is it simple, but it is also effective. Many pros,
including Roger Federer, use the party stance. To quickly review, the
party stance is where your feet are ab... 阅读全帖
犯懒的可以用谷歌翻译来翻译。
Achieve “Real” Flexibility For me, every practice, every workout, every
match starts the same way: ten to fifteen minutes of movement. That’s
running or biking in the fitness center, followed by dynamic stretching on
the sidelines. None of this is too intense—it’s just to warm up my muscles
. If I’m on the bike, it’s set on level 1 or 2. Because I must be
extremely aware of the potential for injury, I don’t play even a fun
exhibition charity match without a proper warm-up. Safety ... 阅读全帖
完整EXIF:
Dates
Taken on August 27, 2011 at 7.44am EDT
Posted to Flickr August 27, 2011 at 5.09PM PDT
Exif data
Camera Canon EOS 7D
Exposure 0.002 sec (1/500)
Aperture f/6.3
Focal Length 90 mm
ISO Speed 200
Exposure Bias 0 EV
Flash Off, Did not fire
Orientation Horizontal (normal)
X-Resolution 72 dpi
Y-Resolution 72 dpi
Date and Time (Modified) 2011:08:27 07:44:52
YCbCr Positioning Co-sited
Exposure Program Manual
Date and Time (Original) 2011:08:27 07:44:52
Date and Time (Digitized) 2011:08:2... 阅读全帖
Camera Canon EOS 7D
Exposure 0.003 sec (1/320)
Aperture f/2.8
Focal Length 50 mm
ISO Speed 100
Exposure Bias +1/3 EV
Flash Off, Did not fire
Orientation Rotate 90 CW
X-Resolution 72 dpi
Y-Resolution 72 dpi
Date and Time (Modified) 2011:07:09 18:01:28
YCbCr Positioning Co-sited
Exposure Program Aperture-priority AE
Date and Time (Original) 2011:07:09 18:01:28
Date and Time (Digitized) 2011:07:09 18:01:28
Metering Mode Multi-segment
S... 阅读全帖
Maybe you can consider comparing the widths of peaks (i.e. widths at the
half maxima of the peaks) in the probability distributions for tooth paste
and Xmas trees.
The width of the peaks of probability for products like Xmas tree will be
smaller than that for products like tooth paste and groceries.
If it is possible for a product to have multiple peaks in its probability
distribution, you might want to consider the mean of the widths.
3. Given the SAS data set SASUSER.HOUSES:
The following SAS program is submitted:
The following output is desired:
style price
CONDO $79,700
TWOSTORY $62,550
Which DEFINE statement completes the program and produces the desired output?
A.define style / width = 9;
B.define style / order width = 9;
C.define style / group width = 9;
D.define style / display width = 9;
Buy.Com has the Viewsonic VX2450wm-LED 24" LED LCD Monitor for $175 with FS
Link: http://www.buy.com/prod/viewsonic-vx2450wm-led-24-led-lcd-monitor-5-ms-16-9-1920-x-1080-16-7/q/loc/101/216928088.html
AND THIS IS NOT A REPOST, the other item is different.
ViewSonic's VX2450wm-LED features an LED backlight 24" (23.6"viewable)
widescreen monitor with up to 50% energy saving compared to a regular 24"
monitor. Environmentally friendly mercury free VX2450wm-LED offers a Full HD
1920x1080 resolution, 5... 阅读全帖