您当前的位置: 首页 > 

通过投票对团队排名

对方正在debug 发布时间:2020-03-01 15:35:02 ,浏览量:9

题目:https://leetcode-cn.com/problems/rank-teams-by-votes/ 代码:https://leetcode-cn.com/problems/rank-teams-by-votes/solution/c-li-yong-greaterpai-xu-by-wu-bin-cong/ 代码很巧妙orz,用了greater()进行排序。

class Solution {
public:
	string rankTeams(vector& votes) {
		vector dw(27, vector(27, 0));
		string res;
		for (auto p : votes) {
			for (int i = 0; i             
关注
打赏
1688896170
查看更多评论
0.4717s