花费 19 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