Google經典面試題

來源:互聯網
上載者:User

(1)
1
1 1
2 1
1 2 1 1
1 1 1 2 2 1

下一行是什嗎?

答案:

其實每一行都是對上一行的“統計”,而且去掉了漢字。
第一行:“1”統計為:1個1,去掉“個”字,就變成了“11”,也就是第二行。
同理,第二行可統計為:2個1,去掉“個”字,就變成了“21”,也就是第三行。
同理,第三行可統計為:1個2和1個1,去掉“個”字和“和”字,就變成了“1211”,也就是第四行。
同理,第四行可統計為:1個1和1個2和2個1,去掉“個”字和“和”字,就變成了“111221”,也就是第五行。
同理,第五行可統計為:3個1和2個2和1個1,去掉“個”字和“和”字,就變成了“312211”,也就是第六行。

(2) 數列中下一個應該是: 10, 9, 60, 90, 70, 66, ?

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

答案:

This can be looked up and found to be sequence A052196 in the On-Line Encyclopedia of Integer Sequences, which gives the largest positive integer whose English name has n letters. For example, the first few terms are ten, nine, sixty, ninety, seventy, sixty-six,
ninety-six, …. A more correct sequence might be ten, nine, sixty, googol, seventy, sixty-six, ninety-six, googolplex. And also note, incidentally, that the correct spelling of the mathematical term “google” differs from the name of the company that made up
this aptitude test.

第二題的答案和題目沒有看懂,有人幫忙解釋下嗎??

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.