由买买提看人间百态

topics

全部话题 - 话题: elses
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
p*****2
发帖数: 21240
1
来自主题: JobHunting版 - 今天遇到的一个面试题
def split(arr:Array[Int], x: Int):Int = {
def loop(s: Int, c1: Int, e: Int, c2: Int): Int = {
if(s == e){
if(arr(s)==x && c1==c2+1 || arr(s)!=x && c1==c2+1) s-1
else if(arr(s)==x && c1+1==c2 || arr(s)!=x && c1==c2) s
else -1
}
else if(c1==c2) loop(s+1, c1+ (if(arr(s)==x) 1 else 0), e, c2)
else loop(s, c1, e-1, c2+ (if(arr(e)!=x) 1 else 0))
}
loop(0, 0, arr.length-1, 0)
}
Q********3
发帖数: 143
2
来自主题: JobHunting版 - G家onsite 随机数一题
以下程序有bug
int r = myRandom(100,bl);的时候,得到error>0
public class BlacklistRandom {
public static void main(String[] args) {
List bl = new ArrayList();
bl.add(2);
bl.add(4);
bl.add(6);
bl.add(9);
int error = 0;
for(int i=0;i<10000;i++){
int r = myRandom(10,bl);
if(r == 2 ||r == 4 || r == 6 || r == 9){
System.out.println(r);
error ++;
}
}
Sys... 阅读全帖
Q********3
发帖数: 143
3
来自主题: JobHunting版 - G家onsite 随机数一题
以下程序有bug
int r = myRandom(100,bl);的时候,得到error>0
public class BlacklistRandom {
public static void main(String[] args) {
List bl = new ArrayList();
bl.add(2);
bl.add(4);
bl.add(6);
bl.add(9);
int error = 0;
for(int i=0;i<10000;i++){
int r = myRandom(10,bl);
if(r == 2 ||r == 4 || r == 6 || r == 9){
System.out.println(r);
error ++;
}
}
Sys... 阅读全帖
n****5
发帖数: 81
4
来自主题: JobHunting版 - fb电面面经
用 C 写了一下,用的递归来处理商和余数。用的unsigned int所以假定输入小于1百万
X1百万
#include
#include
const char* tens[] = {"Twenty", "Thirty", "Forty", "Fifty", "Sixty", "
Seventy", "Eighty", "Ninety"};
const char* lt20[] = {"Zero", "One", "Two", "Three", "Four", "Five", "Six",
"Seven", "Eight", "Nine", "Ten",
"Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "
Sixteen", "Seventeen", "Eighteen", "Nineteen"};
void num2str(unsigned int num)
{
if (num == 0)
return;
el... 阅读全帖
t********n
发帖数: 611
5
来自主题: JobHunting版 - 为啥大家都说刷题无用呢
import java.util.HashMap;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.File;
import java.util.*;
public class Cluster4{
public static void main(String args[]) throws FileNotFoundException,
IOException{
long startTime = System.currentTimeMillis();
String line;
String path = "/Users/***/documents/java/coursera_2/week_2/
problem_2/clustering_big.txt";
File nodeFile = ne... 阅读全帖
b*******w
发帖数: 56
6
来自主题: JobHunting版 - 问个facebook的题目
def search(self, pattern):

if not pattern:
return [''] if self.isTerminal() else []
matches = []
if pattern == '*':
if self.isTerminal():
matches.append('')

for letter in string.lowercase:
child = self.getChildForLetter(letter)
if child:
matches.extend([(letter + m) for m in child.search(pattern)])
else:
met_wildcard = True if pattern[0] == "*" else False

for let... 阅读全帖
S*******C
发帖数: 822
7
a+b不match b,但很多test case通不过,看看怎么回事
public class Solution {
public boolean match(String s, String p) {
return match(s, 0, p, 0);
}
private boolean match(String s, int i, String p, int j) {
if (j >= p.length() - 1) {
return i >= s.length() - 1;
} else if (i >= s.length() - 1) {
return j >= p.length() - 1;
}
if (p.charAt(j + 1) == '*') {
// match(s+1, p) - match next char in s.
// match(s, p+2) - mat... 阅读全帖

发帖数: 1
8
不知道对不对 大概跑了几个test case貌似没啥问题
public static int decodeWays(String s) {
if (s == null || s.length() == 0) return 0;
int[] dp = new int[s.length() + 1];
dp[s.length()] = 1;
for (int i = s.length() - 1; i >= 0; i--) {
if (s.charAt(i) == '0') dp[i] = 0;
else if (s.charAt(i) != '*') {
dp[i] += dp[i + 1];
if (i + 1 < s.length()) {
if (s.charAt(i + 1) != '*') {
int num = (s... 阅读全帖
z*********n
发帖数: 1451
9
直接上干货, leetcode已经有这题了 (* 代表1~9 而非0~9),这是我过了的一个解:
class Solution {
int base = 1000000007;
public:
int numDecodings(string s) {
//last1: decode ways of s ending at i-1, last2 decode ways of s
ending at i-2, nlast1 : next last1.
long long last1 = 1, last2 = 1, nlast1 = 0; //there is only 1 way to
decode "", so initialized with 1.
for (int i = 0; i < s.size(); ++ i)
{
//Just look at current character
if (s[i] == '*')
nla... 阅读全帖
t******d
发帖数: 1383
10
来自主题: JobHunting版 - 这个isNumber错在哪里?
做了个望上的测试,结果昨天晚上做了,今天被据了。请刷了poj的看看。 这哪里还有
bug?
跑出来的结果是
the number 007 is a number: false
the number 0.5 is a number: true
the number .01 is a number: true
the number 9. is a number: true
the number 1.000 is a number: true
the number 00.5 is a number: false
the number -.005000 is a number: true
我看着没问题
public class IsNumber {
/**
* The IsNumber function takes a String and returns true if that string
is a number, and false otherwise.
* This implementation, however, has several bugs in ... 阅读全帖

发帖数: 1
11
简化版只输出一个答案可以用counter做。
如果是301原题输出所有解那就要dfs了,dfs比bfs省空间,并且不需要set来去重,看
起来更elegant。DFS之前要先count一下需要删除多少个。时间复杂度是O(N^k), k是需
要删除的括号数。当然是需要删除的越多,解就越多,复杂度就越高。上code:
class Solution {
public List removeInvalidParentheses(String s) {
int leftRemove = 0;
int rightRemove = 0;
int open = 0;
for (int i = 0; i < s.length(); ++i) {
char cur = s.charAt(i);
if (cur == '(') {
open++;
} else if (cur == ')') {
... 阅读全帖
W******e
发帖数: 3319
12
1. Introduction
My interest in studying creativity was inspired by the frustrations that I
felt as a student, then as a professor. I wanted to know how I could
encourage creativity in myself, my students, and my colleagues.
Politicians, industrial managers, academic administrators, and other leaders
often say that innovation is critical to the future of civilization, our
country, their company, etc. But in practice, these same people often act as
if innovation is an evil that must be suppressed,... 阅读全帖
c******i
发帖数: 4091
13
成篇于1961,你不得不佩服少数智者对于未来的洞察力。一如1984的作者,勇敢新世界
的作者,等等
故事背景是所有高于平均智商者都要在耳朵里装上一个干扰器发出随机噪音以干扰佩戴
者的思绪,结果降低智商至平均之下。
不仅是高智商要被降低,美丽女子也必须要戴上面具,但目的是为了“平权”,俊美的
兰陵王和狄青戴上狰狞面具杀敌的故事是不会在这个乌托邦里流传了。
aa的本质就是想搞均智愚,口号是造反有理傻婢万岁。
http://www.tnellen.com/cybereng/harrison.html
HARRISON BERGERON
by Kurt Vonnegut, Jr.
THE YEAR WAS 2081, and everybody was finally equal. They weren't only equal
before God and the law. They were equal every which way. Nobody was smarter
than anybody else. Nobody was better looking than anybody ... 阅读全帖
y****r
发帖数: 3036
14
来自主题: Boston版 - [合集] LAO XI AN
☆─────────────────────────────────────☆
townboss (tboss) 于 (Wed Oct 10 18:53:18 2012, 美东) 提到:
First of all, I am from Xi'An. I live in Boston and commute to Lowell for
work everyday.
I didn't want to say anything but this has been ridiculous. If you
opened and run a restaurant no matter who comes to you it is gonna be your
customer. Again customer. If you don't treat your customer like a king as
should be, at least treat him/her the way you like to be treated.
But now what i saw is, a c... 阅读全帖
p***r
发帖数: 4859
15
来自主题: Running版 - [合集] Challenge Invite
☆─────────────────────────────────────☆
winndixie (because of) 于 (Thu Jan 14 11:32:18 2010, 美东) 提到:
Everybody tries to run 13.1 mi by 1/18/2010.
If you cannot finish 13.1 mi in one run, spread out
in several runs would be ok.
Who's in?
☆─────────────────────────────────────☆
whxhm1 (whxhm) 于 (Thu Jan 14 11:34:21 2010, 美东) 提到:
why the 18th?

☆─────────────────────────────────────☆
winndixie (because of) 于 (Thu Jan 14 11:36:27 2010, 美东) 提到:
Nothing special about 18th. Just allow a w... 阅读全帖
L*****e
发帖数: 2926
16
http://youtu.be/iMVc0vG4K_k
前几天在车上无意听到
很喜欢
Hero by Family of the Year from the album Loma Vista
Let me go
I don't wanna be your hero
I don't wanna be your big man
I just wanna fight with everyone else
Your masquerade
I don't wanna be a part of your parade
Everyone deserves a chance to
Walk with everyone else
While holding down
A job to keep my girl around
Maybe buy me some new strings
And her a night out on the weekend
We can whisper things
Secrets from our American dreams
Baby needs some protec... 阅读全帖
R******k
发帖数: 4756
17
来自主题: LeisureTime版 - 少年时代 - 温柔的怀旧之旅
第一次听说“Boyhood”,是大约半年多前。灌水聊天的时候, 圣艾芙说这片子不错。
圣艾芙集文青和愤青于一体,极少听伊赞扬任何东西。于是便在莫名惊诧之中记住了这
片子,准备等有空去找来看看。这一等,竟是。。。(本来想写生离死别,但写之前特
意核实了一下,发现伊居然还没有自杀ID。。。)
很喜欢这电影。但看完后仔细回想了一下,发现这片子的情节似乎并没有很特别的地方
,只是一个普普通通的男孩长大成人的故事。没有凶杀,没有色情,没有SM,没有挥金
如土的富家公子/土豪,更没有美丽纯洁的玛丽苏。
我不禁问自己,是什么,让我如此地被这部电影所吸引和感动?
我觉得这正是导演 Richard Linklate 的过人之处。他能在不知不觉中, 把你和电影中
的人物拉得很近很近,甚至让你不由自主地代入进去。
从电影中我看到了男主角在成长过程中所遇到的种种困惑和挣扎。同样的困惑和挣扎,
我或多或少也经历过,所以感同身受,唏嘘不已。虽然曾经是身上的伤痕,但历时已久
,抚摸起伤疤时,已不再疼痛,反而感到很温暖很怀念。
我相信许多做父母的都希望能给自己的孩子一个完美的童年。但事实上,我们大多数人
的童年都离完... 阅读全帖
l*y
发帖数: 21010
18
来自主题: Rock版 - bernard sumner interview 1994
www.jonsavage.com/film
Bernard Sumner
[interview, April 1994]
Bernard onstage
Bernard Albrecht Sumner
I first met Ian at a gig at the Electric Circus. It might have been the
Anarchy tour, it might have been The Clash, or one of them punk groups. Ian
was with another lad called Ian, and they both had donkey jackets, and Ian
had “HATE” written on the back of his donkey jacket. I remember liking him
. He seemed pretty nice, but we didn’t talk to him that much. I just
remembered him. Later on, about... 阅读全帖
a********8
发帖数: 141
19
来自主题: Sound_of_Music版 - 【Hero】 - Family of the Year
【Hero】 - Family of the Year
歌词:
Let me go
I don't wanna be your hero
I don't wanna be your big man
I just wanna fight with everyone else
Your masquerade
I don't wanna be a part of your parade
Everyone deserves a chance to
Walk with everyone else
While holding down
A job to keep my girl around
Maybe buy me some new strings
And her a night out on the weekend
We can whisper things
Secrets from our American dreams
Baby needs some protection
But I'm a kid like everyone else
So let me go
I don't wanna... 阅读全帖
a********8
发帖数: 141
20
来自主题: Sound_of_Music版 - 【Hero】 - Family of the Year
【Hero】 - Family of the Year
歌词:
Let me go
I don't wanna be your hero
I don't wanna be your big man
I just wanna fight with everyone else
Your masquerade
I don't wanna be a part of your parade
Everyone deserves a chance to
Walk with everyone else
While holding down
A job to keep my girl around
Maybe buy me some new strings
And her a night out on the weekend
We can whisper things
Secrets from our American dreams
Baby needs some protection
But I'm a kid like everyone else
So let me go
I don't wanna... 阅读全帖
s********n
发帖数: 4346
21
来自主题: WaterWorld版 - 反对同性恋结婚的流行理由
The Arguments Against Gay Marriage
Well, of course there are a lot of reasons being offered these days for
opposing gay marriage, and they are usually variations on a few well-
established themes. Interestingly, the Supreme Court in Hawaii has heard
them all. And it found, after due deliberation, that they didn't hold water.
Here's a summary of the common reasons given:
1. Marriage is an institution between one man and one woman. Well, that's
the most often heard argument, one even codified in a... 阅读全帖
C****a
发帖数: 7186
22
来自主题: WebRadio版 - 电影Boyhood原声带
Family of the Year - Hero
http://www.youtube.com/watch?v=mYFaghHyMKc
Let me go
I don't wanna be your hero
I don't wanna be your big man
I just wanna fight with everyone else
Your masquerade
I don't wanna be a part of your parade
Everyone deserves a chance to
Walk with everyone else
While holding down
A job to keep my girl around
Maybe buy me some new strings
And her a night out on the weekend
We can whisper things
Secrets from our American dreams
Baby needs some protection
But I'm a kid like eve... 阅读全帖
G******U
发帖数: 4211
23
Bill Zeller
I have the urge to declare my sanity and justify my actions, but I assume I'
ll never be able to convince anyone that this was the right decision. Maybe
it's true that anyone who does this is insane by definition, but I can at
least explain my reasoning. I considered not writing any of this because of
how personal it is, but I like tying up loose ends and don't want people to
wonder why I did this. Since I've never spoken to anyone about what happened
to me, people would likely draw ... 阅读全帖
c****t
发帖数: 19049
24
来自主题: SciFiction版 - 云图 英文版
HALF-LIVES
the first luisa rey
mystery
I
Rufus Sixsmith leans over the balcony and estimates his body’s velocity
when it hits the
sidewalk and lays his dilemmas to rest. A telephone rings in the unlit room.
Sixsmith dares not
answer. Disco music booms from the next apartment, where a party is in full
swing, and
Sixsmith feels older than his sixty-six years. Smog obscures the stars, but
north and south
along the coastal strip, Buenas Yerbas’s billion lights simmer. West, the
Pacific eternity East... 阅读全帖
A**n
发帖数: 1703
25
遗书:
Bill Zeller
I have the urge to declare my sanity and justify my actions, but I assume I'll never be able to convince
anyone that this was the right decision. Maybe it's true that anyone who does this is insane by definition,
but I can at least explain my reasoning. I considered not writing any of this because of how personal it is,
but I like tying up loose ends and don't want people to wonder why I did this. Since I've never spoken to
anyone about what happened to me, people would likely dr... 阅读全帖
n********n
发帖数: 8336
26
来自主题: TrustInJesus版 - Free Will and Determinism (ZT)
Determinism, free will and compatibilism
by Tim Harding
The idea that the future is already determined is known in philosophy as
determinism. There are various definitions of determinism available; but in
this essay, I shall use the Stanford Encyclopedia of Philosophy definition,
which is ‘the metaphysical thesis that the facts of the past, in
conjunction with the laws of nature, entail every truth about the future’ (
McKenna, 2009:1.3).
This idea presents a difficult problem for the concept of... 阅读全帖
g**u
发帖数: 504
27
我把完整代码贴出来吧,这个是BSTree.h文件如下:
#include
#include
using namespace std;
template
class BinarySearchTree
{
public:
struct tree_node
{
tree_node* left;
tree_node* right;
T data;
};
public:
BinarySearchTree(){ root = NULL; }
bool isEmpty() const { return root==NULL; }
void insert(T);
void print_search(T);
private:
tree_node* search(tree_node*,T);
private:
tree_node* root;
};
template
void BinarySearchTree<... 阅读全帖
B*****g
发帖数: 34098
28
来自主题: Database版 - 怎么变 2D的table为3D 的
suppose month is 1 to 6,
suppose usage is number
SELECT t.function,
SUM(CASE t.month WHEN 1 THEN t.usage ELSE 0 END) MONTH_1,
SUM(CASE t.month WHEN 2 THEN t.usage ELSE 0 END) MONTH_2,
SUM(CASE t.month WHEN 3 THEN t.usage ELSE 0 END) MONTH_3,
SUM(CASE t.month WHEN 4 THEN t.usage ELSE 0 END) MONTH_4,
SUM(CASE t.month WHEN 5 THEN t.usage ELSE 0 END) MONTH_5,
SUM(CASE t.month WHEN 6 THEN t.usage ELSE 0 END) MONTH_6
FROM 2_d t
GROUP BY t.function
u*********e
发帖数: 9616
29
Thanks for the feedback.
I cleaned up the variables and use smalldatetime instead of nvarchar for the
comparison.
ALTER PROCEDURE [dbo].[SP_REPORT_GET_STATUS_DATES]
@Statement_Year SMALLINT,
@Statement_Month TINYINT

AS
BEGIN
declare @Results table (Group_Code nvarchar(10) not null,
Group_Member_Code nvarchar(10) not null,
Stmt_Date_Created nvarchar(10) null,
Stmt_Date_Updated nvarch... 阅读全帖
n*******e
发帖数: 62
30
Abstract
1 – “Rose is a rose is a rose is a rose”, C# is case sensitive, that
sucks.
2 – The Switch clause
3 – Event-Handling code
4 –Stupid symbols
5 – Autocorrection in Visual Basic actually works
6 – Lack of supported functions, such as:IsNumeric,PMT, etc. but they don’
t exist in C#.
7 – That wretched semi-colon.Why do I have to end every line in C# with a
semi-colon?
8 – Arguments and variables.The order of words in a C# variable declaration
is wrong.the C# method of having to prefix argume... 阅读全帖
T******T
发帖数: 3066
31
来自主题: EE版 - 请教一个verilog code
As general note in synchronous digital design, unless clock rate is slow and
absolutely necessary, refrain from using double edged sequential logic. I
would only use it for fast <-> real slow time domain synchronization related
stuff.
DDR sounds cool, and it might seem efficient as hell to be able to
accomplish twice as much operation in only 1 single clock cycle, but when it
comes time to backend STA timing closure, you'll regret not having that
extra slack to deal with worst path circuit delay... 阅读全帖
s********p
发帖数: 637
32
来自主题: Statistics版 - 幼儿园分水果的SAS问题
Just a simple test:
Your code:
data test1;
do i=1 to 50000;
if ranuni(999)>0.9 then fruit=1;
else if ranuni (999) > 0.85 then fruit=2;
else if ranuni(999) > 0.7 then fruit = 3;
else if ranuni(999) > 0.6 then fruit = 4;
else if ranuni(999) > 0.4 then fruit = 5;
else if ranuni(999) > 0.15 then fruit =6;
else fruit = 7;
output;
end;
run;
proc freq; tables fruit/missing; run;
Cumulative Cumulative
fruit Frequency Percent Frequency Percent
D******n
发帖数: 2836
33
来自主题: Statistics版 - 新手问个问题 (转载)
create a .vim directory under you home directory(there is a dot before
vim)
and then create a syntax directory under it
and then create a sas.vim file under the syntax directory
==============sas.vim======================
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case ignore
syn region sasString start=+"+ skip=+\\|\"+ end=+"+
syn region sasString start=+'+ skip=+\\|\"+ end=+'+
" Want region from 'cards;' to ';' to be captured (Bob Heckel)
sy... 阅读全帖
d******9
发帖数: 404
34
Below code may be not a perfect method, but it works.
Use the SASHELP Class data set to create a sample data set.
data A;
retain X Name Y Sex Z Age Height Weight;
set sashelp.class;
if ranuni(7546)<0.3 then X='Yes';
else if ranuni(7546)<0.5 then X='No';
else X=' ';
if ranuni(32681)<0.4 then Y='Yes';
else if ranuni(32681)<0.8 then Y='No';
else Y='***';
if ranuni(510)<0.6 then Z='Yes';
else if ranuni(33201)<0.8 then Z='No';
else Z='N/A';
run;
*******************************
Use array, find all the... 阅读全帖
a*****n
发帖数: 230
35
I have been waiting for this for 10 years. But this noon, I saw this line:
The byte code compiler and interpreter now include new instructions that
allow many scalar subsetting and assignment and scalar arithmetic operations
to be handled more efficiently. This can result in significant performance
improvements in scalar numerical code.
I immediately downloaded the latest R build and benchmark against a KD-tree
code I wrote.
R Build from 20 days ago: 8.45 minutes
R build of today: 5.01 minutes
A... 阅读全帖
l****r
发帖数: 5317
36
来自主题: _LoTaYu版 - follow me
多年前在一个师兄那偶然听到,特喜欢,觉得很拽。有谁来科普一下这首歌不?
http://www.youtube.com/watch?v=zQls53Piuj0
You don't know how you met me
You don't know why, you cant turn around and say good-bye
All you know is when im with you I make you free
And swim through your veins like a fish in the sea
I'm singing....
Follow me
Everything is alright
I'll be the one to tuck you in at night
And if you want to leave
I can guarantee
You won't find nobody else like me
And I worry 'bout the ring you wear
Cause as long as no one knows
Tha... 阅读全帖
d**e
发帖数: 2420
37
来自主题: Military版 - 说谎者傅苹还在扯
傅苹昨晚在PBS的访问文字版:
http://www.pbs.org/wnet/tavissmiley/interviews/entrepreneur-pin
TRANSCRIPT
Tavis: Starting a successful company is never easy, but it certainly must
have seemed impossible to Ping Fu. As a child growing up in China under Mao,
she was separated from her family and sent to a forced labor camp, where
she endured unspeakable hardship.
In 1984 she made her way to the U.S. with $80 in her pocket and just three
English words in her vocabulary: “Hello,” “Thank you,” and my favorite
– “He... 阅读全帖
T******t
发帖数: 458
38
此人在FB上揭了警察局这些乱七八糟的黑幕,又是个黑人。留他活口肯定是重要不安定
因素。此人被和谐几率超高。
http://www.huffingtonpost.com/2013/02/07/christopher-dorner-wri
他说的也还挺实在的:拉丁警察对拉丁移民也粗暴。亚裔警察就在旁边看着,这群废物
果然不出所料。
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself ... 阅读全帖
S*********g
发帖数: 24893
39
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of character of the man you
knew who always wore a smile wherever he was seen. I know I will be vilified
by the LAPD and the media. Unfor... 阅读全帖
h*******e
发帖数: 6167
40
你是典型的loser心态。
别人家的孩子被好学校录取了,你家孩子没有:
if (别人家的孩子不是亚裔) {AA导致的}
else if (别人家的孩子是女孩) {他们想让聪明的亚裔女孩家给他们的儿子}
else if (别人家的孩子爱说话) {他们喜欢爱表现的孩子}
else if (别人家的孩子个儿高) {他们喜欢高个子}
else if (别人家的孩子长得好) {他们只看脸蛋}
...
else {反正我家孩子被歧视了}
其实最最明显的一个理由你就是不肯承认:你家孩子没有潜力,没有发展,是你这个大
loser的小翻版。没有一个名校的人相信你家孩子是可塑之材,可想而知得是多么的失
败!
优秀的、能上名校的亚裔男人很多,他们比也有许多都有好工作、好生活。到网上骂人
抱怨的,自然是那些找不到老婆没有好工作的男人。
t**x
发帖数: 20965
41
来自主题: Military版 - “Blue Line”
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of character of the man you
knew who always wore a smile wherever he was seen. I know I will be vilified
by the LAPD and the media. Unfor... 阅读全帖
c*******a
发帖数: 1879
42
来自主题: Military版 - 大哥语法都是这么定义的
Grammar
atom ::=
identifier | literal | enclosure

enclosure ::=
parenth_form | list_display
| generator_expression | dict_display
| string_conversion | yield_atom
literal ::=
stringliteral | integer | longinteger
| floatnumber | imagnumber
stringliteral ::=
stringliteralpiece
| stringliteral stringliteralpiece
parenth_form ::=
"(" [expression_list] ")"
list_display ::=
... 阅读全帖
W**********h
发帖数: 15
43
来自主题: RisingChina版 - 战国时代 - Zh的使命 (转载)
【 以下文字转载自 WaterWorld 讨论区 】
发信人: WorldOWealth (生存的代价), 信区: WaterWorld
标 题: 战国时代 - Zh的使命
发信站: BBS 未名空间站 (Tue Sep 18 04:20:00 2012, 美东)
0.00001%的富人如何统治世界?掌控资源。如何集中控制?一个公司不现实,财团也必
须有足够的武力保护。只能通过一个国家来实施。M是战后的唯一选择(或者从战前就
看中了这块远离各种外部打击的世外桃源)。富人的地位,等于M的地位,为了保护既
得利益,M必须是霸主,而且永远是霸主,直到找到下一个M,比如火星,即在可见的未
来难以被打击的位置。M的ZF,在独霸这个目标上和富人是一致的。
最大的麻烦是,各种当前的硬通战略资源分布在各国中。而各国ZF必用资源争取最大利
益,不管利益去向。对M来说,所有的ZF都是多余,其他ZF间的合作只意味着徒增M独霸
资源的成本。解决方法很简单:
1. 尽可能破坏ZF间的合作:
- 岛国与大陆国家:有拿住Eng离间西欧,拿住Rib离间东亚,一方面使得这些岛国被
大陆孤立,无法在区域上取代M的中枢地... 阅读全帖
S*********g
发帖数: 24893
44
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of character of the man you
knew who always wore a smile wherever he was seen. I know I will be vilified
by the LAPD and the media. Unfor... 阅读全帖
n**********n
发帖数: 984
45
来自主题: USANews版 - Trump主席语录
Trump主席语录,我来注释一下前三条。
You can't be scared. You do your thing, you hold your ground, you stand up
tall, and whatever happens, happens. (我看版上很多人患得患失,TRUMP作为当事
人,镇定得很。)
Sometimes by losing a battle you find a new way to win the war. (从IOWA结果
,迅速学会了Ground Game)
Without passion, you don't have any energy, and without energy, you simply
have nothing. (不断演讲,不断的发帖,不断的辩论,高能量。)
Do not spend too much time planning or trying to anticipate and solve
problems before they happen. That is just another kind of ex... 阅读全帖
g********2
发帖数: 6571
46
Donald Trump’s New York Times Interview: Full Transcript
By THE NEW YORK TIMESNOV. 23, 2016
President-elect Donald J. Trump during a meeting at The New York Times’s
offices in Manhattan on Tuesday.
Following is a transcript of President-elect Donald J. Trump’s interview on
Tuesday with reporters, editors and opinion columnists from The New York
Times. The transcription was prepared by Liam Stack, Jonah Engel Bromwich,
Karen Workman and Tim Herrera of The Times.
ARTHUR SULZBERGER Jr., publisher o... 阅读全帖
u****n
发帖数: 7521
47
How America Can Rise Again
Is America going to hell? After a year of economic calamity that many fear has sent us into irreversible decline, the author finds reassurance in the peculiarly American cycle of crisis and renewal, and in the continuing strength of the forces that have made the country great: our university system, our receptiveness to immigration, our culture of innovation. In most significant ways, the U.S. remains the envy of the world. But here’s the alarming problem: our governin... 阅读全帖
j*****u
发帖数: 1133
48
写的比较乱,应该还有更clean的
static bool IsMatch(string str, string pattern)
{
if (str == null)
throw new ArgumentNullException("str");
if (string.IsNullOrEmpty(pattern))
throw new ArgumentException("pattern null or emptry.");
return MatchRec(str, pattern, 0, 0);
}
static bool MatchRec(string str, string pattern, int sIndex, int pIndex)
{
if (pIndex == pattern.Length)
{
return sIndex == str.Length;
}
char p = pattern[pIndex];
bool isStar = pIndex < pa... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)