Nick
I gave the answer that I will compare every integer in x with another in x. Just a guess.
Henry Wong wrote:
What do you think the answer should look like?
Nick
Gregg Bolinger wrote:I find it humorous that companies ask these kinds of questions and expect to find good engineers.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Helping hands are much better than the praying lips
James Clark wrote:Asking rudimentary low-level programming questions when searching for an experienced software engineer is not a good path for finding the best candiate in a reasonable time-frame.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
arulk pillai wrote: Aslo, it is better to ask elementary question as there is only limited time and candidates could be nervous too
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
[SCJP 6.0]
Gregg Bolinger wrote:I find it humorous that companies ask these kinds of questions and expect to find good engineers.
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.