2023-01-31

2301-2310¶
2311-2320¶
2315. 统计星号¶
class Solution {
public:
int countAsterisks(string s) {
int cnt = 0;
2023-01-31
算法

2221-2230¶
2226. 每个小孩最多能分到多少糖果
class Solution {
public:
#define ll long long
bool check(const vector<int> &am
2023-01-31
算法

2101-2110¶
2111-2120¶
2121-2130¶
2131-2140¶
2141-2150¶
2151-2160¶
2161-2170¶
2171-2180¶
2187. 完成旅途的最少时间
class Solution {
2022-01-16
算法

2001-2010¶
2011-2020¶
2021-2030¶
2028. 找出缺失的观测数据¶
class Solution {
public:
vector<int> missingRolls(vector<
2022-01-16
算法

1901-1910¶
1911-1920¶
1921-1930¶
1931-1940¶
1941-1950¶
1951-1960¶
1961-1970¶
1971-1980¶
1979.找出数组的最大公约数¶
class Solution
2022-01-16
算法

1801-1810¶
1811-1820¶
1821-1830¶
1828.统计一个圆中点的数目¶
直接使用两点间距离公式就可以解决,需要注意的是迭代时使用auto &,节省了很多内存和时间。
class Solution {
pu
2022-01-16
算法

1701-1710¶
1711-1720¶
1721-1730¶
1731-1740¶
1741-1750¶
1751-1760¶
1761-1770¶
1771-1780¶
1781-1790¶
1791-1800¶
1797.设计一个验
2022-01-16
算法