作者eight0 (一直到今天)
站內Prob_Solve
標題Re: [問題] Google Interview Question (1)
時間Mon May 13 10:45:08 2013
稍微試了一下
只要抓A的前兩個字元、B的前兩個字元、C的前兩個字元來比對就行了
http://jsfiddle.net/h73Fr/1/
裡面的測資from討論串推文
--
(* ̄▽ ̄)/‧★*"`'*-.,_,.-*'`"*-.,_☆,.-*`
http://i.imgur.com/oAd97.png
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.250.54.111
推 LPH66:aa ab abaa 05/13 23:10
→ LPH66:奇的是 ab aa abaa 卻有正確答案...你的演算法顯然有些問題 05/13 23:11
→ eight0:下篇我寫一下我的想法 05/13 23:41