LeetCode 135. Candy (O(n)时间 O(n)和O(1)空间的两种实现) Home » 编程开发 » LeetCode 135. Candy (O(n)时间 O(n)和O(1)空间的两种实现) 贪心算法,从局部最优推广成全局最优。 这里介绍O(n)时间 O(n)和O(1)空间的两种实现方法。 O(n)时 … 阅读更多
Children of the Candy Corn(dfs+bfs) Home » 编程开发 » Children of the Candy Corn(dfs+bfs) Children of the Candy Corn Time Limit:1000MSMemory Limi … 阅读更多
杭电 HDU 1034 Candy Sharing Game Home » 编程开发 » 杭电 HDU 1034 Candy Sharing Game Candy Sharing GameTime Limit: 2000/1000 MS (Java/Others … 阅读更多