由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - {0xFACEB00C>>2 in decimal}@fb.com到底是啥?
相关主题
谁能说说facebook这个puzzle的test case?给大家推荐一款 software Design 的工具
再请问facebook puzzle的提交~Linux/Mac下大家用什么IDE, debug C/C++ project
请问facebook quzzle提交问题~Engineering II openning in my company (转载)
Linux 面试题目(付答案)收集分享Amazon onsite coding project的问题
design an in-memory file system帮朋友转发一个Google 的Contractor 的职位
An interview question: data store schema design (转载)evernote面经
dropbox 要求真高啊alibaba 招聘
大家看看有这种公司吗?【工作机会/内部推荐】深圳华为招聘计算机视觉工程师
相关话题的讨论汇总
话题: file话题: 0xfaceb00c话题: decimal话题: executable话题: compressed
进入JobHunting版参与讨论
1 (共1页)
s********x
发帖数: 914
s********x
发帖数: 914
2
-21779453?

【在 s********x 的大作中提到】
: 正在做puzzle:
: http://www.facebook.com/careers/puzzles.php

s********x
发帖数: 914
3
4273187843?

【在 s********x 的大作中提到】
: -21779453?
m********l
发帖数: 4394
4
1,051,962,371

【在 s********x 的大作中提到】
: -21779453?
m********l
发帖数: 4394
5

yea, google
1********[email protected]

【在 m********l 的大作中提到】
: 1,051,962,371
s********x
发帖数: 914
6
Thanks! 原来是unsigned int啊! 本人用java的,呵呵
偶在做 http://www.facebook.com/careers/puzzles.php?puzzle_id=8 这题。
不知道这个input file是不是就直接放在root of project 下了呢。还有要生成
executable,是不是直接就用eclipse生成jar file就可以了?
另外system.out.println()的输出貌似在executable file看不到啊。
build.xml是不是用eclipse直接生成就可以了?
谢谢诶!

【在 m********l 的大作中提到】
:
: yea, google
: 1********[email protected]

m********l
发帖数: 4394
7
俺不懂Java
不过你想太多了
input file can be anywhere.
and you output to the "standard out"
it's a pretty straightforward puzzle.

【在 s********x 的大作中提到】
: Thanks! 原来是unsigned int啊! 本人用java的,呵呵
: 偶在做 http://www.facebook.com/careers/puzzles.php?puzzle_id=8 这题。
: 不知道这个input file是不是就直接放在root of project 下了呢。还有要生成
: executable,是不是直接就用eclipse生成jar file就可以了?
: 另外system.out.println()的输出貌似在executable file看不到啊。
: build.xml是不是用eclipse直接生成就可以了?
: 谢谢诶!

s********x
发帖数: 914
8
But how does the robot know?
Do I need to make it a command arg which is the file and its directory?

【在 m********l 的大作中提到】
: 俺不懂Java
: 不过你想太多了
: input file can be anywhere.
: and you output to the "standard out"
: it's a pretty straightforward puzzle.

m********l
发帖数: 4394
9
you can't just pipe it in?
a.out < input.txt

【在 s********x 的大作中提到】
: But how does the robot know?
: Do I need to make it a command arg which is the file and its directory?

s********x
发帖数: 914
10
So for Java, I would use args[0] as the file. It's command arg.

【在 m********l 的大作中提到】
: you can't just pipe it in?
: a.out < input.txt

s********x
发帖数: 914
11
How many files in total should I submit?
I submitted one executable jar file and one compressed zip file of the code.
I am getting reply:
your solution to the peaktraffic puzzle (received on May 4, 2011, 8:25 pm)
could not be built and/or run. For security reasons, I cannot give out exact
errors. Please double check your submission for the following things:
- If you compressed your solution, it needs to be compressed either as a .
zip file, a .tgz file, .tar.gz, or a .tar.bz2 file.
- Furthermore, if your solution was submitted as a compressed file, please
make sure that the executable file or Makefile/build.xml uncompresses into
the same directory as the compressed file. The robot does not search
arbitrary sub-directories!
- If you used a compiled language, check that your submission includes a
Makefile or an Ant build.xml file that can be used with the commands 'make'
or 'ant'. Make sure your Makefil/build.xml file is in the top level
directory, and not in a sub-directory (sub-directories are acceptable for
source code organization).
- Was your solution written in one of the accepted languages and versions?
See http://www.facebook.com/careers/puzzles.php for the complete list.
- The final executable result needs to be a file with the exact name of '
peaktraffic'. A common error is leaving file extensions on script solutions.
Do not worry about file permissions, I will do that for you. Make sure the
executable named after the puzzle keyword is not in a sub-directory.
If nothing else works, try creating a discussion at the Facebook Puzzle
Master Page at http://www.facebook.com/PuzzleMaster and asking your question.

【在 s********x 的大作中提到】
: So for Java, I would use args[0] as the file. It's command arg.
1 (共1页)
进入JobHunting版参与讨论
相关主题
【工作机会/内部推荐】深圳华为招聘计算机视觉工程师design an in-memory file system
【工作机会/内部推荐】世界500强招聘计算机视觉工程师An interview question: data store schema design (转载)
【工作机会/内部推荐】世界500强招聘计算机视觉工程师dropbox 要求真高啊
Apple ASIC DFT DV 招人大家看看有这种公司吗?
谁能说说facebook这个puzzle的test case?给大家推荐一款 software Design 的工具
再请问facebook puzzle的提交~Linux/Mac下大家用什么IDE, debug C/C++ project
请问facebook quzzle提交问题~Engineering II openning in my company (转载)
Linux 面试题目(付答案)收集分享Amazon onsite coding project的问题
相关话题的讨论汇总
话题: file话题: 0xfaceb00c话题: decimal话题: executable话题: compressed