由买买提看人间百态

topics

全部话题 - 话题: arg
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
c******1
发帖数: 37
1
来自主题: JobHunting版 - G家onsite 随机数一题
public class RandomBlack {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
RandomBlack fac = new RandomBlack();
List> lss = fac.permu(9);
for(List ls : lss) {
for(int i = 1; i < 10; i++) {
int getRan = fac.getRan(ls, i);
int check = fac.check(ls, i);
if(getRan == check) continue;
else {
Sys... 阅读全帖
s***c
发帖数: 1926
2
来自主题: JobHunting版 - 好挫的F家面经
public class Solution {
public int findMaxLengthSubArrayEqY(int[] A, int y) {
if(A == null || A.length == 0) return 0;

int sum = 0;
int maxLen = 0;

// key=sum(0:i)+y; value=i
Map map = new HashMap();
map.put(y, -1);

for(int i = 0; i < A.length; i++) {
sum += A[i];

if(map.containsKey(sum)) {
int len = i - map.get(sum);
... 阅读全帖
l*****o
发帖数: 214
3
public class NumberPickGame {

public NumberPickGame() {}

public static boolean canIForceWin(int maxNumber, int total) {
if ((maxNumber + 1) * maxNumber /2 < total) {
return false;
}
Set numbersAvailable = new HashSet();
for (int i = 1; i <= maxNumber; i++) {
numbersAvailable.add(i);
}
int[] picks = new int[maxNumber];
boolean canWin = canFirstPlayerWin(numbersAvailable, total, 0, pic... 阅读全帖
b******n
发帖数: 1629
4
版上看了些面经,至少把airbnb的电话面试题都给看到了,虽然最后把airbnb的onsite
推掉了,但电面直接碰上原题的感觉真的好tmd有成就感。最后回馈一下版面。
整体感觉,国人面试官真的都非常的nice,老外大部分也都很nice,甚至碰到的三哥三
妹都很nice,没有感觉恶的。个人感觉面试的时候还是要多说话,不要让面试官说话,
更加不要让面试冷场,这个还是挺重要的,否则面试官一尴尬,直接就觉得没有
chemistry,反馈不可能很好。
我自己由于刷题刷得太烂,根本不想刷,看着就烦,只是把ccr和leetcode答案给看了
几遍,一遍都没写过,别的网站看都没看。所以可能不适用刷题刷的nb的同志们。基本
每家公司每道题都有时间复杂度分析,建议注意。
airbnb电面两轮,一个是house robber,一个是csv parser。
fb电面也是两轮,一个maximum continuous sum for an array, career cup面经原题
,一个是简单的trie,还有一个是n个元素中求包含k个元素的组合,dfs做,follow up
提高performance,被国... 阅读全帖
c***7
发帖数: 42
5
来自主题: JobHunting版 - implement Java format function in 40mins
Interviewer is a India guy, company is Microsoft. Phone interview.
He start to ask each of my experience listed in resume. It takes 20mins.
Then give a function signature
String format(string fmt, object[] rags)
No comments for special requirement.
Example
1st arg "Hello {0}", 2nd arg{"Xxx"}
Return "hello Xxx"
Sounds easy. Then I take about 25mins to complete it. I need to share my
thoughts with him during coding.
Note: the input parameter does not have to be valid. Which means I need to
conside... 阅读全帖
c***m
发帖数: 2630
6
ARG is dropping big complying with drop of SPY. What does it mean?
arg is for the industry transportation.
M****h
发帖数: 472
7
是ARGS吗,还有其他可以关注?
ARGS交易量太小,不太好操作
a*****x
发帖数: 12
8
来自主题: Stock版 - FDA calendar
ARGS/HRTX/OPK 三个 结果我选了ARGS
l**********o
发帖数: 9952
9
来自主题: Carolinas版 - 网友真的很有才
网友真的很有才啊
原英语版本
My enemies are many,my equals are none. In the shade of olive trees,they
said Italy could never be conquered.In the land of pharoahs and kings, they
said Egypt could never be humbled.In the realm of forest and snow,they said
russia could never be tamed.Now they say nothing.They fear me ,like a force
of nature,a dealer in thunder and death.I say I am Napoleon,I am emperor....
....Burn it.
正常翻译版
我树敌无数,却从未逢对手。在橄榄树荫下,他们说意大利永远不会被征服。在法老和
国王的土地上,他们说埃及永远不会臣服。在森林与暴雪的国度,他们说俄国永远不会
被征服。现在他们... 阅读全帖
d******n
发帖数: 12850
10
来自主题: NewJersey版 - us open kid's day归来
djokovic啥时候过来的?我们4点就走了,2个多小时内看了不少球星打球,收获不少。
列举一下,留贴做个纪念,顺便帮今天几位同去的同学温习一下今天看过的球星的世界
排名:
8 Del Potro, Juan Martin (ARG) Armstrong Stadium
11 Monaco, Juan (ARG) Armstrong Stadium
13 Cilic, Marin (CRO) 边场
21 Roddick, Andy (USA) Armstrong Stadium
35 Anderson, Kevin (RSA) 边场
36 Melzer, Jurgen (AUT) 边场
42 Nieminen, Jarkko (FIN) 边场
43 Tomic, Bernard (AUS) 边场
48 Davydenko, Nikolay (RUS) 边场
52 Falla, Alejandro (COL) 边场
61 Harrison, Ryan (USA) 边场
125 Hewitt, Lleyton (AUS) ... 阅读全帖
r*****f
发帖数: 167
11
来自主题: Basketball版 - Basketball Preliminary Round done
Group A ranking:
1 ESP
2 ITA
3 ARG
4 CHN
5 NZL
6 SCG
Group B ranking:
1 LTU
2 GRE
3 PUR
4 USA
5 AUS
6 ANG
QUARTERFINALS
upper div:
ESP vs USA
ARG vs GRE
bottom div:
LTU vs CHN
ITA vs PUR
m*******a
发帖数: 4507
12
来自主题: Basketball版 - NBA还是地球上最强的篮球联盟
得分榜前十名, 只有黎巴嫩的Fadi没有NBA的经验..
GP MPG PPG PTS
1. Luis SCOLA (ARG) 5 34.8 29 145
2. Kirk PENNEY (NZL) 5 31.4 25.4 127
3. Jianlian YI (CHN) 4 35 22.5 90
4. Hamed HADDADI (IRI) 5 32.6 20 100
5. Kevin DURANT (USA) 5 24.2 17.8 89
6. Linas KLEIZA (LTU) 5 29.2 17.4 87
7. Carlos DELFINO (ARG) 5 35.6 17.4 87
8. José BAREA (
m*******a
发帖数: 4507
13
Points GP MPG PPG PTS
1. Luis SCOLA (ARG) 6 35.5 30.3 182
2. Kirk PENNEY (NZL) 6 30.8 24.7 148
3. Jianlian YI (CHN) 5 35 20.2 101
4. Hamed HADDADI (IRI) 5 32.6 20 100
5. Linas KLEIZA (LTU) 6 30.3 19.5 117
6. Carlos DELFINO (ARG) 6 36.2 17.8 107
7. Kevin DURANT (USA) 6 23.3 17.7 106
8. José BAREA (PUR) 5 29.2 16.8 84
9. Leandro BARBOSA (BRA)6 29 16.2 97
10.Juan NAVARRO (ESP) 5 24.6 16 80
Rebounds GP REB RPG
1. Jianl
m*t
发帖数: 2464
14
来自主题: NBA版 - Re: 推荐一个高赔率组合
22 6/30-10:00a FRA+ARG > 2.5 @ 2.70
25 6/30-10:00a FRA+ARG < 1.5 @ 2.60
35 6/30-10:00a FRA1:1 @ 6.00
111:115:50
s**v
发帖数: 10
15
来自主题: Soccer版 - 美洲杯完全名单
COPA AMERICA 2007
http://www.copaamerica.com/default.asp?pag=home
ARGENTINA
Name POS. Club
1 Roberto ABBONDANZIERI GK Getafe (ESP)
2 Roberto AYALA DF Villarreal (ESP)
3 Daniel DIAZ DF Boca Juniors (ARG)
4 Hugo IBARRA DF Boca Juniors (ARG)
5 Fernando GAGO MF Real Madrid (ESP)
6 Gabriel HEINZE DF Manchester United (ING)
7 Rodrigo PALACIO FW
Y****r
发帖数: 3473
16
I was wondering as well
for example
Nigeria/South Korea >2
Nigeria/South Korea <2
what if Nigeria tie SK 1:1? you will lose money?
but for the greece and argentine match, they have
Greece/Arg. >2.5
Greece?Arg. <2.5
this is more reasonable because 2.5 is impossible you either win or lose
Y****r
发帖数: 3473
17
now I understand
标题: 22/22 希腊+1<阿根廷 2.0
22/22 is tomorrow June22
希腊+1<阿根廷
you win if 希腊's score PLus 1 is < 阿根廷's score
for example Arg. beats Greece 3:1, 4:2
you money will be returned if Arg. beats Greece by 1 goal
If they tie of Greece win you lose
c*****i
发帖数: 32
18
1 ARG Alan Pascal 阿兰 帕斯高 / 艾倫 巴斯高 AM R, F C Argentinos
2 ARG Juan Díaz 胡安 迪亚斯 / 胡安 迪亞斯 AM / F C Argentinos
3 BRA Salinas 沙里拿斯 GK Internacional
4 BRA Alberto 阿尔贝托 / 阿爾拔圖 D C Palmeiras
5 BRA Jorge 乔济 / 佐魯治 (ジョルジ) D / WB R Corinthians
6 BRA Senardo 塞纳尔多 / 撒拉度 (セナルド) D / WB L Cruzeiro
7 BRA Natureza 拿度尼 AM / F C R Madrid
8 BRA Leo 里奥 / 里奧 AM / F C Flamengo
9 BRA Pepe 柏巴 ST
y*****n
发帖数: 5016
19
来自主题: Soccer版 - 我也来个大胆推测(图示)
URU ARG
URU ARG
KOR MEX
URU GER
USA GER
USA GER
GHA ENG
URU GER!
NED PAR
SVK JPN
SVK JPN
BRA POR
BRA ESP
BRA
A***o
发帖数: 351
u*********e
发帖数: 9616
21
来自主题: Tennis版 - 明天好看了
Centre Court 13:00 Start Time
1. Ladies' Singles - 3rd Round
Caroline Wozniacki (DEN)[1] v. Jarmila Gajdosova (AUS)[27]
2. Gentlemen's Singles - 3rd Round
David Nalbandian (ARG)[28] v. Roger Federer (SUI)[3]
3. Gentlemen's Singles - 3rd Round
Marcos Baghdatis (CYP)[32] v. Novak Djokovic (SRB)[2]
No. 1 Court 13:00 Start Time
1. Gentlemen's Singles - 3rd Round To Finish 7-6(6)
Rafael Nadal (ESP)[1] v. Gilles Muller (LUX)
2. Ladies' Singles - 3rd Round
Maria Kirilenko (RUS)[26] v. Serena Williams (... 阅读全帖
f******g
发帖数: 13917
22
来自主题: Tennis版 - 100 greatest list
把Henin排在大威之后,窝有些不赞同。
Joker的40名,有些靠后了吧?其他的大家来评论评论吧
100 – Michael Chang, USA
99 – Ann Haydon Jones, GBR
98 – Henry Bunny Austin, GBR
97 – Pat Cash, AUS
96 – Manuel Orantes, ESP
95 – Thomas Muster, AUT
94 – Andy Roddick, USA
93 – Nicola Pietrangeli, ITA
92 – Svetlana Kuznetsova, RUS
91 – Shirley Fry Irvin, USA
90 – Bill Johnston, USA
89 – Dorothea Lambert Chambers, GBR
88 – Amelie Mauresmo, FRA
87 – Mary Pierce, FRA
86 – Tony Wilding, NZL
85 – Yannick Noah, FRA
84 – Norman Brookes, AUS
83 – Jan Kod... 阅读全帖
n********r
发帖数: 4558
23
来自主题: Tennis版 - 温网男单签表
Novak Djokovic SRB (1)
Juan Monaco ARG (15)
Nicolas Almagro ESP (12)
Tomas Berdych CZE (6)
Roger Federer SUI (3)
Gilles Simon FRA (13)
John Isner USA (11)
Janko Tipsarevic SRB (8)
David Ferrer ESP (7)
Juan Martin Del Potro ARG (9)
Marin Cilic CRO (16)
Andy Murray GBR (4)
Jo-Wilfried Tsonga FRA (5)
Mardy Fish USA (10)
Feliciano Lopez ESP (14)
Rafael Nadal ESP (2)
http://www.wimbledon.com/en_GB/scores/draws/ms/index.html
d****z
发帖数: 9761
24
来自主题: Tennis版 - 小德中国行14天1500分117万美金
恩,基本89不离10,今天ATP跟新积分,只差195分,不过坐等别人输掉还是不靠谱的
ATP top 10 as of October 15:
1. Roger Federer (SUI) 12,165
2. Novak Djokovic (SRB) 11,970
3. Andy Murray (GBR) 7,690
4. Rafael Nadal (ESP) 6,995
5. David Ferrer (ESP) 5,360
6. Tomas Berdych (CZE) 4,840
7. Jo-Wilfried Tsonga (FRA) 4,810
8. Juan Martin del Potro (ARG) 3,670
9. Janko Tipsarevic (SRB) 3,265
10. Juan Monaco (ARG) 2,775
b***u
发帖数: 12010
25
来自主题: TVGame版 - Aperture Science
http://half-life.wikia.com/wiki/Aperture_Science
Aperture Science, Inc.,[7] often simply referred to as Aperture Science or
simply Aperture, is an American scientific research corporation whose
laboratories and administration, Aperture Laboratories, are located in
Cleveland, Ohio, USA.[1] Originally a shower curtain manufacturer, it
evolved over the course of half a century into an experimental physics
research institution and a bitter rival of Black Mesa.
"Aperture Laboratories" is also used as... 阅读全帖
a***e
发帖数: 2094
26
haven't finish reading but interesting to read...
http://www.infodanza.com/index.php?option=com_content&task=view&id=253&Itemid=108
it could be one of waston's projects to do arg. tango - interesting...his
previous partner, karen hardy, started to dance arg. tango after retirement,
as shown in the british tv dance show (forgot the name of the show).
c*********u
发帖数: 607
27
不知道我记得对不对,好像又说Arg,就是精氨酸是一种virus所必需的,但是相似的
Lys病毒就不能用,所以用Lys取代Arg,病毒死掉掉,猫咪蹦蹦跳。
q**1
发帖数: 193
28
来自主题: BuildingWeb版 - help on php for dynamic dependent list box

following
你说的这些lists是
o**********a
发帖数: 330
29
来自主题: DotNet版 - 新手请教问题
刚接触 xml,为什么第一段code 可以work。 而第2段code不能正确地创建xml
多谢
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.IO;
namespace xmlapp
{

public class Movie
{
public string Title
{ get; set; }
public int Rating
{ get; set; }
public DateTime ReleaseDate
{ get; set; }
}
class Program
{
static void Main(string[] args)
{

Movi... 阅读全帖
r****y
发帖数: 26819
30
来自主题: Flash版 - eclipse编辑as
说到这个破解啊,真是痛苦。
我自己反编译了jar,检验序列号的代码如下。md5算法啊,搞不定。跳过检验倒是好做
,就是重新编译总是消不掉所有错误,从中发现eclipse的sdk各个版本之间很混乱。
最后没辙了,google一下,发现有人更新了blog,给出了3的破解。
下载:http://www.megaupload.com/?d=0XGCGQAJ
import java.security.MessageDigest;
import java.util.Arrays;
public class FDTKeygen {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
/*
prowv("rongzeng",
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJLKLMNOPQRSTUVWXYZ123");
*/
char test = '3';
Sys
m***a
发帖数: 198
31
It is the same case as application.
Since you used to put in "args, I think you can do "new
String[0]" (I would try null first). Of course if you do
have some args, insert them
in the String[].
I have not test this. You can try if it works.
l****y
发帖数: 92
32
来自主题: Java版 - 新手求助,急急急!!!
我刚接触java,编了一个入门程序,
有两个问题请教大家
import java.lang.Double;
public class CircleArea
{
public static void main(String args[])
{
final double PI = 3.14;
double area, r;
r = Double.parseDouble(args[0]);
area = PI * r * r;
System.out.println("r=" + r + " area=" + area);
}
}
1,由于lang在lib\src的java目录中,所以我的classpath设置为
classpath=d:\jdk\lib\rt.jar;d:\jdk\lib\tools.jar;d:\jdk\lib\src, 这样正确吗

2,程序编译成功,可是运行是总是有错误提示
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException,
请问怎么解决啊???
谢谢
y****i
发帖数: 5690
33
来自主题: Java版 - Java on AIX
IF I can run Java but not Javac on a AIX server, what does it mean?
%javac
Can't find class java.lang.System
%java -?
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
Does it mean that only JVM is installed on the sever, but JDK? So I can only run jav
s******M
发帖数: 3435
34
来自主题: Java版 - code Re: structure in Java??
obvious things can often be wrong though.
here is one of tests i coded. certainly, this is an over simplistic operation
but it does tell sth.
try to run with a counter sesnsible large so that it takes seconds. 10^8~9
should be ok.
public class Test{

public static void main(String[] args){
System.out.println("starting...");
long re=0;
long start = System.currentTimeMillis();
int count=Integer.valueOf(args[0]).intValue();
for(int i=0; i re = re+i;
}
long dur = System.currentTim
s*******e
发帖数: 76
35
public class ReadCommand{
public static void main(String[] arg){
String s1=arg[1];
System.out.println(s1);
}
}
能COMPILE,但是一RUN就有问题,谢谢了
D*******y
发帖数: 366
36
非常感谢你的帮助!
我在做一个市场买卖双方的模拟。
这个软件的输出部分需要输出每周的历史数据。这样每周的市场和每个交易者的价格,
数量需要输出到不同的文件中。里面含有int, double,char 数据类型。
一下是我学习的一个简单输出代码。能够运行,但是输出文件显示不出来。
package ts;
import java.io.*;
import ts.AppendToFile;
public class Append {
/**
* @param args
*/
public static void main(String[] args) {
String fileName="D:/output/out1.txt";
// TODO Auto-generated method stub
AppendToFile[] file=new AppendToFile[4];

file[1]=new AppendToFile(1);

//Sys
g*****g
发帖数: 34805
37
来自主题: Java版 - JEE EJB Question
If OrderClient doesn't need any parameter, what's the point of
having a method
public OrderClient(String[] args)
I suspect the point is to pass args and create an InitialContext there.
Your code can run fine only if it's inside JEE container.

bean.
k***r
发帖数: 4260
38
来自主题: Java版 - scala - I 服了 U
and these both compile fine:
def main(args:Array[String]) {
println("hello")
}
def main(args:Array[String]) = {
println("hello")
}
s*********g
发帖数: 2350
39
来自主题: Java版 - java rugular expression question
谢谢楼上的提醒。我用args[0]输入目录,filter里面用args[1]= .*java
成了。
h*********e
发帖数: 247
40
来自主题: Java版 - java ,wait ,notify notifyall
try this, all clear.
import java.util.concurrent.atomic.AtomicInteger;
public class ThreadExample
{
public static volatile AtomicInteger count = new AtomicInteger(0);
public static Object lock = new Object();
/**
* @param args
*/
public static void main(String[] args)
{
Runnable a = new Runnable() {
@Override
public void run()
{
synchronized(lock)
{
System.out.println("A ... 阅读全帖
t*****z
发帖数: 812
41
来自主题: Java版 - 百思不解 why the program fails?
为什么第一个fail,第二个通过?不就调了一下循序么,百思不解
**fail
public static void main ( String args[] ) {
int x = 50;
System.out.println("x= "+x);
{
int x= 30; //compilation fail: x is already defined in main
System.out.println("x= " + x);
}
}
**pass
public static void main ( String args[] ) {
{
int x= 30;
System.out.println("x= " + x);
}
int x = 50;
System.out.println("x= "+x);
}
z****e
发帖数: 54598
42
来自主题: Java版 - Java Array
String args[]
String[] args
A**u
发帖数: 2458
43
import java.util.*;
import java.util.concurrent.locks.*;
public class PC_unsyn
{
public static void main(String[] args)
{
IntBuffer b = new IntBuffer();
Producer p = new Producer(b);
Consumer c = new Consumer(b);
p.setName("Producer");
c.setName("Consumer");
p.start();
c.start();
}
}
class IntBuffer
{
private int index;
private int[] buffer = new int[8];
private Lock bufferLock = new ReentrantLock();
private Cond... 阅读全帖
d*****e
发帖数: 2489
44
string args[]改成String[] args
n******1
发帖数: 3756
45
来自主题: Java版 - 问一个blocking IO的程序
我在网上看到这两段代码,一个写,一个读,但是好像是有问题的.我看写是没问题的
,我把queue打出来,输入的都有,但是reader的读行为非常奇怪,如果文件有内容,
可以读出来,但是重新写入的有时候能读一部分,比如writer写入abcde,可能read到ab
出来,但大部分时间都是null,尝试自己加过在writer加入sleep,wait什么都没用
Writer.java
import java.io.BufferedWriter;
import java.io.Console;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.logging... 阅读全帖
n******1
发帖数: 3756
46
来自主题: Java版 - 问个autoboxing的问题
有两个demo,这里的参数匹配有什么原则,有什么地方写的比较清楚,好像不仅是
autoboxing的问题
//output int 1
public class Demo1{
public static void main(String []args){
short a = 1;
Demo1 demo = new Demo1();
demo.foo(a);
}

void foo(Short x){
System.out.println("Short"+x);
}
void foo(int x){
System.out.println("int"+x);
}
void foo(Integer x){
System.out.println("Integer"+x);
}

}
//output short 1
public class Demo2{
public static void... 阅读全帖
x******m
发帖数: 736
47
来自主题: Java版 - Spring菜鸟求救
跟着网上的tutorial学习,一模一样的code,总是出错。
第一个class
package com.springinaction.springidol;
public class SpellChecker {
public SpellChecker(){
System.out.println("Inside SpellChecker constructor." );
}
public void checkSpelling() {
System.out.println("Inside checkSpelling." );
}

}
第二个class
package com.springinaction.springidol;
public class TextEditor {
private SpellChecker spellChecker;
public TextEditor(SpellChecker spellChecker) {
... 阅读全帖
z*********e
发帖数: 10149
z*******3
发帖数: 13709
49
来自主题: Java版 - java beginner question
没区别,你可以替换着用
main(String[] args) & main(String args[])
这两个都用过
java中数组的使用并不如其他语言中使用那么频繁
很多时候都被list等结构所取代
所以你可以不用纠结这点差异
c****e
发帖数: 1453
50
来自主题: Linux版 - [原创] emacs和vim的区别。
发信人: ayanami (螃蟹@FROSTSHOCK PWNS YOU!!11!), 信区: Linux
标 题: Re: [原创] emacs和vim的区别。
发信站: BBS 未名空间站 (Mon Mar 16 14:18:17 2009)

How do you do "%" ?
(global-set-key "%" 'match-paren)
(defun match-paren (arg)
"Go to the matching paren if on a paren; otherwise insert %."
(interactive "p")
(cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
((looking-at "\\s\)") (forward-char 1) (backward-list 1))
(t (self-insert-command (or arg 1)))))
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)