当前位置:网站首页>Gets the maximum getmaxpoint in the list of all points
Gets the maximum getmaxpoint in the list of all points
2022-04-23 07:48:00 【Dake mountain man】
private static Point Fun(Point p1, Point p2)
{
if (p2.X > p1.X && p2.Y > p1.Y) return p2;
else return p1;
}
static Point GetMaxPoint(List<Point> listHeatPoints)
{
Point maxPoint = new Point(0, 0);
List<Point> result = new List<Point>();
foreach (Point point in listHeatPoints)
{
maxPoint = Fun(maxPoint, point);
}
return maxPoint;
}
版权声明
本文为[Dake mountain man]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230625378909.html
边栏推荐
- MySQL storage engine
- SAP ECC连接SAP PI系统配置
- ABAP 从CDS VIEW 发布OData Service示例
- 快排的练习
- Scrapy modifies the time in the statistics at the end of the crawler as the current system time
- Mongodb starts warning information processing
- Quick sort
- js之预解析
- C#使用拉依达准则(3σ准则)剔除异常数据(.Net剔除一组数据中的奇异值)
- Unable to process jar entry [module info. Class]
猜你喜欢
Shapley Explanation Networks
Apache Hudi 如何加速传统的批处理模式?
js之什么是事件?事件三要素以及操作元素
Install and configure Taobao image NPM (cnpm)
MySQL8.0 安装/卸载 教程【Window10版】
Scrapy modifies the time in the statistics at the end of the crawler as the current system time
Redis connection error err auth < password > called without any password configured for the default user
Date object (JS built-in object)
js之DOM学习获取元素
Rethink | open the girl heart mode of station B and explore the design and implementation of APP skin changing mechanism
随机推荐
SVG中Path Data数据简化及文件夹所有文件批量导出为图片
Page dynamic display time (upgraded version)
Mongodb starts warning information processing
系统与软件安全研究(四)
面经总结2
Nodejs (four) character reading
SampleCameraFilter
Robust and Efficient Quadrotor Trajectory Generation for Fast Autonomous Flight
js之预解析
解决在docker中部署mysql8, 密码正确但无法登陆MySQL问题
Rethink | open the girl heart mode of station B and explore the design and implementation of APP skin changing mechanism
Django uses MySQL database to solve error reporting
利用网页表格导出EXCEL表格加线框及表格内部间距的问题
Unityshader Foundation
向量到一个平面的投影向量
Daily question | fear dominated by reverse linked list
Custom time format (yyyy-mm-dd HH: mm: SS week x)
移动端布局(3D转换、动画)
C reads the registry
自己封装unity的Debug函数