Google的21道面试问题

2004年10月底,Google在美国《麻省技术评论》、《LinuxJournal》、《Mensa》、《今日物理》等几本专业杂志上,刊登了一份“Google实验室能力倾向测试”。
试卷开头,蛊惑地写着“试试看!把答案寄回Google,你有希望去Google总部参观,并成为我们其中一员”

1. Solve this cryptic equation, realizing of
course that values for M and E could be
interchanged. No leading zeros are allowed.

WWWDOT - GOOGLE = DOTCOM

2. Write a haiku describing possible methods
for predicting search traffic seasonality.

3.
1
1 1
2 1
1 2 1 1
1 1 1 2 2 1

What is the next line?

4. You are in a maze of twisty little passages,
all alike. There is a dusty laptop here with a
weak wireless connection. There are dull,
lifeless gnomes strolling about. What dost
thou do?

A) Wander aimlessly, bumping into
obstacles until you are eaten by a grue.
B) Use the laptop as a digging device to
tunnel to the next level.
C) Play MPoRPG until the battery dies
along with your hopes.
D) Use the computer to map the nodes
of the maze and discover an exit path.
E) Email your resume to Google, tell the
lead gnome you quit and find yourself
in whole different world.

5. What's broken with Unix?
How would you fix it?

6. On your first day at Google, you discover
that your cubicle mate wrote the textbook
you used as a primary resource in your first
year of graduate school. Do you:

A) Fawn obsequiously and ask if you
can have an autograph.
B) Sit perfectly still and use only soft
keystrokes to avoid disturbing her
concentration.
C) Leave her daily offerings of granola
and English toffee from the food bins.

D) Quote your favorite formula from the
textbook and explain how it's now
your mantra.
E) Show her how example 17b could
have been solved with 34 fewer lines
of code.
7. Which of the following expresses Google□
over-arching philosophy?

A) "I'm feeling lucky"
B) "Don't be evil"
C) "Oh, I already fixed that"
D) "You should never be more than
50 feet from food"
E) All of the above

8. How many different ways can you color an
icosahedron with one of three colors on
each face?

What colors would you choose?

9. This space left intentionally blank. Please fill it
with something that improves upon emptiness.

10.On an infinite, two-dimensional, rectangular
lattice of 1-ohm resistors, what is the
resistance between two nodes that are a
knight's move away?

11.It's 2 PM on a sunny Sunday afternoon in the
Bay Area. You're minutes from the Pacific
Ocean, redwood forest hiking trails and world
class cultural attractions. What do you do?

12.In your opinion, what is the most beautiful
math equation ever derived?

13. Which of the following is NOT an actual
interest group formed by Google employees?

A. Women's basketball
B. Buffy fans
C. Cricketeers
D. Nobel winners
E. Wine club

14.What will be the next great improvement in
search technology?

15.What is the optimal size of a project team,
above which additional members do not
contribute productivity equivalent to the
percentage increase in the staff size?
A) 1
B) 3
C) 5
D) 11
E) 24

16.Given a triangle ABC, how would you use only
a compass and straight edge to find a point P
such that triangles ABP, ACP and BCP have
equal perimeters? (Assume that ABC is
constructed so that a solution does exist.)

17.Consider a function which, for a given whole
number n, returns the number of ones required
when writing out all numbers between 0 and n.
For example, f(13)=6. Notice that f(1)=1. What
is the next largest n such that f(n)=n?

18.What's the coolest hack you've ever written?

19.'Tis known in refined company, that choosing
K things out of N can be done in ways as
many as choosing N minus K from N: I pick K,
you the remaining.

Find though a cooler bijection, where you show
a knack uncanny, of making your choices contain
all K of mine. Oh, for pedantry: let K be no more
than half N.

20.What number comes next in the sequence:
10, 9, 60, 90, 70, 66,?

A)96
B) 1000000000000000000000000000000000
0000000000000000000000000000000000
000000000000000000000000000000000
C) Either of the above
D) None of the above

21.In 29 words or fewer, describe what you
would strive to accomplish if you worked
at Google Labs.

转载于:https://www.cnblogs.com/guoadou/archive/2005/01/31/99849.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: Android面试问题可以包括以下几个方面: 1. Android基础知识:这包括对Android操作系统的理解,四大组件(活动、服务、内容提供者、广播接收器)的使用和生命周期等等。 2. Java编程:Android开发主要使用Java语言,因此对Java语法、OOP(面向对象编程)的理解和Java常用类的使用都是必备的。 3. 布局和界面:Android应用开发离不开界面的设计和布局,对常用布局(如线性布局、相对布局、帧布局)和控件的使用熟练掌握是重要的。 4. 数据存储和管理:了解Android中数据的存储方式,如使用SQLite数据库、SharedPreferences等进行本地数据存储,也要了解网络数据的请求和处理。 5. 多线程和异步编程:对于Android应用来说,处理耗时任务需使用多线程或异步编程方式,了解如何使用AsyncTask、Handler等组件来实现多线程操作是必要的。 6. 性能优化和内存管理:在开发Android应用时,需要对应用的性能进行优化,理解内存泄漏的原因,掌握使用Android Profiler等工具进行性能分析和调优。 7. 第三方库和框架:熟悉常用的Android第三方库和框架(如Retrofit、Glide、ButterKnife),了解它们的用途和基本使用方法。 8. 安全性:了解Android应用开发中的安全性问题,如如何保护用户数据、防止恶意攻击等。 9. 版本控制工具:熟悉使用Git等版本控制工具进行代码管理和团队协作。 10. 实际项目经验:面试官可能会问到你在之前的实际项目中遇到的问题和解决方案,以及你的贡献和角色等。 回答这些问题时,建议结合自己的实际经验和项目经历进行回答,展示自己的能力和对Android开发的理解。 ### 回答2: 在Google的Android面试中,可能会遇到以下问题: 1. 请介绍一下Android平台的架构。 Android平台的架构由Linux内核、硬件驱动、运行时库、应用框架和应用组成。Linux内核是底层硬件控制的核心,硬件驱动提供了与硬件交互的接口,运行时库包括了核心库和C/C++库,应用框架提供了开发应用程序的API接口,应用则是用户使用的应用程序。 2. 请介绍一下Android的四大组件。 Android的四大组件包括Activity、Service、Broadcast Receiver和Content Provider。Activity负责提供用户界面,Service负责后台执行长时间运行的任务,Broadcast Receiver负责接收和处理系统广播消息,Content Provider负责数据共享和存取。 3. 请介绍一下Activity的生命周期。 Activity的生命周期包括onCreate、onStart、onResume、onPause、onStop、onDestroy等方法。当Activity被创建时会调用onCreate方法,当其可见但还无法与用户交互时会调用onStart和onResume方法,当其失去焦点但未被销毁时会调用onPause方法,当其完全不可见时会调用onStop方法,当Activity被销毁时会调用onDestroy方法。 4. 请介绍一下Android的布局文件和代码文件。 Android的布局文件使用XML语言编写,用于定义应用界面的组件和布局方式。代码文件用于处理布局文件中的组件的行为,包括点击事件、数据绑定等逻辑。 5. 请介绍一下Android的Intent。 Intent是Android中用于传递消息和执行动作的对象。它可以用于启动Activity、Service和Broadcast Receiver,也可以用于发送和接收数据。通过Intent,可以在不同的组件之间传递数据和通信。 总结: Android面试中,会涉及到Android平台的架构、四大组件、Activity的生命周期、布局文件和代码文件的概念以及Intent的使用。准备这些内容,能够更好地回答面试官的问题,展示自己的Android开发能力。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值