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
247. Strobogrammatic Number II
lookedatupsidedown).Findallstrobogrammaticnumbersthatareoflength=n.Example:Input:n=2Output:["11","69","88","96"]
Solution
Nancyberry
·
2023-12-03 03:12
LeetCode Hot100 75.颜色分类
方法:双指针class
Solution
{publicvoidsortColors(int[]nums){intn=nums.length;intp0=0,p1=
hn小菜鸡
·
2023-12-03 02:37
算法刷题-技巧
leetcode
算法
职场和发展
LeetCode Hot100 287.寻找重复数
方法:快慢指针代码:class
Solution
{publicintfindDuplicate(int[]nums){intslow=0,fast=0;do{slow
hn小菜鸡
·
2023-12-03 02:01
算法刷题-技巧
leetcode
算法
职场和发展
好用到爆的防晒喷雾,学生党都不带考虑就入手的一款!!!
夏天到来,防晒是个大问题防晒做不好,护肤全白做大牌好用的防晒很多但是大多数人不是很愿意去买那么贵的只想找到一款好用又平价的防晒满足日常工作以及外出游玩的需求叮叮叮......M
solution
珍珠防晒喷雾
梦莹々爱美丽
·
2023-12-03 01:43
159.库存管理(TOPk问题!)
基于快排分块思路的代码如下:class
Solution
{public:intgetkey(vector&nums,intleft,intright){intr=rand();returnnums[r%(
。miracle。
·
2023-12-03 01:21
算法
leetcode
数据结构
学习方法
c++
215. 数组中的第K个最大元素
题目:解法一、优先级队列代码#includeclass
Solution
{public:intfindKthLargest(vector&nums,intk){//使用优先级队列直接秒杀!
。miracle。
·
2023-12-03 01:50
数据结构
排序算法
学习方法
c++
代码随想录day2: 977.有序数组的平方 209.长度最小的子数组
class
Solution
{public:vectorsortedSquares(vector&nums){vectorres;intans=1e5;intindex=0;for(inti=0;i0?
quarter-moon
·
2023-12-03 01:49
算法
leetcode
数据结构
代码随想录算法训练营第六十天|84. 柱状图中最大的矩形
代码:#pythonclass
Solution
:deflargestRectangleArea(self,heights:List[int])->int:heights.insert(0,0)heights.append
别看了真C不了一点
·
2023-12-03 00:31
算法
代码随想录算法训练营第五十七天|739. 每日温度、496.下一个更大元素 I
代码:#python//数组中每一位表示之后比今天温度高的天数距离class
Solution
:defdailyTemperatures
别看了真C不了一点
·
2023-12-03 00:01
算法
代码随想录算法训练营第五十九天|503. 下一个更大元素 II、42. 接雨水
代码:#pythonclass
Solution
:defnextGreaterElements(self,nums:List[int])->List[int]:dp=[-1]*l
别看了真C不了一点
·
2023-12-03 00:01
算法
数据结构
PPT NO.4 更改PPT“另存为”分辨率
我们需要对PPT做一些更改:按住“win+R”,在弹出的窗口中输入“regedit”:(打开注册表的意思)找到如下图的路径:找到options后在右边空白处新建项:取名为“ExportBitmapRe
solution
每天都是被迫学习
·
2023-12-03 00:30
powerpoint
计算机视觉每日论文速递[08.21]
(* ̄rǒ ̄)cs.CV方向,今日共计42篇[检测分类相关]:【1】TowardsHigh-Re
solution
SalientObjectDetection面向高分辨率凸起目标检测作者:YiZeng,HuchuanLu
arXiv每日论文速递
·
2023-12-02 23:33
代码随想录算法训练营第三十七天 _ 贪心算法_738.单调自增的数字、968.监督二叉树
入如:322class
Solution
{//java中的String不能修改,需要StringBuilder。
Josue?
·
2023-12-02 23:39
刷题训练心得
算法
贪心算法
代码随想录算法训练营第三十六天| LeetCode435. 无重叠区间、LeetCode763. 划分字母区间、LeetCode56. 合并区间
2:解题思路class
Solution
:deferaseOverlapIntervals(self,intervals:List[List[int]])->int:ifnotinter
喵
·
2023-12-02 23:39
算法训练营(LeetCode)
leetcode
算法
python
贪心算法
代码随想录算法训练营第三十二天 _ 贪心算法_122.买卖股票的最佳时机II 、55. 跳跃游戏 、45.跳跃游戏II。
学习内容:122.买卖股票的最佳时机IIclass
Solution
{//本题的局部最优就是获得利润的每天都作和。
Josue?
·
2023-12-02 23:38
刷题训练心得
算法
贪心算法
游戏
代码随想录算法训练营第三十六天| LeetCode435. 无重叠区间 763.划分字母区间 56. 合并区间
435.无重叠区间题目:力扣class
Solution
{public:staticconstboolcmp(vector&a,vector&b){if(a[1]==b[1])returna[0]>&intervals
冰冰的coco
·
2023-12-02 23:06
代码随想录算法训练营
leetcode
贪心算法
算法
代码随想录算法训练营第三十六天 _ 贪心算法_435.无重叠区间、763.划分字母区间、56.合并区间。
class
Solution
{publicinteraseOverlapIntervals(int[][]intervals){intres=0;Arrays.sort(intervals,(a,b)->
Josue?
·
2023-12-02 23:04
刷题训练心得
算法
贪心算法
《尊重与希望》第一课1
(所以,焦点的含义是“解决之道与优势”即
SOLUTION
)4.SFBT是一个能力导向、复原力导向、动机提升导向、当事人中心、非病理导向、未来导
诗心小鹿
·
2023-12-02 23:23
Leetcode 力扣 62. 不同路径
方法一:DFS(深度优先搜索)class
Solution
{public:intcnt=0;voiddfs(inta,intb,intm,intn){if(a==m-1&&b==n-1){cn
Nior103
·
2023-12-02 22:27
Leetcode题目解析
算法
leetcode
力扣
深度优先遍历
动态规划
初探动态规划算法
dynamicprogrammingisamethodforsolvingacomplexproblembybreakingitdownintoacollectionofsimplersubproblems,solvingeachofthosesubproblemsjustonce,andstoringtheir
solution
s
hbhey
·
2023-12-02 21:06
LeetCode56. 合并区间
LeetCode:56.合并区间-哔哩哔哩】class
Solution
{public:vector>merge(vector>&intervals){if(intervals.size()==0){returnintervals
阿维的博客日记
·
2023-12-02 21:36
LeetCode题库
区间合并
合并区间
19. 删除链表的倒数第 N 个结点
:19.删除链表的倒数第N个结点class
Solution
{publicListNoderemoveNthFromEnd(ListNodehead,intn){ListNodefast=head,slow
阿维的博客日记
·
2023-12-02 21:06
LeetCode题库
链表
双指针
快慢指针
LeetCode22. 括号生成
参考的题解:链接22.括号生成class
Solution
{publicListgenerateParenthesis(intn){Listresult=newArrayListresult,intleft
阿维的博客日记
·
2023-12-02 21:03
LeetCode题库
DFS
回溯
剪枝
ARP安全综合功能示例
ARP安全简介定义ARP(AddressRe
solution
Protocol)安全是针对ARP攻击的一种安全特性,它通过一系列对ARP表项学习和ARP报文处理的限制、检查等措施来保证网络设备的安全性。
陈建华01
·
2023-12-02 21:53
网络
Leetcode_53_最大子序和_hn
解答方法https://leetcode-cn.com/problems/maximum-subarray/
solution
/zui-da-zi-xu-he-cshi-
1只特立独行的猪
·
2023-12-02 20:20
LeetCode 有关哈希表的做题笔记 Python实现
有关哈希表的LeetCode做题笔记,Python实现242.有效的字母异位词ValidAnagramLeetCodeCN第242题链接第一种方法:对两个字符串排序后对比class
Solution
:defisAnagram
划水型派大星
·
2023-12-02 18:13
力扣每日一题(2023-11-30)
力扣每日一题题目:1657.确定两个字符串是否接近日期:2023-11-30用时:21m07s时间:11ms内存:43.70MB代码:class
Solution
{publicbooleancloseStrings
轩辕龙儿
·
2023-12-02 18:19
力扣每日一题
leetcode
算法
122.买卖股票的最佳时机II(不限次数)
题目题解labuladong的状态图解class
Solution
:defmaxProfit(self,prices:List[int])->int:N=len(prices)#定义状态:dp[i][j]
WhyNot?
·
2023-12-02 18:04
LeetCode
leetcode
算法
python
笔记
169. 多数元素
class
Solution
{publicintmajorityElement(int[]nums){HashMaphashmap=newHashMap();for(inti=0;inums.length
刘某某.
·
2023-12-02 17:18
力扣Hot100
leetcode
算法
职场和发展
160. 相交链表
*publicclassListNode{*intval;*ListNodenext;*ListNode(intx){*val=x;*next=null;*}*}*/publicclass
Solution
刘某某.
·
2023-12-02 17:47
力扣Hot100
链表
数据结构
力扣labuladong——一刷day62
979.在二叉树中分配硬币前言说过后序位置的特殊之处,后序位置可以接收到子树的信息,同时也可以通过函数参数接收到父节点传递的信息,这道题就可以比较完美地体现这一特点一、力扣1245.树的直径class
Solution
乱世在摸鱼
·
2023-12-02 16:05
力扣题解
leetcode
算法
java
数据结构
最长回文子串
输入:"cbbd"输出:"bb"来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/longest-palindromic-substringclass
Solution
Zzk_fcc1
·
2023-12-02 15:01
力扣题:字符串的反转-11.23
力扣题-11.23[力扣刷题攻略]Re:从零开始的力扣刷题生活力扣题1:557.反转字符串中的单词III解题思想:先读取单词,然后将单词进行翻转即可class
Solution
(object):defreverseWords
yu~~~
·
2023-12-02 15:17
leetcode
算法
职场和发展
力扣题:字符串的反转-11.22
力扣题-11.22[力扣刷题攻略]Re:从零开始的力扣刷题生活力扣题1:541.反转字符串II解题思想:进行遍历翻转即可class
Solution
(object):defreverseStr(self,
yu~~~
·
2023-12-02 15:17
leetcode
算法
职场和发展
力扣题:字符的统计-11.25
力扣题-11.25[力扣刷题攻略]Re:从零开始的力扣刷题生活力扣题1:387.字符串中的第一个唯一字符解题思想:直接遍历即可class
Solution
(object):deffirstUniqChar
yu~~~
·
2023-12-02 15:46
leetcode
算法
职场和发展
力扣题:字符的统计-11.29
力扣题-11.29[力扣刷题攻略]Re:从零开始的力扣刷题生活力扣题1:032.有效的字母异位词解题思想:直接遍历即可class
Solution
(object):defisAnagram(self,s,
yu~~~
·
2023-12-02 15:46
leetcode
算法
职场和发展
力扣题:字符的统计-12.2
力扣题-12.2[力扣刷题攻略]Re:从零开始的力扣刷题生活力扣题1:423.从英文中重建数字解题思想:有的单词通过一个字母就可以确定,依次确定即可class
Solution
(object):deforiginalDigits
yu~~~
·
2023-12-02 15:46
leetcode
力扣题:字符的统计-11.27
力扣题-11.27[力扣刷题攻略]Re:从零开始的力扣刷题生活力扣题1:389.找不同解题思想:直接遍历统计即可class
Solution
(object):deffindTheDifference(self
yu~~~
·
2023-12-02 15:16
leetcode
java
算法
力扣题:字符串的反转-11.24
力扣题-11.24[力扣刷题攻略]Re:从零开始的力扣刷题生活力扣题1:151.翻转字符串里的单词解题思想:保存字符串中的单词即可class
Solution
(object):defreverseWords
yu~~~
·
2023-12-02 15:41
leetcode
c#
算法
电话号码的字母组合(C++实现)
电话号码的字母组合题目代码思路及代码讲解代码(有注释版)题目电话号码的字母组合代码class
Solution
{constchar*numsStrArr[10]={"","","abc","def","ghi
originalHSL.
·
2023-12-02 15:59
c++
开发语言
算法
63.不同路径II
class
Solution
{publicintuniquePathsWithObstacles(int[][]obstacleGrid){int[][]result=newint[obstacleGrid.length
_道友请留步_
·
2023-12-02 14:51
Day 14周二
反转字符串妈的这个代码我刚刚开始看了半天,想着,里面的那个reverse为什么就不反转啊,结果是我sb了,那个for循环的括号没有把start=i+1;给包含进去,找个start根本一直都是在i的后面,我真的服了我去class
Solution
我爱温州
·
2023-12-02 14:28
每日博客
开发语言
c++
LeetCode 669 修剪二叉搜索树
二刷:经典的递归方法,假设递归函数能解决某个问题在不同情况下调用递归函数,传入的限定条件low和high是不变的本题是修剪二叉搜索树,与LeetCode450删除二叉搜索树不同class
Solution
baj001
·
2023-12-02 12:35
二叉树
leetcode
深度优先
动态规划
上岸算法 I LeetCode Weekly Contest 233解题报告
代码展示class
Solution
{publicintmaxAscendingSum(int[]nums){intres=nums[0];for(intstart=0;startnums[i-1]){sum
上岸算法
·
2023-12-02 12:33
2022-05-05
NewYearre
solution
sIlimitedmyselftotwomodestambitions:todophysicalexerciseseverymorningandtoreadmoreofanevening.Anall-nightpartyonNewYear'sEveprovidedmewithagoodexcusefornotcarryingouteitherofthesenewr
不早不晚的午安
·
2023-12-02 12:56
Leetcode—1657.确定两个字符串是否接近【中等】
2023每日刷题(四十五)Leetcode—1657.确定两个字符串是否接近算法思想源于灵神实现代码class
Solution
{public:boolcloseStrings(stringword1,stringword2
源代码•宸
·
2023-12-02 10:12
LeetCode刷题
leetcode
算法
职场和发展
c++
经验分享
Leetcode—2661.找出叠涂元素【中等】
2661.找出叠涂元素题意解读题目意思就是,按照arr数组从左到右的顺序遍历各个arr[i],涂抹这个值在矩阵中对应位置的网格,一旦你发现它所在的行或者列满员了,就返回这个i解题思路实现代码class
Solution
源代码•宸
·
2023-12-02 10:38
LeetCode刷题
leetcode
算法
c++
经验分享
哈希表
Leetcode 136. 只出现一次的数字
class
Solution
{//任何数与0异或结果都是原来的数//任何数和自身异或结果都是0//异或满足交换律和结合律//a^b^a==(a^a)^b==0^b==bpublicintsingleNumber
rvlt1
·
2023-12-02 08:37
leetcode
算法
java
《功能磁共振多变量模式分析中空间分辨率对解码精度的影响》论文阅读
《Theeffectofspatialre
solution
ondecodingaccuracyinfMRImultivariatepatternanalysis》文章目录一、简介论文的基本信息摘要二、论文主要内容语音刺激的解码任务多变量模式分析
_刘文凯_
·
2023-12-02 07:38
深度学习
基础
论文阅读
202.(查找问题set)Happer Number
class
Solution
{publicbooleanisHappy(intn){Setset=newHashSet();intx=n;while(true){intsum=0;//首先将数字拆分,求sum
Ching_Lee
·
2023-12-02 06:08
上一页
109
110
111
112
113
114
115
116
下一页
按字母分类:
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
其他