Leetcode Daily Question
@leetcodeDailyQuestionChannel
2.46K
subscribers
517
files
2.16K
links
Why are you asking me to do Leetcode for this CSS job?
Download Telegram
Join
Leetcode Daily Question
2.46K subscribers
Leetcode Daily Question
leetcode.cn
2025-09-27
🟢
812.largest-triangle-area
🏷️
Tags
#geometry
#array
#math
Telegraph
largest-triangle-area
给你一个由 X-Y 平面上的点组成的数组 points ,其中 points[i] = [xi, yi] 。从其中取任意三个不同的点组成三角形,返回能组成的最大三角形的面积。与真实值误差在 10-5 内的答案将会视为正确答案。 示例 1: 输入:points = [[0,0],[0,1],[1,0],[0,2],[2,0]] 输出:2.00000 解释:输入中的 5 个点如上图所示,红色的三角形面积最大。 示例 2: 输入:points = [[1,0],[0,0],[0,1]] 输出:0.50000…
来源
答案
Leetcode Daily Question
leetcode.com
2025-09-27
🟢
812.largest-triangle-area
🏷️
Tags
#geometry
#array
#math
Telegraph
largest-triangle-area
Given an array of points on the X-Y plane points where points[i] = [xi, yi], return the area of the largest triangle that can be formed by any three different points. Answers within 10-5 of the actual answer will be accepted. Example 1: Input: points =…
Source
Solution
Leetcode Daily Question
leetcode.cn
2025-12-02
🟡
3623.count-number-of-trapezoids-i
🏷️
Tags
#geometry
#array
#hash_table
#math
Telegraph
count-number-of-trapezoids-i
给你一个二维整数数组 points,其中 points[i] = [xi, yi] 表示第 i 个点在笛卡尔平面上的坐标。 水平梯形 是一种凸四边形,具有 至少一对 水平边(即平行于 x 轴的边)。两条直线平行当且仅当它们的斜率相同。 返回可以从 points 中任意选择四个不同点组成的 水平梯形 数量。 由于答案可能非常大,请返回结果对 109 + 7 取余数后的值。 示例 1: 输入: points = [[1,0],[2,0],[3,0],[2,2],[3,2]] 输出: 3 解释: 有三种不…
来源
答案
Leetcode Daily Question
leetcode.com
2025-12-02
🟡
3623.count-number-of-trapezoids-i
🏷️
Tags
#geometry
#array
#hash_table
#math
Telegraph
count-number-of-trapezoids-i
You are given a 2D integer array points, where points[i] = [xi, yi] represents the coordinates of the ith point on the Cartesian plane. A horizontal trapezoid is a convex quadrilateral with at least one pair of horizontal sides (i.e. parallel to the x-axis).…
Source
Solution
Leetcode Daily Question
leetcode.cn
2025-12-03
🔴
3625.count-number-of-trapezoids-ii
🏷️
Tags
#geometry
#array
#hash_table
#math
Telegraph
count-number-of-trapezoids-ii
给你一个二维整数数组 points,其中 points[i] = [xi, yi] 表示第 i 个点在笛卡尔平面上的坐标。
来源
答案
Leetcode Daily Question
leetcode.com
2025-12-03
🔴
3625.count-number-of-trapezoids-ii
🏷️
Tags
#geometry
#array
#hash_table
#math
Telegraph
count-number-of-trapezoids-ii
You are given a 2D integer array points where points[i] = [xi, yi] represents the coordinates of the ith point on the Cartesian plane. Return the number of unique trapezoids that can be formed by choosing any four distinct points from points. A trapezoid…
Source
Solution