1. 程式人生 > >Cracking the coding interview 智力題之-扔雞蛋問題

Cracking the coding interview 智力題之-扔雞蛋問題

ack TP int inter eight com 技術 png nbsp

問題:

技術分享圖片

解法:

技術分享圖片

這個問題算是一個智力題,沒看過相關題目很難第一時間想出來。其中的“最差情況平衡”思路值得學習。

Cracking the coding interview 智力題之-扔雞蛋問題