作者FRAXIS (喔喔)
看板Prob_Solve
標題[心得] Coding interview 題目文獻整理
時間Mon Apr 25 01:34:57 2016
https://goo.gl/KJwxtD
在這邊分享我練習 LeetCode、LintCode、Codeeval 和 Codility的心得。
這些題目都不難,所以我想這文件的主要貢獻還是文獻整理,讓正在準
備面試的人可以知道理論上的最佳解是什麼。
像是 如何有效率的使用 queue 來實作 stack。
在 LeetCode 官網上提供的方法是
https://leetcode.com/articles/implement-stack-using-queues/
同一個問題 Geeksforgeeks 網站上提供的解法也類似,
http://www.geeksforgeeks.org/implement-stack-using-queue/
push 或是 pop 其中有一個複雜度會是 O(n) 。
但是實際上可以達到 push 和 pop 都是 O(sqrt(n)) 而且也不難實做。
我同時還整理了一些與題目相關的 Wiki 的連結,有興趣的人可以自己
研究相關知識。
因為我是用英文寫的,而且也沒有花很長時間校稿,如有錯誤請多指正。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 73.15.1.209
※ 文章網址: https://www.ptt.cc/bbs/Prob_Solve/M.1461519302.A.BE2.html
推 shaopin: Congrats first, how many of your notes are matching t 04/26 11:55
→ shaopin: he real interview questions? 04/26 11:55
→ FRAXIS: 應該沒有吧 我只是分享我學習演算法的心得 04/27 10:37
推 dslin: 推呀! 04/29 11:45
推 cscjp6: 推 04/29 12:22
推 A4P8T6X9: 推 04/29 21:48
推 bigbite: 推 05/02 09:10
推 pracinverse: 強 05/05 18:39
推 wgst88w: 推好心~~ 05/11 09:33
推 xsssxxzz: 太厲害, 我clone了, 謝謝 05/31 22:30
推 cebelas: 推整理 06/09 12:41
推 entryword: 推整理! 07/04 02:58
推 Gaogaigar: 推 07/12 23:14
※ 編輯: FRAXIS (76.21.71.91), 03/20/2017 02:52:43