查看完整版本 : LeetCode

darigold 2015-10-22 10:16 PM

[url=http://andrew-algorithm.blogspot.com/2015/09/leetcode-oj-gas-station.html]LeetCode OJ - Gas Station[/url]

darigold 2015-10-26 03:30 AM

[url=http://andrew-algorithm.blogspot.com/2015/09/leetcode-oj-powx-n.html]LeetCode OJ - Pow(x, n)[/url]

darigold 2015-10-29 09:01 PM

[url=http://andrew-algorithm.blogspot.com/2015/09/leetcode-oj-unique-paths-ii.html]LeetCode OJ - Unique Paths II[/url]

darigold 2015-10-31 12:38 AM

[url=http://andrew-algorithm.blogspot.com/2015/09/leetcode-oj-binary-tree-postorder.html]LeetCode OJ - Binary Tree Postorder Traversal[/url]

darigold 2015-11-2 09:46 PM

[url=http://andrew-algorithm.blogspot.com/2015/09/leetcode-oj-flatten-binary-tree-to.html]LeetCode OJ - Flatten Binary Tree to Linked List[/url]

darigold 2015-11-7 02:06 AM

[url=http://andrew-algorithm.blogspot.com/2015/09/leetcode-oj-set-matrix-zeroes.html]LeetCode OJ - Set Matrix Zeroes[/url]

darigold 2015-11-15 12:40 AM

[url=http://andrew-algorithm.blogspot.com/2015/09/leetcode-oj-subsets.html]LeetCode OJ - Subsets[/url]

darigold 2015-11-21 11:56 AM

[url=http://andrew-algorithm.blogspot.com/2015/09/leetcode-oj-subsets-ii.html]LeetCode OJ - Subsets II[/url]

darigold 2015-11-29 01:03 AM

[url=http://andrew-algorithm.blogspot.com/2015/10/leetcode-oj-find-duplicate-number.html]LeetCode OJ - Find the Duplicate Number[/url]

darigold 2015-12-2 02:02 AM

[url=http://andrew-algorithm.blogspot.com/2015/10/leetcode-oj-find-peak-element.html]LeetCode OJ - Find Peak Element[/url]

darigold 2015-12-6 12:02 AM

[url=http://andrew-algorithm.blogspot.com/2015/10/leetcode-oj-multiply-strings.html]LeetCode OJ - Multiply Strings[/url]

darigold 2015-12-8 01:49 AM

[url=http://andrew-algorithm.blogspot.com/2015/10/leetcode-oj-nim-game.html]LeetCode OJ - Nim Game[/url]

darigold 2015-12-15 09:01 AM

[url=http://andrew-algorithm.blogspot.com/2015/10/leetcode-oj-sudoku-solver.html]LeetCode OJ - Sudoku Solver[/url]

darigold 2015-12-20 02:16 PM

[url=http://andrew-algorithm.blogspot.com/2015/11/leetcode-oj-bulls-and-cows.html]LeetCode OJ - Bulls and Cows[/url]

darigold 2015-12-22 01:35 AM

[url=http://andrew-algorithm.blogspot.com/2015/11/leetcode-oj-serialize-and-deserialize.html]LeetCode OJ - Serialize and Deserialize Binary Tree[/url]

darigold 2015-12-31 12:16 AM

[url=http://andrew-algorithm.blogspot.com/2015/11/leetcode-oj-range-sum-query-immutable.html]LeetCode OJ - Range Sum Query - Immutable[/url]

darigold 2016-1-7 10:56 AM

[url=http://andrew-algorithm.blogspot.com/2015/11/leetcode-oj-range-sum-query-mutable.html]LeetCode OJ - Range Sum Query - Mutable[/url]

darigold 2016-1-9 12:21 AM

[url=http://andrew-algorithm.blogspot.com/2015/11/leetcode-oj-range-sum-query-2d-immutable.html]LeetCode OJ - Range Sum Query 2D - Immutable[/url]

鄉貢仁 2016-1-9 09:20 AM

Thanks Ching's sharing. This topic contains useful Algorithms and practical
codes. It is very good for beginner/skillful/professional computer programmers.  :loveliness:

darigold 2016-1-11 11:35 AM

[url=http://andrew-algorithm.blogspot.com/2015/11/leetcode-oj-find-median-from-data-stream.html]LeetCode OJ - Find Median from Data Stream[/url]

darigold 2016-1-18 01:59 AM

[url=http://andrew-algorithm.blogspot.com/2015/11/leetcode-oj-basic-calculator.html]LeetCode OJ - Basic Calculator[/url]

darigold 2016-1-23 05:13 PM

[url=http://andrew-algorithm.blogspot.com/2015/11/leetcode-oj-basic-calculator-ii.html]LeetCode OJ - Basic Calculator II[/url]

fx360bx 2016-1-23 05:18 PM

[quote]原帖由 [i]darigold[/i] 於 2016-1-23 05:13 PM 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=434566826&ptid=24497948][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]
LeetCode OJ - Basic Calculator II [/quote]

想問下係咪一定要用 Polish notation 寫 calculator?
Thanks。

Susan﹏汪汪 2016-1-23 05:20 PM

[quote]原帖由 [i]fx360bx[/i] 於 2016-1-23 05:18 PM 發表 [url=http://www.discuss.com.hk/redirect.php?goto=findpost&pid=434567080&ptid=24497948][img]http://www.discuss.com.hk/images/common/back.gif[/img][/url]


想問下係咪一定要用 Polish notation 寫 calculator?
Thanks。 [/quote]
唔係



[url=http://www.discuss.com.hk/iphone][img=100,23]http://i.discuss.com.hk/d/images/r10/iphoneD.jpg[/img][/url]

fx360bx 2016-1-23 05:22 PM

[quote]原帖由 [i]Susan﹏汪汪[/i] 於 2016-1-23 05:20 PM 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=434567190&ptid=24497948][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]

唔係



[img]http://i.discuss.com.hk/d/images/r10/iphoneD.jpg[/img] [/quote]

我想寫有括號既 calculator…:smile_13:

Susan﹏汪汪 2016-1-23 05:31 PM

[quote]原帖由 [i]fx360bx[/i] 於 2016-1-23 05:22 PM 發表 [url=http://www.discuss.com.hk/redirect.php?goto=findpost&pid=434567257&ptid=24497948][img]http://www.discuss.com.hk/images/common/back.gif[/img][/url]


我想寫有括號既 calculator…:smile_13: [/quote]
括號可以轉做Polish notation
就算有function call嘅都轉到

不過冇話過方法只有一種



[url=http://www.discuss.com.hk/iphone][img=100,23]http://i.discuss.com.hk/d/images/r10/iphoneD.jpg[/img][/url]

fx360bx 2016-1-23 05:34 PM

[quote]原帖由 [i]Susan﹏汪汪[/i] 於 2016-1-23 05:31 PM 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=434567733&ptid=24497948][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]

括號可以轉做Polish notation
就算有function call嘅都轉到

不過冇話過方法只有一種



[img]http://i.discuss.com.hk/d/images/r10/iphoneD.jpg[/img] [/quote]

仲有咩方法?Polish notation 係咪最易做?:loveliness:

Susan﹏汪汪 2016-1-23 05:39 PM

[quote]原帖由 [i]fx360bx[/i] 於 2016-1-23 05:34 PM 發表 [url=http://www.discuss.com.hk/redirect.php?goto=findpost&pid=434567908&ptid=24497948][img]http://www.discuss.com.hk/images/common/back.gif[/img][/url]


仲有咩方法?Polish notation 係咪最易做?:loveliness: [/quote]
最傻嘅方法都可以
甚至可能用傻方法仲易寫



[url=http://www.discuss.com.hk/iphone][img=100,23]http://i.discuss.com.hk/d/images/r10/iphoneD.jpg[/img][/url]

darigold 2016-1-24 12:51 AM

[quote]原帖由 [i]fx360bx[/i] 於 2016-1-23 05:22 PM 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=434567257&ptid=24497948][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]
我想寫有括號既 calculator…:smile_13:
[/quote]

[url=http://andrew-algorithm.blogspot.com/2015/11/leetcode-oj-basic-calculator.html]LeetCode OJ - Basic Calculator[/url] 有括號。

Top down recursive parser 唔難寫。

darigold 2016-1-26 12:22 PM

[url=http://andrew-algorithm.blogspot.com/2015/12/leetcode-oj-populating-next-right.html]LeetCode OJ - Populating Next Right Pointers in Each Node II[/url]
頁: 1 2 3 4 [5] 6 7 8 9 10 11 12 13 14
查看完整版本: LeetCode