E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
solution
Codeforces Round 917 (Div. 2)(A~D)
A-LeastProduct
Solution
观察发现,对于ai0a_i>0ai>0,操作后aia_iai不会变得更大。
阿史大杯茶
·
2024-01-06 18:28
Codeforces
算法
Hyperledger Fabric概述
whatHyperledgerFabricisaplatformfordistributedledger
solution
s,underpinnedbyamodulararchitecturedeliveringhighdegreesofconfidentiality
__XY__
·
2024-01-06 17:21
算法训练营Day39(动态规划)
62.不同路径62.不同路径-力扣(LeetCode)class
Solution
{publicintuniquePaths(intm,intn){//1dp数组mn代表位置,dp[m][n]代表到达这里的途径个数
不吃青椒!
·
2024-01-06 17:28
动态规划
算法
384. Shuffle an Array
384.ShuffleanArrayclass
Solution
:def__init__(self,nums:List[int]):self.nums=numsself.nums1=nums[:]defreset
ujn20161222
·
2024-01-06 16:13
leetcode
1249. Minimum Remove to Make Valid Parentheses
1249.MinimumRemovetoMakeValidParenthesesclass
Solution
:defminRemoveToMakeValid(self,s:str)->str:st=[]fori
ujn20161222
·
2024-01-06 16:13
leetcode
8. String to Integer (atoi)
8.StringtoInteger(atoi)class
Solution
:defmyAtoi(self,s:str)->int:t=""space=0digit=0forvins:#print(v,digit
ujn20161222
·
2024-01-06 16:43
leetcode
maximum-profit-in-job-scheduling
LeetCode-TheWorld'sLeadingOnlineProgrammingLearningPlatformclass
Solution
:defjobScheduling(self,startTime
ujn20161222
·
2024-01-06 16:42
leetcode
leetcode-----99恢复二叉搜索树(recoverTree)
*publicclassTreeNode{*intval;*TreeNodeleft;*TreeNoderight;*TreeNode(intx){val=x;}*}*/class
Solution
{publicvoidrec
haocrossover
·
2024-01-06 16:35
算法
leetcode
数据结构
java
86. 分隔链表
示例:输入:head=1->4->3->2->5->2,x=3输出:1->2->2->4->3->5代码class
Solution
{public:ListNode*partition(ListNode*
vbuer
·
2024-01-06 15:32
7.2 类加载的时机
7.2类加载的时机类从被加载到虚拟机内存中开始,到卸载出内存为止,它的整个生命周期包括:加载(Loading)、验证(Verification)、准备(Preparation)、解析(Re
solution
下海的alpha
·
2024-01-06 15:32
java
加一
Java实现:class
Solution
{publicint[
Bing_o_o
·
2024-01-06 13:35
刷题记录(初级算法-字符串篇)
[TOC]反转字符串和vector同样的进行swap交换就可以了class
Solution
{public:stringreverseString(strings){if(s.size()==0||s.size
MrYun
·
2024-01-06 13:45
leetcode算法题之递归--深度优先搜索总结
文章目录1.全排列2.子集1.全排列全排列class
Solution
{vector>ret;vectorpath;boolcheck[7];//标记nums数组某个下标是否已访问,剪枝使用public:
@A云淡风轻
·
2024-01-06 12:28
算法
深度优先
算法
leetcode
【重点】【BFS】542.01矩阵
题目法1:经典BFS下图中就展示了我们方法:class
Solution
{publicint[][]updateMatrix(int[][]mat){intm=mat.length,n=mat[0].length
Allenlzcoder
·
2024-01-06 12:20
BFS
12.15 log 122.买卖股票的最佳时机 II,55. 跳跃游戏
122.买卖股票的最佳时机IIclass
Solution
{public:intmaxProfit(vector&prices){intresult=0;for(inti=0;i0&&prices[i]-
敲代码的小赵
·
2024-01-06 12:38
java
算法
数据结构
11.29 log
17.电话号码的字母组合class
Solution
{private:conststringletterMap[10]={"","","abc","def","ghi","jkl","mno","pqrs
敲代码的小赵
·
2024-01-06 12:37
java
算法
开发语言
12.05 log
/article/details/108970041C++之SET容器常用函数总结https://blog.csdn.net/vir_lee/article/details/81544618class
Solution
敲代码的小赵
·
2024-01-06 12:37
算法
java
开发语言
12.13 log
455.分发饼干class
Solution
{public:intfindContentChildren(vector&g,vector&s){sort(g.begin(),g.end());sort(s.begin
敲代码的小赵
·
2024-01-06 12:37
算法
数据结构
11.24 log
701.二叉搜索树中的插入操作class
Solution
{public:TreeNode*insertIntoBST(TreeNode*root,intval){if(root==NULL){TreeNode
敲代码的小赵
·
2024-01-06 12:07
算法
leetcode
数据结构
11.26 log
450.删除二叉搜索树中的节点class
Solution
{public:TreeNode*deleteNode(TreeNode*root,intkey){if(root==NULL)returnNULL
敲代码的小赵
·
2024-01-06 12:07
算法
1.5 log 1005.K次取反后最大化的数组和
class
Solution
{public:intlargestSumAfterKNegations(vector&nums,intk){intsum=0;for(inti=0;inums[i])min=
敲代码的小赵
·
2024-01-06 12:03
算法
leetcode
数据结构
169. 多数元素
169.多数元素题目链接:169.多数元素代码如下:class
Solution
{public:intmajorityElement(vector&nums){mapres;for(inti=0;isecond
咔咔咔的
·
2024-01-06 12:00
leetcode
c++
125. 验证回文串
125.验证回文串题目链接:125.验证回文串代码如下:class
Solution
{public:boolisPalindrome(strings){vectorstr;//把字符集中到容器中for(inti
咔咔咔的
·
2024-01-06 12:56
leetcode
c++
代码随想录算法训练营第三十七天|738.单调递增的数字、968.监控二叉树
LeetCode:738.单调自增的数字_哔哩哔哩_bilibiliC++代码:class
Solution
{public:intmonotoneIncreasingDigits(intn){stringstrNum
EstherLockhart
·
2024-01-06 11:33
代码随想录算法训练营
算法
代码随想录算法训练营第三十六天|435. 无重叠区间、763.划分字母区间、56. 合并区间
力扣(LeetCode)官网-全球极客挚爱的技术成长平台文档讲解:代码随想录视频讲解:贪心算法,依然是判断重叠区间|LeetCode:435.无重叠区间_哔哩哔哩_bilibiliC++代码:class
Solution
EstherLockhart
·
2024-01-06 11:03
代码随想录算法训练营
算法
代码随想录算法训练营第三十五天|860.柠檬水找零、406.根据身高重建队列、452. 用最少数量的箭引爆气球
LeetCode:860.柠檬水找零_哔哩哔哩_bilibiliC++代码:class
Solution
{public:boollemonadeChange(vector&bills){intfive=0
EstherLockhart
·
2024-01-06 11:33
代码随想录算法训练营
算法
代码随想录算法训练营第三十一天|455.分发饼干、376. 摆动序列、53. 最大子序和
|LeetCode:455.分发饼干_哔哩哔哩_bilibiliC++代码:class
Solution
{public:intfindContentChildren(vector&g,vector&s){
EstherLockhart
·
2024-01-06 11:32
代码随想录算法训练营
算法
代码随想录算法训练营第三十二天|122.买卖股票的最佳时机II、 55. 跳跃游戏、45.跳跃游戏II
LeetCode:122.买卖股票最佳时机II_哔哩哔哩_bilibiliC++代码:class
Solution
{public:intmaxProfit(vector&prices){intresult
EstherLockhart
·
2024-01-06 11:32
代码随想录算法训练营
算法
代码随想录算法训练营第六天|242.有效的字母异位词、349. 两个数组的交集、202. 快乐数、1. 两数之和
C++代码:class
Solution
{public:bo
EstherLockhart
·
2024-01-06 11:02
代码随想录算法训练营
算法
代码随想录算法训练营第二十七天|39. 组合总和、40.组合总和II、131.分割回文串
_哔哩哔哩_bilibiliC++代码:class
Solution
{public:vectorpath;vector>result;voidbacktrack(vector&candidates,i
EstherLockhart
·
2024-01-06 11:02
代码随想录算法训练营
算法
代码随想录算法训练营第三十八天|509. 斐波那契数、70. 爬楼梯、746. 使用最小花费爬楼梯
-力扣(LeetCode)文档讲解:代码随想录视频讲解:手把手带你入门动态规划|LeetCode:509.斐波那契数_哔哩哔哩_bilibiliC++代码:class
Solution
{public:intfib
EstherLockhart
·
2024-01-06 11:00
代码随想录算法训练营
算法
中原焦点团队王敏燕初级232分享第292天,约练89本周0
一、SFBT的重要基本信念包括9条(Trepper等,2010):1.基于建构解决之道(
Solution
building),而非问题解决(Problemsolving)。
娴子妹妹
·
2024-01-06 09:16
剑指Offer:26-二叉搜索树与双向链表
intval;structTreeNode*left;structTreeNode*right;TreeNode(intx):val(x),left(NULL),right(NULL){}};*/class
Solution
jackmxp
·
2024-01-06 09:04
【动态规划精选题目】3、简单多状态模型
、打家劫舍II4、删除并获得点数5、粉刷房子6、力扣309:买卖股票的最佳时机含冷冻期7、买卖股票的最佳时机含手续费8、买卖股票的最佳时机III9、买卖股票的最佳时机IV1、按摩师示例分析:class
Solution
姜暮、
·
2024-01-06 08:13
【算法之路】
动态规划
leetcode
算法
【动态规划精选题目】4、子数组系列
环形子数组的最大和3、力扣152:乘积最大子数组4、乘积为正数的最长子数组长度5、力扣413:等差数列划分6、最大湍(tuan)流子数组7、单词拆分8、环绕字符串中唯一的子字符串1、力扣53:最大子数组和class
Solution
姜暮、
·
2024-01-06 08:13
【算法之路】
动态规划
算法
c++
【动态规划精选题目】2、路径问题模型
个系列【后续持续更新】本篇讲解路径问题模型中的6道经典题,会在讲解题目同时给出AC代码目录1、不同路径2、不同路径23、珠宝的最大价值4、下降路径最小和5、最小路径和6、地下城游戏1、不同路径class
Solution
姜暮、
·
2024-01-06 08:43
【算法之路】
动态规划
算法
关于递归的返回值传递
写leetcode112.路径总和的时候对返回值的理解加深了1.通过成员变量来传递状态首先是一个通过成员变量来传递状态的代码,没有用到递归返回值传递:class
Solution
{public:inttemp
PUdd
·
2024-01-06 06:25
leetcode
算法
leetcode
二分查找(二)
class
Solution
{public:inttakeAttendance(vector&records){intleft=0,right=records.size()-
绝世剑仙纪宁
·
2024-01-06 06:46
算法
算法
leetcode
职场和发展
web开发-springboot-web
:3.2.1.RELEASEinhttps://maven.aliyun.com/nexus/content/groups/publicwascachedinthelocalrepository,re
solution
willnotbereattemptedu
qq_39033580
·
2024-01-06 04:27
前端
spring
boot
后端
双指针|11.盛最多水的容器
题目链接:11.盛最多水的容器解题思路及代码:#暴力法超时class
Solution
{publicintmaxArea(int[]height){intresul
没脑袋的喵
·
2024-01-06 02:25
代码随想录
java
数据结构
118. 杨辉三角
示例1:输入:numRows=5输出:[[1],[1,1],[1,2,1],[1,3,3,1],[1,4,6,4,1]]示例2:输入:numRows=1输出:[[1]]class
Solution
{public
恋上豆沙包
·
2024-01-06 00:37
leetcode
算法
LeetCode-无重复字符的最长子串(3)
代码:class
Solution
{publicintlengthOfLongestSubstring(Strings){Setocc=newHashSet();intlen=s.length();intrk
炙热的大叔
·
2024-01-06 00:58
leetcode
算法
3sum closet
在3sum基础上加了一个比较class
Solution
(object):defthreeSumClosest(self,nums,target):""":typenums:List[int]:typetarget
April63
·
2024-01-06 00:32
两数之和【哈希】
复杂度时间复杂度:添加时间复杂度,示例:O(n)O(n)O(n)空间复杂度:添加空间复杂度,示例:O(n)O(n)O(n)Codeclass
Solution
:deftwoSu
Alan_Lowe
·
2024-01-06 00:45
研一开始刷LeetCode
哈希算法
算法
数组中只出现一次的数字
publicclass
Solution
{publicstaticvoidFindNumsAppear
囧略囧
·
2024-01-05 23:59
5.最长回文子串(方法1)
class
Solution
:deflongestPalindrome(self,s):""":types:str:rtype:str"""a=1#a是当前的最大字符长度b=1#b是最大字符长度c=''#
王王韦王奇
·
2024-01-05 23:21
1047. 删除字符串中的所有相邻重复项
我的解class
Solution
{publicStringremoveDuplicates(Strings){Stackstack=newStack0&&ch[slow]==ch[slow-1]){slow
贝耶儿
·
2024-01-05 22:36
数据结构
算法
541. 反转字符串II
双指针法class
Solution
{publicStringreverseStr(Strings,intk){char[]ch=s.toCharArray();for(inti=0;i
贝耶儿
·
2024-01-05 22:36
java
算法
数据结构
Leetcode-199.二叉树的右视图(Python)
0,left=None,right=None):#self.val=val#self.left=left#self.right=rightfromcollectionsimportdequeclass
Solution
蜡笔小祎在线学习
·
2024-01-05 22:34
leetcode
leetcode
算法
python
Leetcode-114.二叉树展开为链表(Python)
classTreeNode:#def__init__(self,val=0,left=None,right=None):#self.val=val#self.left=left#self.right=rightclass
Solution
蜡笔小祎在线学习
·
2024-01-05 22:34
leetcode
leetcode
链表
算法
python
上一页
81
82
83
84
85
86
87
88
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他