Apple Interview Question for Software Engineer in Tests


Country: United States
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
1
of 1 vote

Map-Reduce....(Since the question does not mention a limit on resources...)

- Anon February 21, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

assume 1 web page is 18KB (keep the math simple)

n billion web page is about n x 10^9 x 18 x 10 ^3 B = 18n x 10^12 B
30 min is 1800 seconds

18nx10^12B /1800seconds = 10n x 10^9 B/s = 80n x 10^9 b/s = 80n Gbit/s

If selecting 2n x 40Gbit/s network processor with built-in DPI, one can solve this problem.

- shengliang.song November 11, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The numbers do have sematic meaning, eg: location. Hence, if the database is distributed, that helps. Additionally, the DB must be stored in a N-nary search tree where N is large, reducing the height of the tree significantly.

- abyrupus January 30, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Sorry, the question is not clear. Could you please provide some context?

- RK January 30, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Regular expressions. Use something like "ls -aR | grep <pattern>".

- Anonymous Coward January 30, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

He asked my...that I have one single large DB and I have just 30 min to search it. If I use a regular expression to search a DB like that it would take me a time greater that 30 min.

- Anonymous February 04, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Using indexes?

- bbh April 24, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

First of all storing such a volume of webpages, I would consider NOSQL(MongoDB) database.
Then apply indexes on those webpages.

Now execute queries to parse a given phone number.

- sriman2k October 22, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

we can use db language to get tht by giving commands and we can grt that data

- Saran November 26, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

you can use bucket sorting

- Anonymous August 03, 2014 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More