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
力扣hot100 零钱兑换 背包 滚动数组
Problem:322.零钱兑换文章目录思路Code思路大佬题解Code⏰时间复杂度:O(n)O(n)O(n)class
Solution
{publicintcoinChange(int[]coins,
兑生
·
2024-01-17 19:57
力扣
hot100
leetcode
算法
职场和发展
力扣hot100 杨辉三角 递归 DP
118.杨辉三角文章目录思路复杂度DP从下往上递归思路参考地址复杂度时间复杂度:添加时间复杂度,示例:O(n)O(n)O(n)空间复杂度:添加空间复杂度,示例:O(n)O(n)O(n)DPclass
Solution
兑生
·
2024-01-17 19:27
力扣
hot100
leetcode
算法
力扣hot100 完全平方数 完全背包 滚动数组 四平方和定理
Problem:279.完全平方数文章目录思路完全背包滚动数组优化四平方和定理思路三叶神解数学解法完全背包⏰时间复杂度:O(n2n)O(n^2\sqrt{n})O(n2n)class
Solution
兑生
·
2024-01-17 19:27
力扣
hot100
leetcode
算法
职场和发展
力扣hot100 打家劫舍 DP 滚动数组
Problem:198.打家劫舍文章目录思路复杂度CodeDP空间优化版思路参考地址复杂度时间复杂度:O(n)O(n)O(n)空间复杂度:O(n)O(n)O(n)Codeclass
Solution
{publicstaticintrob
兑生
·
2024-01-17 19:55
力扣
hot100
leetcode
算法
职场和发展
20240115寻找两数之和
代码class
Solution
:defgetSumIndex(self,nums:List[int],target:int)->List[int]:records=dict()forindex,valueinenumerate
安迪小宝
·
2024-01-17 17:56
每周算法
python
算法
力扣
day-11 统计整数数目
注:无思路参考答案codeclass
Solution
{staticfinalintN=23;staticfinalintM=401;staticfinalintMOD=1000000007;int[][
菜♕卷
·
2024-01-17 15:20
数据结构
算法
100、相同的树
题目链接:递归class
Solution
{public:boolisSameTree(TreeNode*p,TreeNode*q){if(!p&&!
胖柚工作室
·
2024-01-17 14:52
#
二叉树
Leetcode
数据结构
leetcode
404、左叶子之和
题目链接:递归class
Solution
{public:intsumOfLeftLeaves(TreeNode*root){intans=0;if(!
胖柚工作室
·
2024-01-17 14:22
#
二叉树
Leetcode
leetcode
数据结构
【Python3】【力扣题】389. 找不同
class
Solution
:deffindTheDifference(self,s:str
yannan20190313
·
2024-01-17 14:55
力扣题
leetcode
python
387. 字符串中的第一个唯一字符
哈希遍历两趟字符串class
Solution
:deffirstUniqChar(self,s:str)->int:ans=0mp=Counter(s)fori,chinenumerate(s):ifmp
hhmy77
·
2024-01-17 14:51
leetcode
(力扣)第387. 字符串中的第一个唯一字符
解题思路:遍历每个元素,判断其在字符串中出现的次数;不重复返回当前索引,都重复返回-1.题解代码:class
Solution
:deffirstUniqChar(self,s:str)->int:#计算字符串
搞点學術的研究生
·
2024-01-17 14:20
Python3.7实战操作
leetcode
python
字符串
【Python3】【力扣题】387. 字符串中的第一个唯一字符
class
Solution
:deffirstUniqChar(s
yannan20190313
·
2024-01-17 14:49
力扣题
leetcode
python
Day 35 贪心算法 part06
class
Solution
:defmonotoneIncreasingDigits(self,n:int)->int:str_num=str(n)flag=len(str_n
wxw154170875
·
2024-01-17 13:07
贪心算法
算法day35 第八章 贪心算法 part04
class
Solution
{publicbool
Christwr
·
2024-01-17 13:37
算法
贪心算法
java
代码随想录算法训练营 贪心算法part04
一、柠檬水找零860.柠檬水找零-力扣(LeetCode)class
Solution
{publicbooleanlemonadeChange(int[]bills){intfive=0,ten=0;for
阿玛兰妲。
·
2024-01-17 13:36
贪心算法
算法
贪心算法part02算法
leetcode122.买卖股票的最佳时机IIhttps://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/description/class
Solution
Belle_Daisy
·
2024-01-17 13:03
算法
算法
贪心算法
贪心算法part03算法
leetcode1005.K次取反后最大化的数组和https://leetcode.cn/problems/maximize-sum-of-array-after-k-negations/description/class
Solution
Belle_Daisy
·
2024-01-17 13:03
算法
算法
贪心算法
数据结构
贪心算法part04 算法
根据身高重建队列●452.用最少数量的箭引爆气球1.leetcode860.柠檬水找零https://leetcode.cn/problems/lemonade-change/description/class
Solution
Belle_Daisy
·
2024-01-17 13:31
算法
算法
贪心算法
2019年快到了,我不想再留遗憾了!
Atthebeginningoftheyearisalwaysmakere
solution
s!是啊,年初总是做决定的时候,每当年初的时候,我们都信誓旦旦制定出很多计划,多得让我们有点喘不过气!
爱生活的小白
·
2024-01-17 12:55
链表-两两交换链表中的节点
//递归版本class
Solution
{publicListNodeswapPairs(ListNodehead){//basecase退出提交if(head==null||head.next==null
coder_sheep
·
2024-01-17 12:20
算法
链表
算法
数据结构
219. 存在重复元素 II
219.存在重复元素II题目链接:219.存在重复元素II代码如下:class
Solution
{public:boolcontainsNearbyDuplicate(vector&nums,intk){
咔咔咔的
·
2024-01-17 11:33
leetcode
c++
128. 最长连续序列
128.最长连续序列题目链接:128.最长连续序列代码如下:class
Solution
{public:intlongestConsecutive(vector&nums){if(nums.size()=
咔咔咔的
·
2024-01-17 11:33
leetcode
c++
49. 字母异位词分组
49.字母异位词分组题目链接:49.字母异位词分组代码如下://参考leetcode官方题解:https://leetcode.cn/problems/group-anagrams/
solution
s/
咔咔咔的
·
2024-01-17 11:02
leetcode
c++
Resemble Enhance音频失真损坏修复AI工具:一个开源语音超分辨率AI模型
详细介绍:ResembleEnhance:OpenSourceSpeechSuperRe
solution
ModelGitHub:https://github.c
喜好儿aigc
·
2024-01-17 11:14
人工智能
aigc
科技
机器人
ai
20240116-唯一出现次数
代码class
Solution
{public:booluniqueOccurrences(vector&arr){unordered_mapmap,times;for(inti=0;i1){
fuxxu
·
2024-01-17 10:26
哈希算法
算法
数据结构
leetcode
leetcode:2114. 句子中的最多单词数
答案:class
Solution
:defmostWordsFound(self,sentences:List[str])->int:max1=[]foriinsentences:max1.append(
weixin_45852041
·
2024-01-17 10:54
python
leetcode
面试题10(1):斐波那契数列
斐波那契数列的定义:image.png解题思路递归方法image.png循环方法代码递归class
Solution
{public:intFibonacci(intn){if(n==0){return0;
潘雪雯
·
2024-01-17 10:07
2024年1月16日Arxiv热门NLP大模型论文:A Closed-form
Solution
for Weight Optimization in Fully-connected ......
颠覆传统!一次迭代,全层并行,新神经网络权重优化方法,让机器学习效率飞跃引言:机器学习的崛起与发展概述在21世纪初,强大的计算机硬件和工作站的出现使得机器学习得以迅猛发展。作为人工智能的一部分,机器学习领域不断演进,并吸引了大量的研究兴趣,特别是在成功应用于各种学术和工业问题之后。这些机器的强大处理能力甚至在某些情况下超越了人类的表现。机器学习工具对于那些难以建立精确数学模型的实际问题尤其有趣,因
夕小瑶
·
2024-01-17 10:45
自然语言处理
搜索引擎
人工智能
chatgpt
transformer
深度学习
大模型
智能小程序小部件(Widget)媒体组件属性说明和示例代码汇总
属性说明属性名类型默认值必填说明modestringnormal否应用模式,只在初始化时有效,不能动态变更re
solution
stringmedium否分辨率,不支持动态修改;可选值有low:低,medium
IoT砖家涂拉拉
·
2024-01-17 09:06
媒体
小程序
iot
小部件
apache
物联网
video
leetcode-二叉树的最小深度
classTreeNode:#def__init__(self,val=0,left=None,right=None):#self.val=val#self.left=left#self.right=rightclass
Solution
独孤--蝴蝶
·
2024-01-17 09:01
leetcode
leetcode-路径总和
classTreeNode:#def__init__(self,val=0,left=None,right=None):#self.val=val#self.left=left#self.right=rightclass
Solution
独孤--蝴蝶
·
2024-01-17 09:23
leetcode
ARP协议
ARP协议,即地址解析协议,即ARP(AddressRe
solution
Protocol),是根据IP地址获取物理地址的一个TCP/IP协议。
Jizhi_Zhang
·
2024-01-17 09:25
实习学习
学习
笔记
leecode2719 | 统计整数数目
class
Solution
{constintMOD=1'000'000'007;intcalc(string&s,intmin_sum,intmax_sum){intn=s.length();vecto
ttxiaoxiaobai
·
2024-01-17 08:59
综合部
C++
leecode
算法
深度优先
leetcode
【重点!!!】【归并排序】315. 计算右侧小于当前元素的个数
class
Solution
{Listans=newArrayListcountSmaller(int[]nums){intn=nums.length;index=newint[n];count=newint
Allenlzcoder
·
2024-01-17 08:41
归并排序
【重点】【DP】300. 最长递增子序列
class
Solution
{publicintlengthOfLIS(int[]nums){if(nums==null||nums.length==0){return0;}intmaxLen=1,n=nums.length
Allenlzcoder
·
2024-01-17 08:09
DP
Qt下自适应分辨率
代码如下:screenre
solution
.h#ifndefSCREENRE
SOLUTION
_H#defineSCREENRE
SOLUTION
_H#include#include"log.hpp"#
肩上风骋
·
2024-01-17 07:58
Qt
代码随想录算法训练营第三十六天|435. 无重叠区间、763.划分字母区间、56. 合并区间
题目:435.无重叠区间文章链接:代码随想录视频链接:LeetCode:435.无重叠区间题目链接:力扣题目链接图释:class
Solution
{public:staticboolcmp(constvector
一楼二栋
·
2024-01-17 07:04
算法
leetcode
c++
力扣hot100 颜色分类 双指针 滚动赋值
Problem:75.颜色分类文章目录思路解题方法复杂度Code超简洁版思路解题方法描述你的解题方法复杂度时间复杂度:O(n)O(n)O(n)空间复杂度:O(1)O(1)O(1)Codeclass
Solution
兑生
·
2024-01-17 06:09
力扣
hot100
leetcode
算法
职场和发展
GAMES104-现代游戏引擎:从入门到实践 - 物理引擎课程笔记汇总
文章目录0入门资料1物理引擎基本概念Actor&shapesRigidbodydynamicsCollisionDetectionCollisionRe
solution
应用与实践CharactercontrollerRagdoll0
iteapoy
·
2024-01-17 06:02
❤️
游戏开发与计算机图形学
游戏引擎
笔记
【Leetcode】784. Letter Case Permutation
wecantransformeveryletterindividuallytobelowercaseoruppercasetocreateanotherstring.Returnalistofallpossiblestringswecouldcreate.class
Solution
云端漫步_b5aa
·
2024-01-17 06:38
C#使用Stopwatch实现执行耗时及性能监测
IsHighRe
solution
指示计时器是否基于高分辨
忧郁的蛋~
·
2024-01-17 05:51
C#遗忘系列
c#
开发语言
(力扣记录)39. 组合总和
数据结构/算法:回溯时间复杂度:O(2^(target))代码实现:class
Solution
:defcombinationSum(self,candidates:List[int],target:int
Wilson_ZheLIN
·
2024-01-17 05:38
力扣算法题目记录
leetcode
算法
python
(力扣记录)42.接雨水
数据结构:数组时间复杂度:O(N)空间复杂度:O(N)代码实现:class
Solution
:deftrap(self,height:List[int])->int:m=len(height)to_left
Wilson_ZheLIN
·
2024-01-17 05:38
力扣算法题目记录
leetcode
数据结构
算法
python
918. 环形子数组的最大和
参考题解:https://leetcode.cn/problems/maximum-sum-circular-subarray/
solution
s/1152143/wo-hua-yi-bian-jiu-kan-dong-de-ti-jie-ni
cccc楚染rrrr
·
2024-01-17 05:05
LeetCode
java
数据结构
leetcode
35. 搜索插入位置
二分查找class
Solution
{publicintsearchInsert(int[]nums,inttarget){intans=-1;intleft=0,right=nums.length;while
cccc楚染rrrr
·
2024-01-17 05:35
LeetCode
算法
数据结构
java
74. 搜索二维矩阵
特别注意程序中及时return.class
Solution
{publicbooleansearchMatrix(int[][]matrix,inttarget){//booleanans=false;intlo
cccc楚染rrrr
·
2024-01-17 05:04
LeetCode
矩阵
算法
数据结构
剑指offer--18. 二叉树的镜像
思路:递归publicclass
Solution
{publicvoidMirror(TreeNoderoot){if(root==null)return;if(root.left==null&&root.right
yui_blacks
·
2024-01-17 04:40
罗马数字转整数
题目;publicclass
Solution
{publicintRomanToInt(strings){intnumber=0;//number用于存储转换后的数字for(inti=0;i
Diend__
·
2024-01-17 04:36
算法
c#
leetcode
2021-11-06 LeetCode 268. 丢失的数字
要求:实现线性时间复杂度、仅使用额外常数空间的算法代码:class
Solution
{public:intmissingNumber(vector&nums){intn=nums.size();intres
runfang225
·
2024-01-17 03:44
从零单排代码随想录 | Day7 字符串 344.反转字符串、541. 反转字符串II、剑指05.替换空格
344.反转字符串class
Solution
{public:voidreverseString(vector&s){for(inti=0,j=s.size()-1;i
噔噔灯灯
·
2024-01-17 02:18
算法
数据结构
上一页
67
68
69
70
71
72
73
74
下一页
按字母分类:
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
其他