problemscpp
A collection of my answers to algorithm problems in c++.
Public 成员函数 | 所有成员列表
leetcode::minimum_cost_to_make_at_least_one_valid_path_in_a_grid::mycmp结构体 参考

#include <leetcode.h>

Public 成员函数

bool operator() (const pair< int, Node * > &p1, const pair< int, Node * > &p2) const
 

详细描述

在文件 leetcode.h2936 行定义.

成员函数说明

◆ operator()()

bool leetcode::minimum_cost_to_make_at_least_one_valid_path_in_a_grid::mycmp::operator() ( const pair< int, Node * > &  p1,
const pair< int, Node * > &  p2 
) const

在文件 leetcode.cpp8202 行定义.

8202 {
8203 if(p1.first != p2.first) {
8204 return p1.first > p2.first;
8205 }
8206 return p1.second->x + p1.second->y < p2.second->x + p2.second->y;
8207 }

该结构体的文档由以下文件生成: