mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 03:11:42 +08:00
存量题库数据更新
This commit is contained in:
@@ -27,17 +27,19 @@
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/06/18/1.png" style="width: 529px; height: 241px;">
|
||||
<pre><b>输入:</b>segments = [[1,4,5],[4,7,7],[1,7,9]]
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/06/18/1.png" style="width: 529px; height: 241px;" />
|
||||
<pre>
|
||||
<b>输入:</b>segments = [[1,4,5],[4,7,7],[1,7,9]]
|
||||
<b>输出:</b>[[1,4,14],[4,7,16]]
|
||||
<strong>解释:</strong>绘画借故偶可以表示为:
|
||||
<strong>解释:</strong>绘画结果可以表示为:
|
||||
- [1,4) 颜色为 {5,9} (和为 14),分别来自第一和第二个线段。
|
||||
- [4,7) 颜色为 {7,9} (和为 16),分别来自第二和第三个线段。
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/06/18/2.png" style="width: 532px; height: 219px;">
|
||||
<pre><b>输入:</b>segments = [[1,7,9],[6,8,15],[8,10,7]]
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/06/18/2.png" style="width: 532px; height: 219px;" />
|
||||
<pre>
|
||||
<b>输入:</b>segments = [[1,7,9],[6,8,15],[8,10,7]]
|
||||
<b>输出:</b>[[1,6,9],[6,7,24],[7,8,15],[8,10,7]]
|
||||
<b>解释:</b>绘画结果可以以表示为:
|
||||
- [1,6) 颜色为 9 ,来自第一个线段。
|
||||
@@ -47,8 +49,9 @@
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 3:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/07/04/c1.png" style="width: 529px; height: 289px;">
|
||||
<pre><b>输入:</b>segments = [[1,4,5],[1,4,7],[4,7,1],[4,7,11]]
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/07/04/c1.png" style="width: 529px; height: 289px;" />
|
||||
<pre>
|
||||
<b>输入:</b>segments = [[1,4,5],[1,4,7],[4,7,1],[4,7,11]]
|
||||
<b>输出:</b>[[1,4,12],[4,7,12]]
|
||||
<strong>解释:</strong>绘画结果可以表示为:
|
||||
- [1,4) 颜色为 {5,7} (和为 12),分别来自第一和第二个线段。
|
||||
|
Reference in New Issue
Block a user