526互联
首页
Ai
Java
Python
Android
Mysql
JavaScript
Html
CSS
Buildings
L. Two Buildings[分治]
Problem - L - Codeforces 这个分治不好想,看的这篇题解 首先我们把(a[j]+a[i])*(j-i)转换成(a[j]-b[i])*(j-i) //b[i]=-a[i] 那么此时就变成了左下点b和右上点a求矩形的最大面积 下面是两个性质 1.如果i<j同时a[i]<a[j],那 ......
Buildings
Two
更新时间 2023-08-23
[LeetCode] 2222. Number of Ways to Select Buildings
You are given a 0-indexed binary string s which represents the types of buildings along a street where: s[i] = '0' denotes that the ith building is an ......
Buildings
LeetCode
Number
Select
2222
更新时间 2023-07-19
共2篇 :1/1页
首页
上一页
1
下一页
尾页