过去可知却不可控,未来可控却不可知
Leetcode算法题1601-1700 Leetcode算法题1601-1700
1601-1610¶ 1604.警告一小时内使用相同员工工卡大于等于3次的人¶ 12345678910111213141516171819202122232425class Solution {public: vector <s
2022-01-16
Leetcode算法题1501-1600 Leetcode算法题1501-1600
1501-1510¶ 1511-1520¶ 1521-1530¶ 1531-1540¶ 1541-1550¶ 1551-1560¶ 1561-1570¶ 1571-1580¶ 1581-1590¶ 1588. 所有奇数长度子数组的和¶ 本题
2022-01-16
Leetcode算法题1401-1500 Leetcode算法题1401-1500
1401-1410¶ 1411-1420¶ 1421-1430¶ 1431-1440¶ 1441-1450¶ 1451-1460¶ 1461-1470¶ 1471-1480¶ 1480. 一维数组的动态和¶ 123456789class S
2022-01-16
Leetcode算法题1301-1400 Leetcode算法题1301-1400
1301-1310¶ 1311-1320¶ 1314. 矩阵区域和¶ 12345678910111213141516171819202122232425262728class Solution {public: //获取边界条件
2022-01-16
Leetcode算法题1201-1300 Leetcode算法题1201-1300
1201-1210¶ 1211-1220¶ 1221-1230¶ 1231-1240¶ 1234.替换子串得到平衡字符串¶ 1234567891011121314151617181920212223242526class Solution
2022-01-16
Leetcode算法题1101-1200 Leetcode算法题1101-1200
1101-1110¶ 1111-1120¶ 1143.最长公共子序列¶ 1234567891011121314class Solution {public: int longestCommonSubsequence(string te
2022-01-16
Leetcode算法题1001-1100 Leetcode算法题1001-1100
1001-1010¶ 1011-1020¶ 1021-1030¶ 1031-1040¶ 1041-1050¶ 1051-1060¶ 1061-1070¶ 1071-1080¶ 1081-1090¶ 1091-1100¶ 1094. 拼车¶
2022-01-16
Leetcode算法题《程序员面试金典(第六版)》 Leetcode算法题《程序员面试金典(第六版)》
面试题 05.01. 插入¶ 1234567891011class Solution {public: int insertBits(int N, int M, int i, int j) { for (int k =
2022-01-16
Leetcode算法题901-1000 Leetcode算法题901-1000
901-910¶ 911-920¶ 921-930¶ 931-940¶ 941-950¶ 951-960¶ 961-970¶ 971-980¶ 981-990¶ 991-1000¶
2022-01-16
Leetcode算法题801-900 Leetcode算法题801-900
801-810¶ 811-820¶ 821-830¶ 831-840¶ 841-850¶ 851-860¶ 861-870¶ 871-880¶ 881-890¶ 891-900¶
2022-01-16
Leetcode算法题701-800 Leetcode算法题701-800
701-710¶ 704. 二分查找¶ 12345678910111213141516class Solution {public: int search(vector<int> &nums, int target
2022-01-16
Leetcode算法题601-700 Leetcode算法题601-700
601-610¶ 611-620¶ 621-630¶ 631-640¶ 641-650¶ 651-660¶ 661-670¶ 671-680¶ 681-690¶ 682. 棒球比赛¶ 1234567891011121314151617181
2022-01-16
Leetcode算法题501-600 Leetcode算法题501-600
501-510¶ 503. 下一个更大元素 II¶ 123456789101112131415161718192021class Solution {public: vector<int> nextGreaterEleme
2022-01-16
Leetcode算法题401-500 Leetcode算法题401-500
401-410¶ 411-420¶ 415. 字符串相加¶ 1234567891011121314151617181920212223class Solution {public: string addStrings(string n
2022-01-16
Leetcode算法题301-400 Leetcode算法题301-400
301-310¶ 303. 区域和检索 - 数组不可变¶ 前缀和模板题,注意下下标是从0开始的,适当的将前缀和数组右移一位。 123456789101112131415class NumArray {public: vector<
2022-01-16
Leetcode算法题201-300 Leetcode算法题201-300
201-210¶ 204. 计数质数¶ 123456789101112131415// 埃氏筛 O(loglogn)class Solution {public: int countPrimes(int n) { vec
2022-01-16
2 / 3