- ⭐算法入门⭐《归并排序》简单01 —— LeetCode 21. 合并两个有序链表
英雄哪里出来
《LeetCode算法全集》算法数据结构链表c++归并排序
饭不食,水不饮,题必须刷C语言免费动漫教程,和我一起打卡!《光天化日学C语言》LeetCode太难?先看简单题!《C语言入门100例》数据结构难?不存在的!《数据结构入门》LeetCode太简单?算法学起来!《夜深人静写算法》文章目录一、题目1、题目描述2、基础框架3、原题链接二、解题报告1、思路分析2、时间复杂度3、代码详解三、本题小知识一、题目1、题目描述 将两个不降序链表合并为一个新的不降
- ABC371 解题报告(A-E)
Plossom
赛后总结深度优先算法c++贪心算法图论性能优化
A题意给定A,B之间,B,C之间,A,C之间的不等关系(大于或小于),问A,B,C中排第二大的数是哪一个。解法乍一看没啥思路,原来正解是打表(8种情况秒了)。 if(a==""){ cout"&&c==""&&c==">"){ cout"&&b==""&&b==""){ cout"&&b==">"&&c==""&&b==">"&&c==">"){ cout>n>
- Wi-Fi基础术语
madmanazo
Hardware
AP:accesspoint,即无线接入点,是一个无线网络的创建者,是网络的中心节点;无线路由器就是一个APSTA:station,指每一个连接到无线网络中的终端设备都可以称为一个站点IBSS:IndependentBasicServiceSet,独立基本服务集,IBSS是一种无线拓扑结构,IEEE802.11标准的模式·IBSS模式,又称作独立广播卫星服务,也称为特设模式,是专为点对点连接SSI
- 【早安心语】
壹典心理咨询
【2021-6-9】早安春夏秋冬Nomatterhowdifficultitis,keepyourheadupstrong.Lifeisanawakening.Don’tbeyesterday,don’ttomorrow.Aslongastoday,liveinthepresentandlooktothefuture.Lifeisanattitude.Acalmmindisnaturallybro
- 第一章 错误的开始
空子2022
Pete睁开双眼,看着陌生的房间,印入眼帘的是天花板上的陌生吊灯,身体上的酸痛以及不适感在提醒着他,昨晚在自己身上发生了什么。他用手遮住了自己的脸,脸上因为Vegas煽的巴掌而微痛红肿,画面他已经不想再回忆了,下身的酸痛感,一直在提醒着他昨天发生的一切,都是真的。他想要起身,但又无力地躺着。这时,淋浴间的门打开了,Vegas从里面走了出来,脸上带着一抹微笑,“你醒了,Pete,这就是你反抗我的下场
- 2020-03-14
Jackson__Zhang
班级:L3-B姓名:张文清Jackson学号:20193000624日期:2020/3/10作业序号(WritingAssignmentNo.):001题目:Somepeoplesaythatplayingateamsport,suchassoccerorbasketball,shouldbecompulsoryforstudentsbecauseithasmanybenefits.Whatare
- 日签
403_小蜗牛_北京
知道怎么减肥和真减下来不是一回事,知道怎么投资跟实际赚到钱更是差着十万八千里。逆人性的东西修炼才是关键。Knowinghowtoloseweightisnotthesamethingasactuallylosingit,andknowinghowtoinvestisnotthesamethingasactuallymakingmoney.Itisthecultivationofthingsagai
- VBA 把Excel表当做一个大数据库来操作
码猩
excelVBA专栏excel数据库
VBA把Excel表当做一个大数据库来操作SubSqlQueryBJD(strBillNoAsString)DimstrSqlAsStringDimarrCol()AsStringDimstrLineWhereDimarrWhere()AsStringDimstrWhereValAsStringDimstrResultShowRngAsStringDimstrWhereRngAsStringDim
- 流利说英语A+商务英语学习笔记——第1章搞定面试 第7节《面试之闪亮登场》
Ronnie学英语
面试开局JChasappliedforapositionasamarketingassistant.TodayshewillattendourinterviewandLeonwillbeherinterviewer.Iamrecentgraduate(形容词毕业的)fromUniversity,whereImajorinmarketing.Iwasalsovicepresidentofmycoll
- 牛客周赛 Round 13 解题报告 | 珂学家 | 乘法原理场 + BFS上组合 + 众数贪心
Buoluochuixue
java
题解|#简单计算器##includeintmain(){doublea,b;charoperate;scanf(&迈瑞医疗一面等了面试官十几分钟,更气人在后面上来自我介绍完了就让开始做题。。。题不算很难,做完了之后,讲了下思路,后面根据简历提问。一分钟简单介绍下实习做的东西,我说到一半经纬恒润Java开发一面时长:35min1.聊项目2.gc3.线程共享私有4.类加载过程5.I/O相关6.Spri
- 贪心算法day29|134. 加油站(理解有难度)、135. 分发糖果、860. 柠檬水找零、406. 根据身高重建队列
桃酥403
贪心算法算法代码随想录leetcodec++
贪心算法day29|134.加油站(理解有难度)、135.分发糖果、860.柠檬水找零、406.根据身高重建队列134.加油站暴力非暴力135.分发糖果860.柠檬水找零1.哈希表2.直接法406.根据身高重建队列134.加油站在一条环路上有n个加油站,其中第i个加油站有汽油gas[i]升。你有一辆油箱容量无限的的汽车,从第i个加油站开往第i+1个加油站需要消耗汽油cost[i]升。你从其中的一个
- 【drools】文档2:起步 drools和dmn
等风来不如迎风去
网络服务入门与实战springdrools
GettingStartedDroolsUserGuide8.44.0.FinalGettingStartedFirstRuleProjectThisguidewalksyouthroughtheprocessofcreatingasimpleDroolsapplicationproject.PrerequisitesJDK11+withJAVA_HOMEconfiguredappropriate
- IDEA 常用插件推荐,美观又实用!
攀小黑
intellij-ideajavaide
1、TONGYlLingma-YourAlCodingAssistant.Typeless,Codemore.通义灵码,是一款基于通义大模型的智能编码辅助工具,提供行级/函数级实时续写、自然语言生成代码、单元测试生成、代码注释生成、代码解释、研发智能问答、异常报错排查等能力,并针对阿里云SDK/API的使用场景调优,为开发者带来高效、流畅的编码体验。兼容VisualStudioCode、Visua
- 群晖最新版(DSM 7.2) 下使用 Web Station 部署 flask 项目
goocheez
运维pythonnas前端flaskpython
0.需求由来为了在DSM7.2版本下的群晖NAS里运行我基于flask3.0.2编写的网页应用程序,我上网查了非常多资料,也踩了很多坑。最主要的就是7.2版本的界面与旧版略有不同,而网络上的资料大多基于旧版界面,且大部分仅仅说明了Howtodo,而没有解释Whytodo。因此本人随手记录一下。1.新建虚拟环境最开始的一步,自然是建设虚拟环境,用以支撑Flask的项目运行:从自己的Flask项目中导
- Proto3:File Location - 文件位置
Upping8
Prefernottoput.protofilesinthesamedirectoryasotherlanguagesources.Considercreatingasubpackageprotofor.protofiles,undertherootpackageforyourproject.如果不喜欢将.proto文件和其他语言资源放在同一个目录中。考虑在工程根包下为.proto文件创建一个子包
- [leetcode] 408. Valid Word Abbreviation 解题报告
小榕流光
leetcodestringleetcodestring
题目链接:https://leetcode.com/problems/valid-word-abbreviation/Givenanon-emptystringsandanabbreviationabbr,returnwhetherthestringmatcheswiththegivenabbreviation.Astringsuchas
- VBA核对数据
猛犸象和剑齿虎
OptionExplicitSub分机床产量()DimrngAsRange,rng1AsRangeForEachrngInWorksheets("产量表").Range("c2:c85")ForEachrng1InRange("c2:c81")Ifrng1.Value=rng.ValueThenIfApplication.WorksheetFunction.CountIf(Range("c2:c8
- 探索Go语言构建web应用的宝典:《使用Go语言编写Web应用程序》
束鲲淳Grayson
探索Go语言构建web应用的宝典:《使用Go语言编写Web应用程序》build-web-application-with-golangastaxie/build-web-application-with-golang:是一个用于学习使用Golang构建Web应用程序的教程,从基础知识到实际项目,涵盖了GolangWeb开发的各个方面。项目地址:https://gitcode.com/gh_mirr
- es6中解构赋值
茶卡盐佑星_
es6前端ecmascript
ES6(ECMAScript2015)引入了一种新的表达式——解构赋值(Destructuringassignment),允许你直接从数组或对象中提取数据,赋值给声明的变量。这种方式使得数据提取更加简洁明了。数组解构赋值数组解构赋值允许你从数组中提取值,然后按照你指定的模式对变量进行赋值。基本用法:let[a,b,c]=[1,2,3];console.log(a);//1console.log(b
- 9/22,Sat
FrankLi昆华
Latestartat12:15pm,landedat$67by3:00pm.PumpedsomegasatCostconearSJC,$43,nowat54283.
- makeself使用
weixin_30314793
shell操作系统
makeself是一个小型shell脚本,他可以吧特定目录下的文件打包成为一个shell脚本类似的文件,并且能够像shell脚本一样执行。例如我在test目录下创建了多个shell脚本和一些配置文件,这些脚本在执行时可能会相互调用并读取配置文件。使用makeself工具可以将这些文件统一打包成一个脚本并执行,非常的方便。makeself使用方法:1、首先makeself:http://megast
- makeself的使用
weixin_33963594
shell
使用前的准备:1、首先下载makeself的软件包,其中包含的文件主要有:makeself.shmakeself-header.sh等下载地址:http://www.megastep.org/makeself/2、将这两个文件放入目录/usr/bin下使用:makeself是一个小巧的shell工具,它将你的程序打成一个可执行的shell包,安装更加容易方便。eg:在***install目录下有一
- vue的$watch方法
Pumpkin_xiaoXuan
vue.jselementuijavascript
mounted(){//在生命周期函数执行this.$watch(_=>{//满足条件,触发下面的方法returnthis.pitchOnUserInfo.FFloor&&this.form.orderType},_=>{this.getGasProductByType()})},
- 读懂以太坊源码(2)-重要概念Gas
TimeDoor
gasLimitgasUsedgasPrice以太坊中的gasethereum
在以太坊中,gasLimit、gasUsed和gasPrice是三个重要的概念,它们之间有特定的含义和关系。一、含义gasLimit:含义:每个区块或每笔交易都有一个gas限制。对于一个区块来说,gasLimit是该区块中所有交易可以消耗的最大gas总量。对于一笔交易,发送者可以设置该交易的gas限制,即愿意为这笔交易支付的最大gas量。作用:它的存在是为了防止无限循环或恶意消耗大量gas的情况发
- Thai protest movement
俗世尘沙
Thaiprotestersareback,andangrier,asgovernmentfumblesonCOVID由于泰国政府抗疫不力,示威者卷土重来,群情更为激愤Inairheavywithmonsoonalpressureanddiscontent,theriotpoliceinBangkokunleashedrubberbulletsandteargas.空气里充斥着雨季的压抑和民众的不
- 摘抄2020-04-25
我对这个世界知之甚少
It'saverydifficulterainwhichtobeaperson,justareal,actualperson,insteadofacollectionofpersonalitytraitsselectedfromanendlessAutomatofcharacters.Andifallofusareplay-acting,therecanbenosuchthingasasoulma
- VB.NET版本视频播放器程序源代码QZQ
EYYLTV
.net音视频开发语言visualstudiowindows
ImportsSystem.IOImportsSystem.DrawingImportsSystem.Windows.FormsPublicClassForm1DimopenFileDialogAsNewOpenFileDialogPrivateSubForm1_Load(ByValsenderAsObject,ByValeAsEventArgs)HandlesMyBase.LoadOpenFil
- GNU 汇编语法基础
千千道
linuxgnu汇编linux
目录一、引言二、GNU汇编基本结构1.指令格式2.注释3.段三、寄存器和寻址方式1.寄存器命名2.寻址方式四、指令集1.数据传送指令2.算术运算指令3.逻辑运算指令4.控制流指令五、宏和函数1.宏定义2.函数定义六、总结一、引言在嵌入式系统开发和底层编程中,汇编语言是一种强大的工具。GNU汇编器(Gas)是一种广泛使用的汇编器,支持多种处理器架构。本文将深入介绍GNU汇编语法,帮助读者更好地理解和
- LeetCode 剑指 Offer II 093. 最长斐波那契数列
大涛小先生
LeetCode解题报告leetcode算法动态规划
LeetCode剑指OfferII093.最长斐波那契数列文章目录LeetCode剑指OfferII093.最长斐波那契数列题目描述一、解题关键词二、解题报告1.思路分析2.时间复杂度3.代码示例2.知识点总结相同题目题目描述如果序列X_1,X_2,…,X_n满足下列条件,就说它是斐波那契式的:n>=3对于所有i+2<=n,都有X_i+X_{i+1}=X_{i+2}给定一个严格递增的正整数数组形成
- redis能正常访问,但是springboot编译报错
思想永无止境
JavaEEredisspringboot数据库
redis能正常访问,配置也确定无误,但是springboot编译报错:Failedtobindpropertiesunder‘spring.redis.host’tojava.lang.String原因:我新加了一个类导致:@ConfigurationpublicclassMyConf{@BeanpublicLogAspectlogAspect(){returnnewLogAspect();}}
- jquery实现的jsonp掉java后台
知了ing
javajsonpjquery
什么是JSONP?
先说说JSONP是怎么产生的:
其实网上关于JSONP的讲解有很多,但却千篇一律,而且云里雾里,对于很多刚接触的人来讲理解起来有些困难,小可不才,试着用自己的方式来阐释一下这个问题,看看是否有帮助。
1、一个众所周知的问题,Ajax直接请求普通文件存在跨域无权限访问的问题,甭管你是静态页面、动态网页、web服务、WCF,只要是跨域请求,一律不准;
2、
- Struts2学习笔记
caoyong
struts2
SSH : Spring + Struts2 + Hibernate
三层架构(表示层,业务逻辑层,数据访问层) MVC模式 (Model View Controller)
分层原则:单向依赖,接口耦合
1、Struts2 = Struts + Webwork
2、搭建struts2开发环境
a>、到www.apac
- SpringMVC学习之后台往前台传值方法
满城风雨近重阳
springMVC
springMVC控制器往前台传值的方法有以下几种:
1.ModelAndView
通过往ModelAndView中存放viewName:目标地址和attribute参数来实现传参:
ModelAndView mv=new ModelAndView();
mv.setViewName="success
- WebService存在的必要性?
一炮送你回车库
webservice
做Java的经常在选择Webservice框架上徘徊很久,Axis Xfire Axis2 CXF ,他们只有一个功能,发布HTTP服务然后用XML做数据传输。
是的,他们就做了两个功能,发布一个http服务让客户端或者浏览器连接,接收xml参数并发送xml结果。
当在不同的平台间传输数据时,就需要一个都能解析的数据格式。
但是为什么要使用xml呢?不能使json或者其他通用数据
- js年份下拉框
3213213333332132
java web ee
<div id="divValue">test...</div>测试
//年份
<select id="year"></select>
<script type="text/javascript">
window.onload =
- 简单链式调用的实现技术
归来朝歌
方法调用链式反应编程思想
在编程中,我们可以经常遇到这样一种场景:一个实例不断调用它自身的方法,像一条链条一样进行调用
这样的调用你可能在Ajax中,在页面中添加标签:
$("<p>").append($("<span>").text(list[i].name)).appendTo("#result");
也可能在HQ
- JAVA调用.net 发布的webservice 接口
darkranger
webservice
/**
* @Title: callInvoke
* @Description: TODO(调用接口公共方法)
* @param @param url 地址
* @param @param method 方法
* @param @param pama 参数
* @param @return
* @param @throws BusinessException
- Javascript模糊查找 | 第一章 循环不能不重视。
aijuans
Way
最近受我的朋友委托用js+HTML做一个像手册一样的程序,里面要有可展开的大纲,模糊查找等功能。我这个人说实在的懒,本来是不愿意的,但想起了父亲以前教我要给朋友搞好关系,再加上这也可以巩固自己的js技术,于是就开始开发这个程序,没想到却出了点小问题,我做的查找只能绝对查找。具体的js代码如下:
function search(){
var arr=new Array("my
- 狼和羊,该怎么抉择
atongyeye
工作
狼和羊,该怎么抉择
在做一个链家的小项目,只有我和另外一个同事两个人负责,各负责一部分接口,我的接口写完,并全部测联调试通过。所以工作就剩下一下细枝末节的,工作就轻松很多。每天会帮另一个同事测试一些功能点,协助他完成一些业务型不强的工作。
今天早上到公司没多久,领导就在QQ上给我发信息,让我多协助同事测试,让我积极主动些,有点责任心等等,我听了这话,心里面立马凉半截,首先一个领导轻易说
- 读取android系统的联系人拨号
百合不是茶
androidsqlite数据库内容提供者系统服务的使用
联系人的姓名和号码是保存在不同的表中,不要一下子把号码查询来,我开始就是把姓名和电话同时查询出来的,导致系统非常的慢
关键代码:
1, 使用javabean操作存储读取到的数据
package com.example.bean;
/**
*
* @author Admini
- ORACLE自定义异常
bijian1013
数据库自定义异常
实例:
CREATE OR REPLACE PROCEDURE test_Exception
(
ParameterA IN varchar2,
ParameterB IN varchar2,
ErrorCode OUT varchar2 --返回值,错误编码
)
AS
/*以下是一些变量的定义*/
V1 NUMBER;
V2 nvarc
- 查看端号使用情况
征客丶
windows
一、查看端口
在windows命令行窗口下执行:
>netstat -aon|findstr "8080"
显示结果:
TCP 127.0.0.1:80 0.0.0.0:0 &
- 【Spark二十】运行Spark Streaming的NetworkWordCount实例
bit1129
wordcount
Spark Streaming简介
NetworkWordCount代码
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
- Struts2 与 SpringMVC的比较
BlueSkator
struts2spring mvc
1. 机制:spring mvc的入口是servlet,而struts2是filter,这样就导致了二者的机制不同。 2. 性能:spring会稍微比struts快。spring mvc是基于方法的设计,而sturts是基于类,每次发一次请求都会实例一个action,每个action都会被注入属性,而spring基于方法,粒度更细,但要小心把握像在servlet控制数据一样。spring
- Hibernate在更新时,是可以不用session的update方法的(转帖)
BreakingBad
Hibernateupdate
地址:http://blog.csdn.net/plpblue/article/details/9304459
public void synDevNameWithItil()
{Session session = null;Transaction tr = null;try{session = HibernateUtil.getSession();tr = session.beginTran
- 读《研磨设计模式》-代码笔记-观察者模式
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
/**
* “观
- 重置MySQL密码
chenhbc
mysql重置密码忘记密码
如果你也像我这么健忘,把MySQL的密码搞忘记了,经过下面几个步骤就可以重置了(以Windows为例,Linux/Unix类似):
1、关闭MySQL服务
2、打开CMD,进入MySQL安装目录的bin目录下,以跳过权限检查的方式启动MySQL
mysqld --skip-grant-tables
3、新开一个CMD窗口,进入MySQL
mysql -uroot
 
- 再谈系统论,控制论和信息论
comsci
设计模式生物能源企业应用领域模型
再谈系统论,控制论和信息论
偶然看
- oracle moving window size与 AWR retention period关系
daizj
oracle
转自: http://tomszrp.itpub.net/post/11835/494147
晚上在做11gR1的一个awrrpt报告时,顺便想调整一下AWR snapshot的保留时间,结果遇到了ORA-13541这样的错误.下面是这个问题的发生和解决过程.
SQL> select * from v$version;
BANNER
-------------------
- Python版B树
dieslrae
python
话说以前的树都用java写的,最近发现python有点生疏了,于是用python写了个B树实现,B树在索引领域用得还是蛮多了,如果没记错mysql的默认索引好像就是B树...
首先是数据实体对象,很简单,只存放key,value
class Entity(object):
'''数据实体'''
def __init__(self,key,value)
- C语言冒泡排序
dcj3sjt126com
算法
代码示例:
# include <stdio.h>
//冒泡排序
void sort(int * a, int len)
{
int i, j, t;
for (i=0; i<len-1; i++)
{
for (j=0; j<len-1-i; j++)
{
if (a[j] > a[j+1]) // >表示升序
- 自定义导航栏样式
dcj3sjt126com
自定义
-(void)setupAppAppearance
{
[[UILabel appearance] setFont:[UIFont fontWithName:@"FZLTHK—GBK1-0" size:20]];
[UIButton appearance].titleLabel.font =[UIFont fontWithName:@"FZLTH
- 11.性能优化-优化-JVM参数总结
frank1234
jvm参数性能优化
1.堆
-Xms --初始堆大小
-Xmx --最大堆大小
-Xmn --新生代大小
-Xss --线程栈大小
-XX:PermSize --永久代初始大小
-XX:MaxPermSize --永久代最大值
-XX:SurvivorRatio --新生代和suvivor比例,默认为8
-XX:TargetSurvivorRatio --survivor可使用
- nginx日志分割 for linux
HarborChung
nginxlinux脚本
nginx日志分割 for linux 默认情况下,nginx是不分割访问日志的,久而久之,网站的日志文件将会越来越大,占用空间不说,如果有问题要查看网站的日志的话,庞大的文件也将很难打开,于是便有了下面的脚本 使用方法,先将以下脚本保存为 cutlog.sh,放在/root 目录下,然后给予此脚本执行的权限
复制代码代码如下:
chmo
- Spring4新特性——泛型限定式依赖注入
jinnianshilongnian
springspring4泛型式依赖注入
Spring4新特性——泛型限定式依赖注入
Spring4新特性——核心容器的其他改进
Spring4新特性——Web开发的增强
Spring4新特性——集成Bean Validation 1.1(JSR-349)到SpringMVC
Spring4新特性——Groovy Bean定义DSL
Spring4新特性——更好的Java泛型操作API
Spring4新
- centOS安装GCC和G++
liuxihope
centosgcc
Centos支持yum安装,安装软件一般格式为yum install .......,注意安装时要先成为root用户。
按照这个思路,我想安装过程如下:
安装gcc:yum install gcc
安装g++: yum install g++
实际操作过程发现,只能有gcc安装成功,而g++安装失败,提示g++ command not found。上网查了一下,正确安装应该
- 第13章 Ajax进阶(上)
onestopweb
Ajax
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
- How to determine BusinessObjects service pack and fix pack
blueoxygen
BO
http://bukhantsov.org/2011/08/how-to-determine-businessobjects-service-pack-and-fix-pack/
The table below is helpful. Reference
BOE XI 3.x
12.0.0.
y BOE XI 3.0 12.0.
x.
y BO
- Oracle里的自增字段设置
tomcat_oracle
oracle
大家都知道吧,这很坑,尤其是用惯了mysql里的自增字段设置,结果oracle里面没有的。oh,no 我用的是12c版本的,它有一个新特性,可以这样设置自增序列,在创建表是,把id设置为自增序列
create table t
(
id number generated by default as identity (start with 1 increment b
- Spring Security(01)——初体验
yang_winnie
springSecurity
Spring Security(01)——初体验
博客分类: spring Security
Spring Security入门安全认证
首先我们为Spring Security专门建立一个Spring的配置文件,该文件就专门用来作为Spring Security的配置