PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Can you get a job at EA?

Image

To be fair, I probably wouldn't leap at a chance to work at EA, but their recruitment poster is cool.
Code:
for (int i=0; i<msg.length; i++)
{
System.out.println( msg[i] );
}


----------

N
o
w

H
i
r
i
n
g

----------

I can't read the last character. Neat idea !
std::cout << msg;

-----

Now Hiring
Didn't google do something like this? Except, you know, not so lame.
Code:
char msg[] = { 78, 111, 119, 32, 72, 105, 114, 105, 110, 103 };
System.out.println(msg);

----------
Now Hiring
Not shorter, but I'm digging the new java for-loop shorthand.

Code:

for(char c : msg)
System.out.print(c);
Don't use a loop. You don't need one.
How's that work?
printf( msg )

or

std::cout << msg;
Whoops. Sorry, my comment was aimed at Andy and his new Java loop. To be honest, I didn't even think of using a loop.
http://www.afceurope.com/club-java/slides/Sun-jdk50.pdf

A lecturer posted the above link yesterday; it's been helpful. Pages 6 - 11 for the enhanced loop.

They just went to java 1.5 at my university, so I'm not really sure what the constraints on these loops are. It is kind of tempting to use more loops than you need to with this syntax. :P Even with 1.5, java code still has a way of degrading into a mess of parenthesis.

The loop implementation came to mind mostly because it would give me a chance to show off my awesomeness.
so what does it say.
"NOW HIRING"
http://www.google.com/googleblog/2004/07/warning-we-brake-for-number-theory.html

*edit: loops like the EA billboard predates the google one. And that EA put this thing outside of Radical Entertainment's offices.
denthorq wrote:
I can't read the last character. Neat idea !

0, null
Blade Runner · 04 Mar 2005, 15:31 UTC
Andy wrote:http://www.google.com/googleblog/2004/07/warning-we-brake-for-number-theory.html

*edit: loops like the EA billboard predates the google one. And that EA put this thing outside of Radical Entertainment's offices.


...in consecutive digits of "what"?....
e
TheMegaFrog wrote:printf( msg )

or

std::cout << msg;



I like Java when it comes to String/Char/Number processing. They made it easier by allowing ' + ' to concat them ;-)
C# looks like a better java. I believe it allows operator overloading also.
Blade Runner · 05 Mar 2005, 18:40 UTC
And how would you calculate e in C++?
Bjorn Keizers · 05 Mar 2005, 19:44 UTC
Jesus, there's more nerds here then at a Star Trek convention! :D
Blade Runner wrote:And how would you calculate e in C++?


1 googol = 1.0 × 10^100

LOL
Blade Runner · 06 Mar 2005, 16:06 UTC
No I mean how to control that infinite number?
Anyway my ingeneer brother found it but do you put all the numbers in a txt or what?
Incase you didn't notice, it said {the first whatever}.com
Blade Runner · 07 Mar 2005, 00:56 UTC
Okay okay but what tells you that it's not very far in the numbers (It's not, but imagine)?
I'm not following what you're getting at. There's nothing that says how far into the number it is.

The problem is over anyways.
Blade Runner wrote:Okay okay but what tells you that it's not very far in the numbers (It's not, but imagine)?


You're an idiot.

This isn't some kind of weird mystical shit.

Calculate e and then go through and parse out ten digit numbers and check if they're prime.

That's the brute force way. I'm sure someone who actually gives a shit can do much better.
I imagine all 10 digit prime numbers are already known, so you could just compare to a list.
Or you just use Maple/Mathematica to solve it.