由买买提看人间百态

topics

全部话题 - 话题: parenthese
1 2 3 4 5 6 7 下页 末页 (共7页)
w***y
发帖数: 6251
1
来自主题: JobHunting版 - Leetcode上Longest Valid Parentheses
find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substring is "()", which has length
= 2.
Another example is ")()())", where the longest valid parentheses substring
is "()()", which has length = 4.
m*********a
发帖数: 3299
2
Given n pairs of parentheses, write a function to generate all combinations
of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()()()"
递归很容易
void generateParenthesisRecr(string str,int n,int l,int r,vector&
result){
if (l==n && r==n){
result.push_back(str);
return;
}
if (l if (l>r) generateParenthesisRecr(str+")",n,l,r+... 阅读全帖
a***e
发帖数: 413
3
Given n pairs of parentheses, write a function to generate all combinations
of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()()()"
Recursive 的写出来了,但DP的不知道怎么做,看了别人的code也不太懂,尤其是
for(int l=0;l buff[i].push_back(buff[j][k]+"("+buff[i-j-1][l]+")");
在做啥,为啥idx要i-j-1 等完全不清楚。
另外,大家有推荐学习DP的方法么?多谢
class Solution {
public:
vector generateParenthesis(int n) {
vecto... 阅读全帖
W********e
发帖数: 45
4
题目是leetcode上的Generate Parentheses。
不理解为什么有时候用DFS需要resize,有时候不需要。下面这第一种是resize了,
resize的意义是什么?:
void CombinationPar(vector& result, string& sample, int deep,
2: int n, int leftNum, int rightNum)
3: {
4: if(deep == 2*n)
5: {
6: result.push_back(sample);
7: return;
8: }
9: if(leftNum 10: {
11: sample.push_back('(');
12: CombinationPar(result, sample, deep+1, n, leftNum+1, righ... 阅读全帖
a*******t
发帖数: 41
5
来自主题: Database版 - delete characters between parentheses?
Hi,
I can do this in sql server -
select * where cln1 like '%(%)%'
however, if I want to delete the characters between parentheses, I can't use
replace( cln1, '(%)','').
Anyone knows how to do it?
Thanks a lot!
n**o
发帖数: 11
6
Dear all,
I am new to Latex and I am using the natbib package and \citet{} to cite the
papers. It is strange that the complied pdf shows "the paper is by Mike [
1998] ...". I expect to have the round parentheses. The document says the
round is default. I tried
\usepackage[round]{natbib}
I does not work. Can anyone show me how to correc it? Thank you so much.
My preamble is like this
\documentclass[11pt]{article}
\usepackage{natbib, amsmath, amssymb,graphicx, setspace,url, rotating}
\begin{docume
R*******c
发帖数: 249
7
搞了三四天了,还是没成功,实在是崩溃了。。。只能上来请大牛们帮忙看看问题出在哪?
从网上下载了一个R的package(一个zip文件),这个包是在mac上build的,在mac里运行没有
问题,我现在想在windows下用这个包,直接通过R里面的install package from local
zip file会有错误如下:
Error in gzfile(file, "r") : cannot open the connection
In addition: Warning messages:
1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip
file
2: In gzfile(file, "r") :
cannot open compressed file 'curves2_1.0.1.tar.gz/DESCRIPTION',
probable reason 'No such file or directory'
所以决定先将zip文件解压缩成文件夹,然后在windows下把这个包buil... 阅读全帖
o*q
发帖数: 630
8
来自主题: JobHunting版 - 请教leetcode高频题是哪些题
# Title Editorial Acceptance Difficulty Frequency
1
Two Sum 28.3% Easy
292
Nim Game 54.4% Easy
344
Reverse String 57.3% Easy
136
Single Number 52.2% Easy
2
Add Two Numbers 25.6% Medium
371
Sum of Two Integers 51.6% Easy
4
Median of Two Sorted Arrays
20.4% Hard
6
ZigZag Conversion 25.6% Easy
13
Roman to Integer 42.7% Easy
237
... 阅读全帖
l**********n
发帖数: 8443
9
来自主题: Programming版 - scala的def或val是冗余的
The compiler can infer the return type from what is being returned but it
can’t infer the types of the parameters so we’ll have to leave those
explicit specifications in.
We can however remove the return keyword to further reduce the amount of
ceremony in the method.
If we don’t use the return statement, the compiler will just assume that we
want to return the value of the last statement.
There's another consequence: in a subclass, you can override a def with a
val or a def, but you can only ove... 阅读全帖
W*****d
发帖数: 4196
10
【 以下文字转载自 Parenting 讨论区 】
发信人: xykkkk (asdf), 信区: Parenting
标 题: 这个极其优秀的华人学生却没有私立名校录取 (转载)
发信站: BBS 未名空间站 (Tue Apr 7 21:33:30 2015, 美东)
发信人: tvc (cc), 信区: USANews
标 题: 这个极其优秀的华人学生却没有私立名校录取
发信站: BBS 未名空间站 (Tue Apr 7 14:46:28 2015, 美东)
这里大概小娃的父母多,对上好大学的严峻情况不是非常了解。在这里 mysc1234给大
家看个今年的真实案例,从http://www.collegeconfidential.com 上找下来的,是个小中男。大家认真想想,若干年后,你们的孩子能有这个小中男这样优秀的成绩吗?相信对大部分的孩子来说是绝不可能的!但即使取得他这样优异的成绩,又能怎样??!!看看血淋淋的事实吧,听听他无助的呐喊,再想想该如何教育,引导你自己的孩子。
简介:
SAT 2400, 满分
不算AP课的GPA 3.96 (满分是4.00)
学校成绩排名... 阅读全帖
t*c
发帖数: 8291
11
这里大概小娃的父母多,对上好大学的严峻情况不是非常了解。在这里 mysc1234给大
家看个今年的真实案例,从http://www.collegeconfidential.com 上找下来的,是个小中男。大家认真想想,若干年后,你们的孩子能有这个小中男这样优秀的成绩吗?相信对大部分的孩子来说是绝不可能的!但即使取得他这样优异的成绩,又能怎样??!!看看血淋淋的事实吧,听听他无助的呐喊,再想想该如何教育,引导你自己的孩子。
简介:
SAT 2400, 满分
不算AP课的GPA 3.96 (满分是4.00)
学校成绩排名 top 5%
已修完AP课程 10 门,都是 5分 (满分),正在修另外 6门 AP 课程。
主要奖励: 西门子半决赛,ISTS半决赛, 以及其他数学和科学竞赛入围
课外活动:
马拉松队长,击剑队队长,数学协会主席,物理奥赛主席,还有另外五个协会的主席或
副主席, 多年暑假在大学做研究intern.
服务社区: 创立免费家教组织,还每周在敬老院做义工。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
04-05-2015 at 3:24 pm... 阅读全帖
f*********i
发帖数: 197
12
来自主题: JobHunting版 - LeetCode LongestValidParentheses
/*Given a string containing just the characters '(' and ')', find the length
of the longest valid (well-formed) parentheses substring.
* For "(()", the longest valid parentheses substring is "()", which
has length = 2.
* Another example is ")()())", where the longest valid parentheses
substring is "()()", which has length = 4.
* */
请问有没有好解法。多谢
e***s
发帖数: 799
13
来自主题: JobHunting版 - HashSet是不是不靠谱?
最近做题和看板上的帖子,个人觉得hash这个东西用来删除或避免重复是不是不靠谱。
因为有conflict。
比如一道leetcode的题
Generate Parentheses
//Given n pairs of parentheses, write a function to generate all
combinations of well-formed parentheses.
//For example, given n = 3, a solution set is:
//"((()))", "(()())", "(())()", "()(())", "()()()"
我想用DP,每次在前一个结果基础上 左边加"()",右边加"(),再把整个"(" + result
+ ")".
用HashSet来存放结果,每次加的时候自动排除重复。
我想问HashSet是不是不能保证100%正确? 正确的做法应该是怎么样了?
p*****2
发帖数: 21240
14
来自主题: JobHunting版 - 今天计划做20题

Id Question Difficulty Freqency Data Structures Algorithms
1 Two Sum 2 5
array
set
sort
two pointers
2 Add Two Numbers 3 4
linked list
two pointers
math
3 Longest Substring Without Repeating Characters 3 2
string
hashtable
two pointers
4 Median of Two Sorted Arrays 5 3
array
binary search
5 Longest Palindromic Substring 4 2
string
6 ZigZag Conversion 3 1
string
7 Reverse Integer 2 3
math
8 ... 阅读全帖
S********0
发帖数: 5749
15
来自主题: JobHunting版 - 发点面经回馈下本版的帮助
从去年11月份开始,一直在本版向各位大牛取经学习。 最近刚刚接了M家的offer,job
hunting终于告一段落,虽然失败了很多,面试拿的也少,但对于一个非cs phd的背景
,已经很知足了。我背景是engineering,主要就是写code,做模拟,能转行主要是因
为学了些并行计算的东西,研究中写了大量的code,读了我们这个领域的一个famous
open source code,从professional programmer里学到了很多实践经验。 虽然有些经
验,但实际找工作工程中大多数公司理都不会理我,Airbnb一个recruiter跟我说过一
些,大概意思就是说每天收到太多简历,对于非CS学生,仅仅从从简历上很难看出什么
, 所以非CS学生争取能多修几门cs的课,把keyword放上去。不然就像我一样,就是内
推也被拒或者石沉大海,这里面包括了很多本版好心的人帮我内推的,有ebay,
linkedin, twitter, oracle 等。 在这里也想对帮助过我的人说声谢谢,以后我也会
帮助国人。
leetcode是从去年11月份yahoo是onsite失败后开始刷的... 阅读全帖
t*****t
发帖数: 86
16
来自主题: JobHunting版 - 问一道Facebook近期电面题
Given a string with parentheses, return a string with balanced parentheses
by removing the fewest characters possible. You cannot add anything to the
string.
Examples:
balance("()") -> "()"
balance(")(") -> "".
balance("(((((") -> ""
balance("(()()(") -> "()()"
balance(")(())(") -> "(())"
注意:balance(")(())(") != "()()"
这题看上去比较像LeetCode的Longest Valid Parentheses,求大神们指教只用一个
stack怎么做?
s*********y
发帖数: 10
17
来自主题: JobHunting版 - 问一道Facebook近期电面题
OP asks for the longest subsequence, NOT substring. Stack is probably
inapplicable when dealing with subsequence, not substring as leetcode's
Longest Valid Parentheses. One solution is at http://stackoverflow.com/questions/26643697/longest-subsequence-of-balanced-parentheses. It computes the longest length, but can be easily changed to compute the longest subsequence by remembering all left and right parentheses whenever a pair is found.
m******4
发帖数: 503
18
来自主题: Parenting版 - 推娃先得推大环境
这里大概小娃的父母多,对上好大学的严峻情况不是非常了解。在这里我给大家看个今
年的真实案例,从http://www.collegeconfidential.com 上找下来的,是个小中男。大家认真想想,若干年后,你们的孩子能有这个小中男这样优秀的成绩吗?相信对大部分的孩子来说是绝不可能的!但即使取得他这样优异的成绩,又能怎样??!!看看血淋淋的事实吧,听听他无助的呐喊,再想想该如何教育,引导你自己的孩子。
(简单介绍下,这个可怜的小中男没有被这其中任何一所名校录取:Stanford, Duke,
Harvard, Caltech, UChicago, WashU,Northwestern, Yale, Princeton, Cornell,
Dartmouth, Columbia, MIT, Brown。 )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
04-05-2015 at 3:24 pm
Decision: Rejected
Objective:
[*] SAT I (breakdown): 2400 (800 R, 800 M, 800 W)
... 阅读全帖
m******4
发帖数: 503
19
来自主题: Parenting版 - 推娃先得推大环境
这里大概小娃的父母多,对上好大学的严峻情况不是非常了解。在这里我给大家看个今
年的真实案例,从http://www.collegeconfidential.com 上找下来的,是个小中男。大家认真想想,若干年后,你们的孩子能有这个小中男这样优秀的成绩吗?相信对大部分的孩子来说是绝不可能的!但即使取得他这样优异的成绩,又能怎样??!!看看血淋淋的事实吧,听听他无助的呐喊,再想想该如何教育,引导你自己的孩子。
(简单介绍下,这个可怜的小中男没有被这其中任何一所名校录取:Stanford, Duke,
Harvard, Caltech, UChicago, WashU,Northwestern, Yale, Princeton, Cornell,
Dartmouth, Columbia, MIT, Brown。 )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
04-05-2015 at 3:24 pm
Decision: Rejected
Objective:
[*] SAT I (breakdown): 2400 (800 R, 800 M, 800 W)
... 阅读全帖
u*****a
发帖数: 6276
20
来自主题: Parenting版 - 造假可耻
这个是原贴:
发信人: tvc (cc), 信区: USANews
标 题: 这个极其优秀的华人学生却没有私立名校录取
发信站: BBS 未名空间站 (Tue Apr 7 14:46:28 2015, 美东)
这里大概小娃的父母多,对上好大学的严峻情况不是非常了解。在这里 mysc1234给大
家看个今年的真实案例,从http://www.collegeconfidential.com 上找下来的,是个小中男。大家认真想想,若干年后,你们的孩子能有这个小中男这样优秀的成绩吗?相信对大部分的孩子来说是绝不可能的!但即使取得他这样优异的成绩,又能怎样??!!看看血淋淋的事实吧,听听他无助的呐喊,再想想该如何教育,引导你自己的孩子。
简介:
SAT 2400, 满分
不算AP课的GPA 3.96 (满分是4.00)
学校成绩排名 top 5%
已修完AP课程 10 门,都是 5分 (满分),正在修另外 6门 AP 课程。
主要奖励: 西门子半决赛,ISTS半决赛, 以及其他数学和科学竞赛入围
课外活动:
越野跑队长,击剑队队长,数学协会主席,物理奥赛主席,还有另外五个协会的主席或
副主... 阅读全帖
u*****a
发帖数: 6276
21
他进的藤校有:Columbia, Yale
http://talk.collegeconfidential.com/discussion/comment/18336253
YaleDad2019
Posts: 1
Registered User
New Member
04-07-2015 at 5:30 pm
Decision: Accepted
(Posted for my son)
Objective:
[*] SAT I (breakdown): 2300 (750 R, 800 M, 750 W)
[*] ACT (breakdown): 34C
[*] SAT II: 800 Math, 740 Chemistry
[*] Unweighted GPA (out of 4.0): 3.96 UW
[*] Rank (percentile if rank is unavailable): Top 3% of class, 300+ class
[*] AP (place score in parentheses): English Language (5), Calculus... 阅读全帖
s*****e
发帖数: 6053
22
来自主题: Parenting版 - [合集] 对爬藤这件事的新认识
☆─────────────────────────────────────☆
uvachja (鹤立鸡群) 于 (Fri Apr 10 10:46:22 2015, 美东) 提到:
他进的藤校有:Columbia, Yale
http://talk.collegeconfidential.com/discussion/comment/18336253
YaleDad2019
Posts: 1
Registered User
New Member
04-07-2015 at 5:30 pm
Decision: Accepted
(Posted for my son)
Objective:
[*] SAT I (breakdown): 2300 (750 R, 800 M, 750 W)
[*] ACT (breakdown): 34C
[*] SAT II: 800 Math, 740 Chemistry
[*] Unweighted GPA (out of 4.0): 3.96 UW
[*] Rank (percentile if rank is unavailable)... 阅读全帖
l****z
发帖数: 29846
23
【 以下文字转载自 USANews 讨论区 】
发信人: tvc (cc), 信区: USANews
标 题: 这个极其优秀的华人学生却没有私立名校录取
发信站: BBS 未名空间站 (Tue Apr 7 14:46:28 2015, 美东)
这里大概小娃的父母多,对上好大学的严峻情况不是非常了解。在这里 mysc1234给大
家看个今年的真实案例,从http://www.collegeconfidential.com 上找下来的,是个小中男。大家认真想想,若干年后,你们的孩子能有这个小中男这样优秀的成绩吗?相信对大部分的孩子来说是绝不可能的!但即使取得他这样优异的成绩,又能怎样??!!看看血淋淋的事实吧,听听他无助的呐喊,再想想该如何教育,引导你自己的孩子。
简介:
SAT 2400, 满分
不算AP课的GPA 3.96 (满分是4.00)
学校成绩排名 top 5%
已修完AP课程 10 门,都是 5分 (满分),正在修另外 6门 AP 课程。
主要奖励: 西门子半决赛,ISTS半决赛, 以及其他数学和科学竞赛入围
课外活动:
马拉松队长,击剑队队长,数学协会主席,物理奥赛主... 阅读全帖
b*x
发帖数: 5456
24
【 以下文字转载自 USANews 讨论区 】
发信人: tvc (cc), 信区: USANews
标 题: 这个极其优秀的华人学生却没有私立名校录取
发信站: BBS 未名空间站 (Tue Apr 7 14:46:28 2015, 美东)
这里大概小娃的父母多,对上好大学的严峻情况不是非常了解。在这里我给大家看个今
年的真实案例,从http://www.collegeconfidential.com 上找下来的,是个小中男。大家认真想想,若干年后,你们的孩子能有这个小中男这样优秀的成绩吗?相信对大部分的孩子来说是绝不可能的!但即使取得他这样优异的成绩,又能怎样??!!看看血淋淋的事实吧,听听他无助的呐喊,再想想该如何教育,引导你自己的孩子。
简介:
SAT 2400, 满分
不算AP课的GPA 3.96 (满分是4.00)
学校成绩排名 top 5%
已修完AP课程 10 门,都是 5分 (满分),正在修另外 6门 AP 课程。
主要奖励: 西门子半决赛,ISTS半决赛, 以及其他数学和科学竞赛入围
课外活动:
马拉松队长,击剑队队长,数学协会主席,物理奥赛主席,还有另外五个... 阅读全帖
l*******s
发帖数: 7316
25
A_n = {n pairs of valid parentheses}
B_n = {321-avoiding permutations in S_n}
For any a_i in A_i, c(a_i) is defined as number of pairs of
parentheses in a_i which are not within any other parentheses.
For any a_n in A_n, (c(a_n,1),c(a_n,2),...c(a_n,n)) is called
construction sequence of a_n,
where a_n,i is sub-sequence of a_n made of of first i ")"s
and their corresponding "("s.
For example the construction sequence of ()(()) is (1,2,2)
For any b_i in B_i, c(b_i) is defined as maximum number ele... 阅读全帖
h**i
发帖数: 712
26
来自主题: Programming版 - int (*b)[2]; 是什么意思?
这么着名的东西居然没有普及
右左法则:首先从最里面的圆括号看起,然后往右看,再往左看。每当遇到圆括号时,
就应该掉转阅读方向。一旦解析完圆括号里面所有的东西,就跳出圆括号。重复这个过
程直到整个声明解析完毕。
The right-left rule: Start reading the declaration from the
innermost parentheses, go right, and then go left. When
you encounter parentheses, the direction should be reversed.
Once everything in the parentheses has been parsed, jump
out of it. Continue till the whole declaration has been
parsed.
c*********s
发帖数: 63
27
终于弄好了。把下面的存成.bst文件,和Tex文件放在同一个文件夹就可以了。
%%
%% This is file `cellnew.bst',
%% generated with the docstrip utility, by HJ, 03/03/2013.
%%
%% The original source files were:
%%
%% merlin.mbs (with options: `ay,nat,nm-rvvc,nmlm,x10,x0,m10,m0,mcite,mct-1
,mct-x2,keyxyr,blkyear,dt-beg,yr-par,note-yr,atit-u,jttl-rm,thtit-a,vol-it,
vnum-x,volp-com,pp-last,num-xser,jnm-x,btit-rm,bt-rm,add-pub,pub-par,pre-pub
,edby,edbyy,blk-tit,ppx,ed,abr,ednx,xedn,jabr,url,url-blk,em-it,nfss,')
%% ----------------------... 阅读全帖
c*********s
发帖数: 63
28
终于弄好了。把下面的存成.bst文件,和Tex文件放在同一个文件夹就可以了。
%%
%% This is file `cellnew.bst',
%% generated with the docstrip utility, by HJ, 03/03/2013.
%%
%% The original source files were:
%%
%% merlin.mbs (with options: `ay,nat,nm-rvvc,nmlm,x10,x0,m10,m0,mcite,mct-1
,mct-x2,keyxyr,blkyear,dt-beg,yr-par,note-yr,atit-u,jttl-rm,thtit-a,vol-it,
vnum-x,volp-com,pp-last,num-xser,jnm-x,btit-rm,bt-rm,add-pub,pub-par,pre-pub
,edby,edbyy,blk-tit,ppx,ed,abr,ednx,xedn,jabr,url,url-blk,em-it,nfss,')
%% ----------------------... 阅读全帖
e**c
发帖数: 195
29
来自主题: JobHunting版 - amazon电面大家是怎么读代码的
马上要amazon电面了,听说要电话里朗读自己写的代码,感觉很奇怪。大家是怎么读的
?比如
for (i=0;i 真的读成
for Parentheses i equal to 0 semicolon i less than n semicolon i plus plus
parentheses
吗?
另外有些字符我刚刚知道怎么读,例如&在wiki上是ampersand。这是美国人都理解的读
法吗?类似的字符还很多。
困惑呀!!!
j***y
发帖数: 2074
30
来自主题: JobHunting版 - 这题哪错了?

如果能写成这样,那么就可以写成int fun(int **p)了。
记得int main(int argc, char *argv[])也可以写成int main(int argc, char **argv)
Chevy提供的是正确的用法。
相似的例子在K&R的书上也有:
If a two-dimensional array is to be passed to a function, the parameter
declaration in the function must include the number of columns; the number
of rows is irrelevant, since what is passed is, as before, a pointer to an
array of rows, where each row is an array of 13 ints. In this particular
case, it is a pointer to objects that are arrays of 13 ints. Thus i... 阅读全帖
i**********e
发帖数: 1145
31
来自主题: JobHunting版 - 总结版上常见的面实题
F:
3Sum
Add Binary
Combination Sum
Count and Say
Divide Two Integers
Edit Distance
Implement strStr()
Letter Combinations of a Phone Number
Longest Palindromic Substring
Merge Intervals
Multiply Strings
Next Permutation
Permutations, Permutations II
Regular Expression Matching
Remove Duplicates
Remove Element
Search in Rotated Sorted Array
String to Integer (atoi)
Sqrt(x)
Substring with Concatenation of All Words
Trapping Rain Water
Unique Paths, Unique Paths II
G:
3Sum
Climbing Stairs
Container... 阅读全帖
s*****n
发帖数: 162
32
来自主题: JobHunting版 - 生成树
抛个砖。
n个节点的树和n对valid parentheses是一一对应的。可以每生成一个valid
parentheses string,然后生成一棵BST。
h*******8
发帖数: 29
33
来自主题: JobHunting版 - G intern电面面经
的确variance很大。我被问了三题,都是leetcode。2sum, generate parentheses 和
parentheses matching。
话说intern面试会不会参考题目难度评分啊?
j********r
发帖数: 127
34
来自主题: JobHunting版 - 一道facebook面试题
dp solution
public String getValidPair(String inp){
int len = inp.length();
if (len <= 0) return inp;
char[] cInp = inp.toCharArray();
int[] v = new int[len]; // longest valid parentheses ending
at current ind
int count = 0; // number of unmatched left parenthese
for (int i = 0; i < len; i++){
if (cInp[i] == '(') count++;
else if (cInp[i] == ')'){
if (count > 0){
... 阅读全帖
o*q
发帖数: 630
35
来自主题: JobHunting版 - G家leetcode题
Google
Show problem tags Hide locked problems
#
Title
Acceptance
Difficulty
Frequency
66 Plus One 35.4% Easy
146 LRU Cache 15.8% Hard
200 Number of Islands 29.7% Medium
288 Unique Word Abbreviation 15.7% Easy
163 Missing Ranges 30.3% Medium
56 Merge Intervals 26.7% Hard
228 Summary Ranges 26.0% Medium
308 Range Sum Query 2D - Mutable 20.8% Hard
279 Perfect Squares 34.1% Medium
388 L... 阅读全帖

发帖数: 1
36
来自主题: JobHunting版 - 求FB 面试 leetcode题目列表
534 Design TinyURL 0.0% Medium
283 Move Zeroes 50.7% Easy
301 Remove Invalid Parentheses 35.5% Hard
273 Integer to English Words 22.4% Hard
621 Task Scheduler 42.4% Medium
67 Add Binary 33.2% Easy
325 Maximum Size Subarray Sum Equals k 43.1% Medium
689 Maximum Sum of 3 Non-Overlapping Subarrays 41.2% Hard
253 Meeting Rooms II 39.3% Medium
17 Letter Combinations of a Phone Number 35... 阅读全帖
n******d
发帖数: 159
37
来自主题: CouchPotato版 - Top 20 Primetime Shows last week
Prime-time viewership numbers compiled by Nielsen Media Research for Oct. 1-
7. Listings include the week's ranking, with viewership for the week and
season-to-date rankings in parentheses. An "X" in parentheses denotes a one-
time-only presentation.
1. (1) "CSI: Crime Scene Investigation," CBS, 20.97 million viewers.
2. (2) "Dancing With the Stars" (Monday), ABC, 20.21 million viewers.
3. (3) "Grey's Anatomy" (Thursday), ABC, 18.51 million viewers.
4. (5) "NBC Sunday Night Football: Chicago at
n******d
发帖数: 159
38
来自主题: CouchPotato版 - Primetime rating Oct.15-21
Prime-Time viewership numbers compiled by Nielsen Media Research for Oct. 15
-21. Listings include the week's ranking, with viewership for the week and
season-to-date rankings in parentheses. An "X" in parentheses denotes a one-
time-only presentation.
1. (1) "CSI: Crime Scene Investigation," CBS, 21.22 million viewers.
2. (2) "Dancing with the Stars" (Monday), ABC, 19.40 million viewers.
3. (X) MLB ALCS Game 7 (Cleveland at Boston), Fox, 19.15 million viewers.
4. (4) "Desperate Housewives," ABC
g*****x
发帖数: 3283
39
来自主题: PhotoGear版 - 要填税表了。烦人啊。。。
自己去看irs官网,写得非常清楚:http://www.irs.gov/publications/p519/ch09.html
In most cases, you also will not need to report the income on your Form 1040
because the income will be exempt from U.S. tax under the treaty. However,
if the income has been reported as taxable income on a Form W-2, Form 1042-S
, Form 1099, or other information return, you should report it on the
appropriate line of Form 1040 (for example, line 7 in the case of wages or
salaries). Enter the amount for which treaty benefits are clai... 阅读全帖
S**I
发帖数: 15689
40
LATEX accepts only pairs of parentheses for one line and has an “empty”
parentheses, the dot“\left.” or “\right.” to get only one of the “pair
”.
e****i
发帖数: 2152
41
25.9.082008 Federal Budget
Total receipts
Estimated receipts for fiscal year 2008 were $2.66 trillion.
$1.25 trillion - Individual income tax
$927.2 billion - Social Security and other payroll taxes
$314.9 billion - Corporate income tax
$68.1 billion - Excise taxes
$29.2 billion - Customs duties
$25.7 billion - Estate and gift taxes
$50.7 billion - Other
Total spending
Further information: Government spending
A pie chart representing spending by category for the US budget for 2008
The President'... 阅读全帖
y***e
发帖数: 676
42
提供了很多信息,慢慢看
CHENGDU B1/B2 VALIDATION STUDY
¶1. (U) SUMMARY: Consulate Chengdu's Fraud Prevention Unit
(FPU) conducted a validation study of all private Chinese
passport holders who were issued B1/B2 visas in CY2008. Based
on a review and analysis of 800 randomly-selected visa
issuances, the illegal overstay rate was found to be 2.0
percent. Nearly half of the applicants who illegally overstayed
their visas were parents going to visit children living in the
United States. Most of the ot... 阅读全帖
l*****7
发帖数: 8463
43
来自主题: Military版 - 造假: 美国第一!!! 哈哈
造假: 美国第一!!! 哈哈
http://www.mandatory.com/2012/11/13/ok-cupid-an-exploration-int
OK Cupid: An Exploration Into Just How Low Some Guys Will Go
Related:Funny, OkCupid, online dating, Sex and Dating
By Rob FeeNov 13, 2012
A friend of mine recently signed up for OKCupid (for those who might be
unaware: an online dating site) and was constantly telling me about all the
bizarre and pathetic lines guys try to use on her via instant message. She
would very blatantly shoot them down and yet they would co... 阅读全帖
d**e
发帖数: 2420
44
和平光辉的博客
http://blog.sina.com.cn/u/2059669381
Ping Fu wrote a book, Bend Not Break, and had many interviews, talking about
her extraordinary stories and her life experiences in China during the
Culture Revolution, more than 40 years ago. Many Chinese, including the
prominent anti-fraud celebrity, Dr. Zhouzi Fang, believe she has been
telling lies. How can you tell her personal experiences some 30-40 years ago
are lies? This appears to be mission impossible. Yet, as Dr. Fang has done
so repeatedly... 阅读全帖

发帖数: 1
45
看洗地: 希拉里不懂(C) 代表Classified。 有一般智商的都应该懂的啊。再说
Classified 整个词还出现在电邮内容一开头。
FBI Director James Comey on Thursday said it was not clear whether Hillary
Clinton fully understood the government’s marking system for classified
messages.
During a House Oversight Committee hearing, Rep. Mark Meadows (R-N.C.)
pressed Comey about whether he was testifying that Clinton didn’t know what
a classified marking is.
“No, not that she would have no idea what a classified marking would be,”
Comey responded. “It’s an ... 阅读全帖
N*******r
发帖数: 935
46
大家给个好。
妈的,没我刚买的Subaru legacy。
Here are the Consumer Reports top-rated vehicles in ten categories (with
previous years’ top cars in parentheses):
•Pickup Truck: Chevrolet Silverado 1500 (2009: Chevrolet Avalanche,
2008: Chevrolet Silverado 1500, no pick in 2007)
•Sporty Car (formerly Fun-to-drive): Volkswagen GTI (2007-2009: Mazda
MX-5 Miata)
•Small sedan: Hyundai Elantra SE (2008-2009: Hyundai Elantra SE, 2007:
Honda Civic)
•Family sedan: Nissan Altima (2007-2009: Honda A
m*********t
发帖数: 1250
47
lz完全没意识到VA的法律严格,你朋友在限速(65/70?)的I-81上10分钟内连续两次
Reckless
Driving,情节非常严重,几乎肯定是必须请律师,所以你才会收到律师的咨询信件~
5年前在VA读书的时候,我一个身边很好的朋友就是在I-81上开到85以上吃ticket,最
后花了好像6、700刀请了律师求情,最后还是要强制执行社区服务,否则有criminal
driving record影响绿卡申请,虽然是5年前的事情了,但记忆犹新。
Good luck!
http://www.dmv.virginia.gov/drivers/#points_6.asp
The number of years that the conviction stays on your DMV record is in
parentheses beside each violation. An asterisk (*) indicates that the
conviction remains on your record permanently. Demerit points will also ... 阅读全帖
I**********s
发帖数: 441
48
来自主题: JobHunting版 - Google点面
问了1) 研究, 2) 多线程程序设计, 3) 任意无穷字符串流, 内存有限, 找出唯一一对
重复字符串, 这个我说了哈希表和外部排序, 但是面试人说有更好的办法(后来想也许
是bloom filter), 然后追问外部排序的细节到结束. 估计要挂 :(
总结: 面试既是技术活, 又是运气活.
无论如何, 把我的准备工作放下面, 攒点rp, 希望对大家有所帮助.
Interview Qs
Data Structures
1. Integer
- find number of 1s
- next largest smaller
- smallest larger number
- determine if is palindrom
- itoa, atoi
- add 2 numbers w/o using + or arithmetic operators
- implement *, -, / using only +
- find max of two numbers w/o co... 阅读全帖
l*y
发帖数: 21010
a***c
发帖数: 2443
50
来自主题: JobHunting版 - 问个碰到的c语言面试题
fuck this shit, parentheses are all you need
1 2 3 4 5 6 7 下页 末页 (共7页)