花費 27 ms
Lintcode: Sort Colors II 解題報告

Sort Colors II 原題鏈接: http://lintcode.com/zh-cn/problem/sort-colors-ii/# Given an array of n objec ...

Mon Dec 22 07:53:00 CST 2014 11 6414
lintcode: k Sum 解題報告

K SUM My Submissions http://www.lintcode.com/en/problem/k-sum/ 題目來自九章算法 13% ...

Sun Feb 08 16:40:00 CST 2015 1 7926
【刷題】二叉樹非遞歸遍歷

原題鏈接: binary-tree-preorder-traversal binary-tree-inorder-traversal binary-tree-postorder-tra ...

Wed Oct 18 20:51:00 CST 2017 1 2454
Lintcode: Fast Power 解題報告

Fast Power 原題鏈接:http://lintcode.com/en/problem/fast-power/# Calculate the an % b where a, b and n ...

Sat Dec 20 06:08:00 CST 2014 0 4623
Lintcode: Backpack

DP. boolean d[i][j]: For the first i items, can we fill a backpack of size j? true or false ...

Tue Feb 03 17:14:00 CST 2015 2 3299
Lintcode: Subarray Sum 解題報告

Subarray Sum 原題鏈接:http://lintcode.com/zh-cn/problem/subarray-sum/# Given an integer array, find a ...

Sat Dec 20 02:01:00 CST 2014 1 3500
Lintcode: A+B problem

直接+沒什么好說的,關鍵在於不用+的操作: 考驗Bit Operation, 可以用按位^異或兩個操作數對應位以及carry,只是carry是1還是0需要分情況討論。求更優的解法 ...

Tue Feb 03 14:36:00 CST 2015 0 3546

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM