花费 26 ms
Leetcode: Reconstruct Itinerary

refer to Recursion https://leetcode.com/discuss/84702/share-my-solution and Iteration https: ...

Mon Feb 08 20:29:00 CST 2016 0 3695
LeetCode 1057. Campus Bikes

直接根据最短distance greedy做。 用了优先队列,C++ less<type> 是大的先,所以我们可以重载<符号,把逻辑反过来。 第二种写法不用结 ...

Thu Sep 05 20:05:00 CST 2019 0 685
LeetCode 1057. Campus Bikes

原题链接在这里:https://leetcode.com/problems/campus-bikes/ 题目: On a campus represented as a 2D grid, ther ...

Thu Jan 16 21:20:00 CST 2020 0 1162
Leetcode: Create Maximum Number

We can use greedy method to solve this. num1 can take charge of i(0<=i<=k) numbers and ...

Sat Jan 02 18:17:00 CST 2016 0 2686
[LintCode] Minimum Spanning Tree

Given a list of Connections, which is the Connection class (the city name at both ends of the ...

Wed Sep 27 20:55:00 CST 2017 0 1284

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM