标题: Google面试题,你都能答上吗? [打印本页] 作者: mtlca 时间: 2005-3-5 05:18 标题: Google面试题,你都能答上吗? 1. Solve this cryptic equation, realizing of& Y2 e: J% A% F D: ?
- l& a% D& J8 q/ y% `
course that values for M and E could be. t3 U0 ]1 Q" t4 S5 Z: x
. V8 q7 A2 A# w( B- {7 e" U : P. }3 U7 t" v) Q 9 u" W: x% F7 E% @. z( C8 m3.5 O1 M% o+ X: B
( x5 I2 C" t: G5 k9 O* ]2 n* R
13 b& _6 P' J u& \: m: G h+ W& l
$ M, b/ ]; v3 R5 ]2 s1 1& c. e& i2 k4 l/ ^ j( c- G8 V
$ G2 |9 O7 @+ p
2 1 " _5 a& z K0 c ~ 8 t/ J* `' |5 R+ s0 E. ]1 2 1 1 y9 W9 D5 E6 Y. j8 P" c- r- ^' {1 N
1 1 1 2 2 1 3 [, b3 Z8 l1 D* ?: G" \# }* p; }3 ?0 b" h8 ?; f
; o& }2 E: P0 A) W f: T. e- a3 ]7 v! O3 y7 x& H/ O- a
What is the next line?& T1 c; F' |6 I. p: z% d
' `% p# W, u/ z$ l+ x; E$ m3 Z0 u8 l/ s0 A4 S
. B {6 H0 |! q% h4. You are in a maze of twisty little passages, . \+ w. v) t. S3 I; G2 n7 G( V' ?4 j- K. _7 \$ k
all alike. There is a dusty laptop here with a : K/ @8 @3 D! T! r" ~% D% w" ]) C; s0 M3 L5 j. u
weak wireless connection. There are dull,% A/ V1 ^0 x9 t4 ~3 ^7 [" i
; H6 k7 [: f. m0 K0 ]
lifeless gnomes strolling about. What dost ' ^* x6 s5 J$ s, ^& @- ?, F! M! N6 i& B- {
thou do?% S2 `0 V, Y% N+ ?2 ? b
7 l; E& M, q# U: K$ h6 d
( p+ [$ L$ ^6 v9 Q0 l2 V: S# j n, F+ l% |
A) Wander aimlessly, bumping into 3 `6 i1 Y4 u; n5 [" G- y: v8 ` 2 E" Y9 ]$ A1 W) Fobstacles until you are eaten by a grue. 7 a+ t+ R% o9 _; Z7 w# y# K! X2 o- E) Z; z# R
B) Use the laptop as a digging device to) {( w" l% l/ ^, E
5 {* L9 ]: F3 |3 [3 r& utunnel to the next level.. g* Z8 d! @& [: L' Q
. F: ~& W7 V# Q( O+ |5 X. pC) Play MPoRPG until the battery dies " Q8 x: z( i( k3 o0 E " {4 m! O* B6 I4 u4 |2 Nalong with your hopes. 1 d! T9 i$ B6 m. G3 e & Z' g( P. P) I, [( e1 C4 x% f8 u( iD) Use the computer to map the nodes: w1 I* v; H7 \& V3 v9 [
' U6 A1 a/ B6 T* x; K8 y) Bof the maze and discover an exit path. 3 U& i! ` ?. E* L % o1 ?' ]( b# x6 `E) Email your resume to Google, tell the- J O; y! D9 c- k: I4 X
S! V, _) ^' {
lead gnome you quit and find yourself J, M1 C9 E- s/ S2 l6 C
& [6 Z, E" Y$ I7 J$ a
in whole different world. 0 o' E4 W+ p0 r) X6 X j/ L( w1 |9 J# X5 |
8 A4 n" v m7 ?6 V- J 2 ?' e- t# ^7 F8 b0 p5. What's broken with Unix? 5 q7 U( W1 l7 k4 m " w# i* k) T- M# L4 p/ dHow would you fix it? 2 K& p; m: |) C% x ' i8 D+ [/ j7 j3 [; M, R- y, K- G) v
% k) Q+ X2 s @, `) C" I
6. On your first day at Google, you discover - ]& f* Q+ Q: U2 f; q/ D $ ]3 N% Q0 R, pthat your cubicle mate wrote the textbook 6 |$ @$ N/ c6 x, i& ~6 E ; C3 a2 ?8 K" S/ g+ Syou used as a primary resource in your first 5 g: X* G9 f: S, z5 D* }( K" c; n ; t% i6 w5 i1 b5 I2 ]4 r' {, }3 dyear of graduate school. Do you:, I& J& j0 ]# Y" U
2 N8 h8 [; d; }) {! r9 K - F, M$ Y* t" J. @8 E% `9 B! Z Q/ U: F6 L; R7 `& D
A) Fawn obsequiously and ask if you: \+ ^& O0 j0 T+ C$ R3 e4 m# o/ Q
* n1 G3 S+ V3 u+ c# x" z3 R |3 `; M6 |
can have an autograph., z7 Q* e6 H6 J" R# m# [) T
( q) G! \5 l/ E2 g' a: EB) Sit perfectly still and use only soft5 @6 ~( e! d9 S; Z( ?9 `0 d& w
; F! I& Q* E/ w2 x4 G% U2 M
keystrokes to avoid disturbing her + H. @% z$ j8 J ) a0 ~" f) n" g w0 Rconcentration. 3 U; ?3 W( A. `2 _5 C/ w 0 w5 p- t; H; a) L: lC) Leave her daily offerings of granola. {. z) B7 M1 ]5 M- m3 o0 B
; A1 V0 W: ?% Q% x; Wand English toffee from the food bins.& H* k+ a$ v+ W! I. v6 d
4 g s5 u# c7 F/ y7 M& w7 O7 S# P3 q! k) ]
& N7 u8 u, V! s9 A3 b' jD) Quote your favorite formula from the3 G. O/ I. I% h: F- U( n: `
5 E. h/ F( ?' G$ ~2 Y: B$ ctextbook and explain how it's now/ x5 s' ]( F0 E( S0 F- @
4 f' N# K- _0 t" p* E" a9 Z* Pyour mantra. ( J5 t- i3 V% O8 X3 }) o9 z9 |5 Z K8 C 6 S& w @4 b! h. `' _ p) M8 gE) Show her how example 17b could ! _" s( L- \* l, V 8 q+ s' q: A2 s' Ehave been solved with 34 fewer lines7 M- `) }9 q0 Q' `8 Q w
& Z! T3 P$ u r. t! V1 `! Cof code.3 }) C0 f* H) s" l
4 V! M: S* ^ U- E" Z b
7. Which of the following expresses Google + F) a6 x1 }: N0 Q& v j8 Z+ |2 }+ d: g* A+ L1 S. @
over-arching philosophy? N' e5 L) \0 d3 _7 O9 W; T
# @& N* }, c3 P, r( I
0 {9 f$ c V2 Z: s
/ b- X+ t) }! p- E& d/ v8 P
A) "I'm feeling lucky"8 E. F2 k t, t
$ O0 A* x8 ]# w8 o3 D
B) "Don't be evil"1 v) S L9 L- t7 c/ M$ P" l* Y" |
7 }6 e6 f" T }, e
C) "Oh, I already fixed that"9 P, x, c4 ~2 o
; b" ^- `/ [9 s% D: l& w
D) "You should never be more than' R d6 g% O) f; v
+ t! w9 {1 f1 `! y* t; q
50 feet from food"9 G( J- X& p4 ^; ]# f
8 y0 u9 k# `/ P, y6 I0 L
E) All of the above 7 c3 f Z6 @: U6 h& E2 h, U - t5 e4 E6 G% D5 x' z1 G - t C+ m2 n7 f4 R8 z, o1 Q n* v: O( M8 X3 R3 [- r' J8. How many different ways can you color an' X0 L. M) W7 s( A: g8 K
8 _" c' l% g) {7 O2 {5 \( ^
icosahedron with one of three colors on : p2 E+ e3 ?( ?4 J- B1 }/ m. y9 o9 {+ l) R& }! `( w, i7 W5 n
each face? * B/ i7 o# c) H+ K$ b" w- ]: f7 U4 R+ k# M
" @% q1 x8 m& F6 j K1 i# h; I
; |0 B; H7 t4 a9. This space left intentionally blank. Please fill it4 N9 a8 n7 c7 n# R5 K+ O
* Z: n! p$ i3 K* v5 V0 \
with something that improves upon emptiness.+ l' Z: @' a2 Y" M$ O5 r1 o
9 a; l) t4 F& i8 C 6 f8 Q- c- S2 i- N7 V3 \, F# A! C& o: {8 ^
10.On an infinite, two-dimensional, rectangular R4 |/ _) q1 u. i; M+ w7 ], Z
7 P& j! N7 f$ A' J4 W& n' e
lattice of 1-ohm resistors, what is the j: O) ^1 C: t8 g
4 u+ N7 C4 x% ~" D' u9 R! R8 |
resistance between two nodes that are a / ?: D6 W" e+ K3 U f3 T+ M: c, [9 `7 q0 h2 |$ @
knight's move away? 5 U! a* J( k; Q# t- t8 ~/ ?. b3 U. H& V0 [: h4 t8 v
1 W& V. \+ v8 Z
5 j, |' L1 s! P' V, g& o
11.It's 2 PM on a sunny Sunday afternoon in the' t5 B' w5 }: [& u8 |
5 \7 }9 H' t5 J! _8 T! X% hBay Area. You're minutes from the Pacific4 s/ V* E S4 ~/ y1 n
; T2 J9 m- [- q" a) KOcean, redwood forest hiking trails and world* `$ Z) j' s9 t! y+ O
* h- B! e" W" I& h; B Yclass cultural attractions. What do you do? : E1 W. x" h8 s . [- y0 @. ?2 V Z 0 M+ M" B' w# z" o4 i. x: f3 Q. U% k a, q0 |
12.In your opinion, what is the most beautiful# ?, j: A5 N% ?% ~# x* ]2 I
8 {$ A" o3 ~# C1 X0 y" k3 m3 z, tmath equation ever derived? * s; |: ]$ w; Q3 T2 R 9 d, d" X% Z: m) d9 X' v" P ) z: u |, F1 n( H( x0 l$ H% D0 s/ u3 G
13. Which of the following is NOT an actual- d9 ~ b# m" k6 e3 R6 r
! i% O7 n" N3 Cinterest group formed by Google employees? & S5 u% ^, c! G" L. ^' |! N 3 ^3 } v7 D# ]. G# F4 C, a3 U1 O+ S( I
8 m; y/ F2 ~8 D% lA. Women's basketball) g6 i: `2 ~$ _" z, P( t
o5 X$ z; T: d( w& R! t
B. Buffy fans* e! {! ?$ e9 M* ^8 g* X6 {
* Y* W4 r Z8 Y
C. Cricketeers/ @4 p+ {1 Y3 L. ~! P
" L4 T2 ^$ t) H9 q5 n, \: ?$ uD. Nobel winners 0 e$ ~5 S' O7 M5 ~& O& L5 C/ \! r: G* D4 u9 y
E. Wine club 5 c# O$ a" y w# Y7 x& Q% ~6 F) C- [$ n$ r) V& e
1 Q; v0 ]& d$ ~& ]8 ^$ z 9 [$ Y K( z6 H/ `2 x8 \% y8 V" H+ A0 c14.What will be the next great improvement in6 P0 N3 ]- ]5 i+ r* Q! q
* g* T- T( @( U) c3 }0 {+ ?search technology? 9 s8 U8 L; r; q1 {. P6 y + {' i+ E5 F" x7 O- R( r+ Z) F2 m) T0 c1 W# E' H( v
: G% F; O f( j! b2 d; h
15.What is the optimal size of a project team,$ y- g) O1 T7 C
! L- ]% K9 _& [: X
above which additional members do not/ c& u+ t; W! N c
: R, f4 R' _+ ?* B
contribute productivity equivalent to the - L G( d, F& H: e0 w9 S1 i0 A+ K4 j/ P$ V& N' [
percentage increase in the staff size? # [' s7 C: k8 b0 O) ^( e$ h8 ~: M, m7 ^% b
A) 1. ]- _6 L* t% q: j1 ^: Z$ U
! o( [* o: r" `
B) 33 Y. g; T7 V% M% f+ {( K
' ^" H- R) O( P3 ?C) 52 U) Z$ m6 o2 x" I
+ O' a( i q3 e, ?" B
D) 11 ) U+ ^ L; l1 r- I# T6 E, @& g0 P8 q+ g: \; Q% D1 K) q j8 l! A& p# N# t
E) 24 ! f% P! ~- @+ n _* x( {) q: x) I: H' z" I8 I, X6 _6 A4 V7 R6 P
y+ ^5 m6 B% L( R- C
; b6 [. F" y. l5 m
16.Given a triangle ABC, how would you use only" ]% a" f9 ~. R3 L6 r; [( W$ G
$ x# w' x+ g2 m% C% Za compass and straight edge to find a point P 5 D; ^. T5 D r) X J7 B9 X+ a. Z6 c, Y* i( tsuch that triangles ABP, ACP and BCP have& z; E5 Y& g9 u: ^' \
3 a+ f/ ^" ~' ]1 P9 T
equal perimeters? (Assume that ABC is+ S' {/ Z J7 q9 I
4 v, e$ h d4 E1 d) r7 V4 G3 k( ^constructed so that a solution does exist.) ; T7 Q& T8 T' i# M& P 9 }* C- I' T1 X; g7 `8 t! y2 {9 P+ N! E4 ?! I) r
8 ~, ]6 w C" W6 V* T) K" W
17.Consider a function which, for a given whole ^, l5 w" W5 }' X& D + q1 \* a) z; N6 c: W* L( Xnumber n, returns the number of ones required/ Y3 A# Q0 a6 W% A/ h. U! H# L
$ v1 O3 a- m, ^. P
when writing out all numbers between 0 and n.: I* a" f# D: D" {3 j4 @
; @3 B0 h2 t8 ^% j1 ~For example, f(13)=6. Notice that f(1)=1. What 7 u6 }8 e! T6 `& y; I: C! t# ?- h+ M& H& f% B; }! z6 d
is the next largest n such that f(n)=n?/ r- \& m3 G l( L I1 H
* L" C# x) I) h; l/ G% ~0 h, E4 y0 C 5 R' r7 u3 l7 N" _& h- S5 m X M% R+ K3 R. z' ?
19.'Tis known in refined company, that choosing 7 S# w% ]8 |3 {) O+ ]1 M4 E4 |& z) \, K6 M; z9 E
K things out of N can be done in ways as . s+ c1 _4 g" k3 l9 G# P |6 t2 A6 n* h2 Q& w% c7 k! h
many as choosing N minus K from N: I pick K,' ^% Q8 a; H! W" ^- I0 K
4 }' F8 _+ D8 ^
you the remaining. 7 V! [' G( d5 B0 h/ D ( {* B9 R* t7 d- I5 [1 l8 E- m' @. p+ u. P- x |
2 x; u" Q" p$ o2 _/ w- A% L- ?1 jFind though a cooler bijection, where you show , N4 C+ a% v! z+ ~% {0 _6 X! m7 q8 _ Z; W% k
a knack uncanny, of making your choices contain ) f8 s3 |0 a+ o& u " U; J; v f+ W. f. V1 B% sall K of mine. Oh, for pedantry: let K be no more2 z. J: b L4 A. A! a
9 g6 C, Z% n* e+ i5 }0 q
than half N.7 v& ?- U6 `* Z! s' I8 h8 ?+ Y1 V5 [
" Z# l* ]) [. V3 G
7 _! ~" V8 b9 E9 I1 s 9 g( U1 P, C7 k/ I* o/ J20.What number comes next in the sequence: & U% t( U9 S* G! h$ c: l 1 ] F9 M/ Q# z0 o5 K10, 9, 60, 90, 70, 66,? 7 X+ i2 r( M1 O; u7 ~* N # K- Q m- Q& L+ {/ O / Q* k1 p$ g3 A/ X( M' B0 Z% J) M. I2 Y
A)96 , C* x. ^) I9 c, H3 e; ~0 ^$ T: c
B) 10000000000000000000000000000000000 z3 q) s* }- }/ Q
+ j/ M) l) e4 R9 N# ?00000000000000000000000000000000001 D! ]. k7 K# y7 W. m9 R* }0 C, s' D
+ j& k; ~ e1 @. v6 I2 l000000000000000000000000000000000$ }8 s" P/ p j" F# i- c- C
( i2 R# }" |% z; m
C) Either of the above ( ~; P& y" M5 J- T6 Q+ ^4 @5 Y1 u- ?8 [+ f
D) None of the above 5 n1 Z5 ?, ^; e' P4 c$ i. z5 }; N# M! d
9 ^, m2 a1 r2 z" [2 g, g1 f ' I1 Y6 w* @; K4 `0 {; K! {) z) g7 u21.In 29 words or fewer, describe what you% D8 L2 o. L) P( g6 L