- 209. 长度最小的子数组(中等 数组 滑动窗口)
风雨中de宁静
leetcode算法排序算法
209.长度最小的子数组给定一个含有n个正整数的数组和一个正整数target。找出该数组中满足其和≥target的长度最小的连续子数组[numsl,numsl+1,…,numsr-1,numsr],并返回其长度。如果不存在符合条件的子数组,返回0。示例1:输入:target=7,nums=[2,3,1,2,4,3]输出:2解释:子数组[4,3]是该条件下的长度最小的子数组。示例2:输入:targe
- 3286、穿越网格图的安全路径
Lenyiin
题解c++算法leetcode
3286、[中等]穿越网格图的安全路径1、题目描述给你一个mxn的二进制矩形grid和一个整数health表示你的健康值。你开始于矩形的左上角(0,0),你的目标是矩形的右下角(m-1,n-1)。你可以在矩形中往上下左右相邻格子移动,但前提是你的健康值始终是正数。对于格子(i,j),如果grid[i][j]=1,那么这个格子视为不安全的,会使你的健康值减少1。如果你可以到达最终的格子,请你返回tr
- leetcode中等.数组(21-40)python
九日火
pythonleetcode
80.RemoveDuplicatesfromSortedArrayII(m-21)Givenasortedarraynums,removetheduplicatesin-placesuchthatduplicatesappearedatmosttwiceandreturnthenewlength.Donotallocateextraspaceforanotherarray,youmustdoth
- 每日一画vol.015|马克笔画过程「阴阳师★一目连」
曾同学的读写画
先放完成图图片发自App朋友心心念念却没有抽到的SSR辅助卡…(具体是什么我也不懂)所以想让我帮他画一个,于是就开始画这个。阴阳师的原画都还长得挺好看的,复杂程度中等不算是特别难,但是人物配色什么的都非常的好看,推荐大家可以用来练习。接下来分享一下绘画过程。图片发自App首先还是草稿。大体确定人物的形态和背后那条龙的位置。这种复杂的临摹图,我没有把草稿画得太过详细。因为后期细化的线稿是用原图做参照
- 数据结构 1
五花肉村长
数据结构算法开发语言c语言visualstudio
1.什么是数据结构数据结构(DataStructure)是计算机存储和组织数据的方式,是指相互之间存在的一种或多种特定关系的数据元的集合。2.什么是算法算法(Algorithm)就是定义良好的计算过程,他取一个或一组的值为输入,并产生出一个或一组值作为输出。简单来说算法就是一系列的计算步骤,用来将输入数据转化成输出结果。3.数据结构和算法的书籍资料学习完数据结构知识,可以去看《剑指offer》和《
- 题解 | #完全数计算#不知道为什么没超时的暴力解法
huaxinjiayou
java
兄弟们,坚持就是胜利啊,找工作从去年秋招就开始找,到五月底才收到第一个offer星环的,然后六月初t咋六月了还有面试啊,有兄弟了解这个部门吗面完了家人们,纯纯kpi啊,上来就是一道题是打印多个字符串的华为接头人话术指南:欲投华为,必看此贴!引流华为招聘提前批【奖】这个夏天,和牛牛一起打卡刷题~Java面试实战项目25届本科找暑期实习的历程飞猪旅行运营岗面经百度视觉算法一面面经感谢牛友们,腾子pcg
- 无人为孤岛,一书一世界
然尔在这
这本书提醒了我们,爱与被爱的能力,付出与接受的意愿,能拯救咸鱼孤独绝境中的我们。一则每秒、动人的故事,关于人生的救赎与转化,他会在你胸中回荡许久许久。——《我再雨中等你》作者加思斯坦小岛书店《小岛书店》书名给我一种平淡温暖的感觉,又好像有种魔力吸引着我,小岛?书店?终于我忍不住还是翻开了书,如饥似渴地看了起来。故事一开头,一个落魄潦倒,失去妻子失去希望的主人公设定重重敲了我的脑袋一下。作为一个书店
- 第五十九集 Resist(二)
编剧刘昌鑫
冷灵在家中等待着黄潇,顺便尝试着与源界建立联系,这些天她已经能够逐渐的感知到了源界,那次被于儿召唤之后,她似乎已经能够动用大脑中的一丝力量了。冷灵用她自己的方式去感知着源界,她知道,现在的能力根本不可能让她回到源界,而且她也有不想回去的理由——黄潇。冷灵闭上眼睛,她睁开眼,发现自己身处在一栋房子面前。在冷灵的身边有一个小女孩经过,她向着房子中跑去。小女孩走到房门面前的时候,房子门自动的打开,里面漆
- 诚实
池池雾
我以前以为诚实是我不可多得的美德。图片发自App到后来,慢慢发现,我竟然有一天在面不改色的撒谎,面对别人的提问,脑袋里已经打好草稿准备着脱口而出。第一个撒谎的对象是老师。那是大学生涯之前第一次也是唯一一次的对老师撒谎。我读书的时候很尊敬每一位老师,对于他们的话言听计从,是那种老师放心的成绩中等的容易忽视的小孩子。可能这样的刻板映像成为了我的保护色。高三的时候,国庆节地理老师布置的作业之一是绘制各大
- 优秀吧,不要留恋身后。
左手咖啡右手coffee
我们行至桥边,径直跨过,又转身烧毁,烧掉了前行的证据,只留下记忆中的滚滚浓烟以及也许曾经湿润的双眼。——汤姆·斯托帕德在中间的人永远都面临被嫉妒和攻击只有当你成为优秀到别人触碰不到的高度你才彻底和言语的攻击与愚昧脱离关系因为你根本不关心身后人你跟他们的差距已经不是一两句话可以改变的事实旁边人的细微言语改变不了你的成功轨迹但这部分人只是少数多数的我们仍然处于大部分人的中等位置就好像是正态分布曲线两端
- 芭睿芭睿:开启生物护肤之门 缔造美丽奇迹
3adced8f1ee8
生物护肤并不是营销噱头,是人类对生物科学的一种新认识和新体验。美国JDD皮肤科药学临床杂志在其2014年第13刊中就写道:护肤品已经从低端的物理防护和中等精细化学上升到了生物护肤时代。一个偶然的机会,在一次世界高级化妆品配方师闭门研讨会中,强微特公司的生物科学家们当时了解到:“在世界化妆品原料中,90%以上是化学合成原料,生物原料只占比不到10%,但恰恰是这10%能够真正引导皮肤自我修护”。强微特
- 还有多少根稻草
家有俩男宝
图片发自App上周一,经理找我谈话,大体内容无非是我手里的几个项目进展情况,我也是根据进展进行了汇报,然后我以为结束的时候,突然经理说今年加薪了,给我加了几百块,中等偏上水平吧。我的内心戏却是最近工作很烦躁,频繁加班,我要换工作。以至于他说完后,我竟然没有表示一下感谢之类的。恰巧有同事敲门打算使用会议室,我便退出了会议室。回来觉得,钱虽不多,也算是一份肯定。最近一种挫败感挥之不去,这份工作完全没有
- 选择自己相信的,相信自己选择的
浊酒一壶慰风尘
“神呐~赶紧把我这个师弟带走吧!”看着手中还在振动的手机,我心中如是想。我这个师弟,是一个应届硕士毕业生,目前接到了我们公司的Offer,所以一门心思的想通过我了解一下公司的情况,我已经记不清有多少次给我打电话了。接通电话,师弟上来就是一句:“我们今年同一批签约你们公司的朋友,刚去公司实习没几天,选择离职了!我特别想问他,他经历了什么?”我听到这句话的时候,脑门一热,就说了一句:“你们现在是不是听
- 儿童推拿穴位精油使用方法
健康生活教练An
结合杭州日报养生道的微信内容---《浙江省中山医院副主任中医师、小儿推拿科主任许丽的儿童推拿方法讲解》加上针对儿童推拿穴位推荐的精油配方以供各位家长学习和参考。退烧剑指直推天河水穴图片发自App图片发自App咳嗽把握“三部曲”原则第一步:止咳,点揉天突穴。颈部下端,胸部上端的凹陷处,是天突穴。天突穴下面就是气管和食管,直接按下去,反而要引起咳嗽。所以,妈妈在做的时候,手指要稍微勾起来一点,轻轻的点
- 《剑指offer第二版》面试题7:重建二叉树(java)
castlet
题目描述输入某二叉树的前序遍历和中序遍历的结果,请重建该二叉树。假设输入的前序遍历和中序遍历的结果都不包含重复数字。例如,输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建的二叉树为:1/\23//\456\/78解题思路:以前序遍历序列A:{1,2,4,7,3,5,6,8}和中序遍历序列B:{4,7,2,1,5,3,8,6}为例。前序遍历的
- 剑指offer 面试题05. 替换空格
Hubhub
题目描述leetcode地址代码classSolution{public:stringreplaceSpace(strings){stringans="";for(autoe:s){if(e==''){ans+="%20";}else{ans+=e;}}returnans;}};
- 利用zabbix监控ogg进程(Windows平台)
Linux运维老纪
万象人生-坚守Zabbix企业级监控岗位运维开发服务器云计算zabbixlinux
欢迎来到我的博客,很高兴能够在这里和您见面!希望您在这里可以感受到一份轻松愉快的氛围,不仅可以获得有趣的内容和知识,也可以畅所欲言、分享您的想法和见解。推荐:Linux运维老纪的首页,持续学习,不断总结,共同进步,活到老学到老导航剑指大厂系列:全面总结运维核心技术:系统基础、数据库、网路技术、系统安全、自动化运维、容器技术、监控工具、脚本编程、云服务等。常用运维工具系列:常用的运维开发工具,zab
- 那次校园暴力,让我不再相信,单纯的年纪不是每个人都单纯。
柯南柯蓝
我初中时有过一次转学经历,虽然我给父母提出的原因是,另外一所学校的教学更好,我转学了一定有信心考上更好的高中。但是更大部分原因是我那时正面临着校园暴力。我认为校园暴力有两种,一种是施虐者使用暴力的手段,让受虐者受到生理和心理的伤害。另一种是施虐者使用语言暴力让受虐者受到心理伤害。我是偏科生,只要是理科的科目成绩都很糟糕,好在那时喜欢文科,刚好能平衡一下,成绩在班里中等偏上。初一和初二上学期,我班的
- flutter之:GetX 的 状态管理
神笔码靓
1.状态管理目前,Flutter的几种状态管理器,大多数都涉及到使用ChangeNotifier来更新widget,这对于中大型应用的性能来说是一个糟糕的方法。在Flutter官方文档中查到,ChangeNotifier应该使用1个或最多2个监听器,这使得它实际上无法用于任何中等或大型应用。1.1其他的状态管理器的差别:BLoC非常安全和高效,但是对于初学者来说非常复杂,这使得人们无法使用Flut
- 921. 使括号有效的最少添加(Python)
玖月晴
难度:★★★☆☆类型:字符串方法:栈题目力扣链接请移步本题传送门更多力扣中等题的解决方案请移步力扣中等题目录给定一个由'('和')'括号组成的字符串S,我们需要添加最少的括号('('或是')',可以在任何位置),以使得到的括号字符串有效。从形式上讲,只有满足下面几点之一,括号字符串才是有效的:它是一个空字符串,或者它可以被写成AB(A与B连接),其中A和B都是有效字符串,或者它可以被写作(A),其
- 学古诗 0001
木语杉言
图片发自App非常佩服古人在诗中的遣词造句。本诗用寥寥几笔,将一位在太阳落下,月夜中等候约定友人出现的盼望之情、急切之感写出。“落日斜、秋风寒”,点明了诗人等待友人的时间是在太阳落下后的夜晚,在浅淡的月光下,秋风舞动,云影、月晕,诗人伫立秋风中等候友人到来。“今夜故人来不来,教人立尽梧桐影。”我约好的朋友,你还会不会来赴约呀,诗人对朋友到来翘首以盼,但等的时间太久了,诗人难免会担心朋友会因秋风阵阵
- 三观。
池鱼思故渊之念念
最近非常喜欢一段话:熬得住无人问津的寂寞,才配拥有诗和远方,其实一直陪着你的,都是那个了不起的自己。我慢慢开始自渡了,变得不悲不喜,在物欲横流的现实里,我接受世界上所有的不公平,承认自己的平凡,并善良带点锋芒,我请求我自己,热爱生活热爱自己。我不否认五官会带动三观,但也不相信三观改不了五官。我羡慕那些能够自己选择人生的人,可却忽略了最重要的一点,就是有能力。李浩源在《令人心动的offer》里,面试
- 薅羊毛群里的东西可以买嘛?薅羊毛群主信息哪来的?
氧惠帮朋友一起省
这些薅羊毛小项目能赚的钱虽然不高,也胜在量多,执行力足够为前提,一天日赚100-200也胜过上班工资了。坏处就是做这种项目没什么积累性,赚得多寡全看你的执行力。尤其是对新人来说,因为很多新人都是初闻薅羊毛项目以为很赚钱,其实并不是,任何项目都是逃不过二八定律,有赚钱的自然也有不赚钱的,就像读书一个班级一个道理,有小部分尖子生。剩余的不是中等就是差生居多。道理我就不多说了,你们加入平台里面试过后慢慢
- 2024华为OD机试D卷 - 小朋友分组最少调整,包含多种语
愤怒的小青春
java
秋招提前批投递记录三一集团2024.06.28投递2024.07.04在线测评三环集团2024.07.01投递+正式入职入职灵犀互娱,转正之后春招太摆了没有找其他的公司,不过个人还是很满意灵犀的。有想问的或者被内推的欢迎华为暑期实习要去嘛才收到暑期实习offer,现在已经在宁王实习了三周,在想要不要跑路去华为直接走会不会被这里拉黑在想有挑战华子最晚实习offer应该没有比我还晚收到实习offer的
- 我为什么选择在大二实习?
沈七QWQ
面试职场和发展实习前端第四范式
本文已收录于专栏⭐️《沈七杂谈》⭐️时间好快,转眼已经入职一个月了,实习要比想象的忙很多,所以一直没腾出时间写篇经验贴。恰逢五一小长假,正好总结一下为在大二能找到实习所做一切的心路历程。先简单介绍一下楼主,目前烂本大二在读,专业是软件工程。在三月份的时候找投了一整个月的前端实习,截止四月初拿到了知乎、喜马拉雅、第四范式三个小厂offer,最后选择了待遇相对比较好的第四范式,目前已经实习了一个月,虽
- MYSQL,SQL SERVER,ORICLE的区别
Codefengfeng
mysql数据库
1.MySQL是由瑞典MySQLAB公司开发的产品,开源免费,占用内存很小,是大学阶段学习的主要对象,常见版本为mysql5.7和mysql8.02.SQLSERVER主要由微软开发,需付费购买后使用,占用内存中等3.ORICLE主要由ORACLE公司(甲骨文)开发,需要付费购买后使用,占用内存最大
- 暑期破防实录——捡漏腾讯
沈七QWQ
沈七杂谈前端程序人生面试
序经历了整整三个月的折磨,暑期实习终于尘埃落定。其实还没收到offer的时候,还会想着到时候录用了该怎么大写特写小作文,但真到了这一天,只剩下一种解脱感,一种摆脱了漫长的焦虑与压抑的淡淡喜悦。或许就像久病之人终于重获健康那样,虽然治愈了,但已然疲惫不堪。现在,我只渴望休息,去睡一个漫长而安稳的觉,能安心的赖床而不自责。不用再机械地刷新牛客动态,而不知道自己到底想要什么。原来就只是这种感觉,周围的一
- 回溯算法
菜包粿
数据结构和算法数据结构
对于回溯算法的入门理解,weiwei大佬这个讲解思路还挺友好的,还有labuladong刚接触会懵就对了(此刻的我),多测试debug看数据是如何运行的,应该慢慢就能领悟了…我也不知道为什么一开始就是中等题♂️,因为刚好力扣每日打卡今天是这题,打开题解都是以这道题为例子,可能是以前学过全排列所以比较好理解,那就撸起袖子加油干把1.全排列(medium)题目:给定一个没有重复数字的序列,返回其所有
- 2018-08-11
小楼昨夜又西风_a3c5
姓名:张海滔公司:扬州市方圆建筑工程有限公司380期(哈尔滨)《六项精进》“感谢组”【日精进打卡第104天】【知~学习】今日背诵《六项精进》大纲1遍,合计232遍今日背诵《大学》开篇1遍,合计232遍;【经典名句分享】发上等愿,结中等缘,享下等福。择高处立,就平处坐,向宽处行。【行~实践】一、修身:1.日行10000步二、齐家:三、建功:1.指挥破锤破s103输送廊碎石2.放s106垫层线3.放扦
- 泡馆之路
子笑子笑
记得读书的时候老师总是语重心长的跟我们说:“要多看书,不要总顾着玩。”我记得那时候的想法是“拿起书本就想睡觉,怎么看得了书呢。”当时我除了课文其他书都没有看过,学习也是在中等水平徘徊。工作了之后我依然不喜欢看书,下班之后也只是待在宿舍哪里都不想去,直到有一次在电视上看到别人介绍的一本书叫《遇见未知的自己》,看书名就挺特别的,于是我有点记住它了,不过我也没有刻意的要去找这本书来看。我的工作是有周末假
- windows下源码安装golang
616050468
golang安装golang环境windows
系统: 64位win7, 开发环境:sublime text 2, go版本: 1.4.1
1. 安装前准备(gcc, gdb, git)
golang在64位系
- redis批量删除带空格的key
bylijinnan
redis
redis批量删除的通常做法:
redis-cli keys "blacklist*" | xargs redis-cli del
上面的命令在key的前后没有空格时是可以的,但有空格就不行了:
$redis-cli keys "blacklist*"
1) "blacklist:12:
[email protected]
- oracle正则表达式的用法
0624chenhong
oracle正则表达式
方括号表达示
方括号表达式
描述
[[:alnum:]]
字母和数字混合的字符
[[:alpha:]]
字母字符
[[:cntrl:]]
控制字符
[[:digit:]]
数字字符
[[:graph:]]
图像字符
[[:lower:]]
小写字母字符
[[:print:]]
打印字符
[[:punct:]]
标点符号字符
[[:space:]]
- 2048源码(核心算法有,缺少几个anctionbar,以后补上)
不懂事的小屁孩
2048
2048游戏基本上有四部分组成,
1:主activity,包含游戏块的16个方格,上面统计分数的模块
2:底下的gridview,监听上下左右的滑动,进行事件处理,
3:每一个卡片,里面的内容很简单,只有一个text,记录显示的数字
4:Actionbar,是游戏用重新开始,设置等功能(这个在底下可以下载的代码里面还没有实现)
写代码的流程
1:设计游戏的布局,基本是两块,上面是分
- jquery内部链式调用机理
换个号韩国红果果
JavaScriptjquery
只需要在调用该对象合适(比如下列的setStyles)的方法后让该方法返回该对象(通过this 因为一旦一个函数称为一个对象方法的话那么在这个方法内部this(结合下面的setStyles)指向这个对象)
function create(type){
var element=document.createElement(type);
//this=element;
- 你订酒店时的每一次点击 背后都是NoSQL和云计算
蓝儿唯美
NoSQL
全球最大的在线旅游公司Expedia旗下的酒店预订公司,它运营着89个网站,跨越68个国家,三年前开始实验公有云,以求让客户在预订网站上查询假期酒店时得到更快的信息获取体验。
云端本身是用于驱动网站的部分小功能的,如搜索框的自动推荐功能,还能保证处理Hotels.com服务的季节性需求高峰整体储能。
Hotels.com的首席技术官Thierry Bedos上个月在伦敦参加“2015 Clou
- java笔记1
a-john
java
1,面向对象程序设计(Object-oriented Propramming,OOP):java就是一种面向对象程序设计。
2,对象:我们将问题空间中的元素及其在解空间中的表示称为“对象”。简单来说,对象是某个类型的实例。比如狗是一个类型,哈士奇可以是狗的一个实例,也就是对象。
3,面向对象程序设计方式的特性:
3.1 万物皆为对象。
- C语言 sizeof和strlen之间的那些事 C/C++软件开发求职面试题 必备考点(一)
aijuans
C/C++求职面试必备考点
找工作在即,以后决定每天至少写一个知识点,主要是记录,逼迫自己动手、总结加深印象。当然如果能有一言半语让他人收益,后学幸运之至也。如有错误,还希望大家帮忙指出来。感激不尽。
后学保证每个写出来的结果都是自己在电脑上亲自跑过的,咱人笨,以前学的也半吊子。很多时候只能靠运行出来的结果再反过来
- 程序员写代码时就不要管需求了吗?
asia007
程序员不能一味跟需求走
编程也有2年了,刚开始不懂的什么都跟需求走,需求是怎样就用代码实现就行,也不管这个需求是否合理,是否为较好的用户体验。当然刚开始编程都会这样,但是如果有了2年以上的工作经验的程序员只知道一味写代码,而不在写的过程中思考一下这个需求是否合理,那么,我想这个程序员就只能一辈写敲敲代码了。
我的技术不是很好,但是就不代
- Activity的四种启动模式
百合不是茶
android栈模式启动Activity的标准模式启动栈顶模式启动单例模式启动
android界面的操作就是很多个activity之间的切换,启动模式决定启动的activity的生命周期 ;
启动模式xml中配置
<activity android:name=".MainActivity" android:launchMode="standard&quo
- Spring中@Autowired标签与@Resource标签的区别
bijian1013
javaspring@Resource@Autowired@Qualifier
Spring不但支持自己定义的@Autowired注解,还支持由JSR-250规范定义的几个注解,如:@Resource、 @PostConstruct及@PreDestroy。
1. @Autowired @Autowired是Spring 提供的,需导入 Package:org.springframewo
- Changes Between SOAP 1.1 and SOAP 1.2
sunjing
ChangesEnableSOAP 1.1SOAP 1.2
JAX-WS
SOAP Version 1.2 Part 0: Primer (Second Edition)
SOAP Version 1.2 Part 1: Messaging Framework (Second Edition)
SOAP Version 1.2 Part 2: Adjuncts (Second Edition)
Which style of WSDL
- 【Hadoop二】Hadoop常用命令
bit1129
hadoop
以Hadoop运行Hadoop自带的wordcount为例,
hadoop脚本位于/home/hadoop/hadoop-2.5.2/bin/hadoop,需要说明的是,这些命令的使用必须在Hadoop已经运行的情况下才能执行
Hadoop HDFS相关命令
hadoop fs -ls
列出HDFS文件系统的第一级文件和第一级
- java异常处理(初级)
白糖_
javaDAOspring虚拟机Ajax
从学习到现在从事java开发一年多了,个人觉得对java只了解皮毛,很多东西都是用到再去慢慢学习,编程真的是一项艺术,要完成一段好的代码,需要懂得很多。
最近项目经理让我负责一个组件开发,框架都由自己搭建,最让我头疼的是异常处理,我看了一些网上的源码,发现他们对异常的处理不是很重视,研究了很久都没有找到很好的解决方案。后来有幸看到一个200W美元的项目部分源码,通过他们对异常处理的解决方案,我终
- 记录整理-工作问题
braveCS
工作
1)那位同学还是CSV文件默认Excel打开看不到全部结果。以为是没写进去。同学甲说文件应该不分大小。后来log一下原来是有写进去。只是Excel有行数限制。那位同学进步好快啊。
2)今天同学说写文件的时候提示jvm的内存溢出。我马上反应说那就改一下jvm的内存大小。同学说改用分批处理了。果然想问题还是有局限性。改jvm内存大小只能暂时地解决问题,以后要是写更大的文件还是得改内存。想问题要长远啊
- org.apache.tools.zip实现文件的压缩和解压,支持中文
bylijinnan
apache
刚开始用java.util.Zip,发现不支持中文(网上有修改的方法,但比较麻烦)
后改用org.apache.tools.zip
org.apache.tools.zip的使用网上有更简单的例子
下面的程序根据实际需求,实现了压缩指定目录下指定文件的方法
import java.io.BufferedReader;
import java.io.BufferedWrit
- 读书笔记-4
chengxuyuancsdn
读书笔记
1、JSTL 核心标签库标签
2、避免SQL注入
3、字符串逆转方法
4、字符串比较compareTo
5、字符串替换replace
6、分拆字符串
1、JSTL 核心标签库标签共有13个,
学习资料:http://www.cnblogs.com/lihuiyy/archive/2012/02/24/2366806.html
功能上分为4类:
(1)表达式控制标签:out
- [物理与电子]半导体教材的一个小问题
comsci
问题
各种模拟电子和数字电子教材中都有这个词汇-空穴
书中对这个词汇的解释是; 当电子脱离共价键的束缚成为自由电子之后,共价键中就留下一个空位,这个空位叫做空穴
我现在回过头翻大学时候的教材,觉得这个
- Flashback Database --闪回数据库
daizj
oracle闪回数据库
Flashback 技术是以Undo segment中的内容为基础的, 因此受限于UNDO_RETENTON参数。要使用flashback 的特性,必须启用自动撤销管理表空间。
在Oracle 10g中, Flash back家族分为以下成员: Flashback Database, Flashback Drop,Flashback Query(分Flashback Query,Flashbac
- 简单排序:插入排序
dieslrae
插入排序
public void insertSort(int[] array){
int temp;
for(int i=1;i<array.length;i++){
temp = array[i];
for(int k=i-1;k>=0;k--)
- C语言学习六指针小示例、一维数组名含义,定义一个函数输出数组的内容
dcj3sjt126com
c
# include <stdio.h>
int main(void)
{
int * p; //等价于 int *p 也等价于 int* p;
int i = 5;
char ch = 'A';
//p = 5; //error
//p = &ch; //error
//p = ch; //error
p = &i; //
- centos下php redis扩展的安装配置3种方法
dcj3sjt126com
redis
方法一
1.下载php redis扩展包 代码如下 复制代码
#wget http://redis.googlecode.com/files/redis-2.4.4.tar.gz
2 tar -zxvf 解压压缩包,cd /扩展包 (进入扩展包然后 运行phpize 一下是我环境中phpize的目录,/usr/local/php/bin/phpize (一定要
- 线程池(Executors)
shuizhaosi888
线程池
在java类库中,任务执行的主要抽象不是Thread,而是Executor,将任务的提交过程和执行过程解耦
public interface Executor {
void execute(Runnable command);
}
public class RunMain implements Executor{
@Override
pub
- openstack 快速安装笔记
haoningabc
openstack
前提是要配置好yum源
版本icehouse,操作系统redhat6.5
最简化安装,不要cinder和swift
三个节点
172 control节点keystone glance horizon
173 compute节点nova
173 network节点neutron
control
/etc/sysctl.conf
net.ipv4.ip_forward =
- 从c面向对象的实现理解c++的对象(二)
jimmee
C++面向对象虚函数
1. 类就可以看作一个struct,类的方法,可以理解为通过函数指针的方式实现的,类对象分配内存时,只分配成员变量的,函数指针并不需要分配额外的内存保存地址。
2. c++中类的构造函数,就是进行内存分配(malloc),调用构造函数
3. c++中类的析构函数,就时回收内存(free)
4. c++是基于栈和全局数据分配内存的,如果是一个方法内创建的对象,就直接在栈上分配内存了。
专门在
- 如何让那个一个div可以拖动
lingfeng520240
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/1999/xhtml
- 第10章 高级事件(中)
onestopweb
事件
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/
- 计算两个经纬度之间的距离
roadrunners
计算纬度LBS经度距离
要解决这个问题的时候,到网上查了很多方案,最后计算出来的都与百度计算出来的有出入。下面这个公式计算出来的距离和百度计算出来的距离是一致的。
/**
*
* @param longitudeA
* 经度A点
* @param latitudeA
* 纬度A点
* @param longitudeB
*
- 最具争议的10个Java话题
tomcat_oracle
java
1、Java8已经到来。什么!? Java8 支持lambda。哇哦,RIP Scala! 随着Java8 的发布,出现很多关于新发布的Java8是否有潜力干掉Scala的争论,最终的结论是远远没有那么简单。Java8可能已经在Scala的lambda的包围中突围,但Java并非是函数式编程王位的真正觊觎者。
2、Java 9 即将到来
Oracle早在8月份就发布
- zoj 3826 Hierarchical Notation(模拟)
阿尔萨斯
rar
题目链接:zoj 3826 Hierarchical Notation
题目大意:给定一些结构体,结构体有value值和key值,Q次询问,输出每个key值对应的value值。
解题思路:思路很简单,写个类词法的递归函数,每次将key值映射成一个hash值,用map映射每个key的value起始终止位置,预处理完了查询就很简单了。 这题是最后10分钟出的,因为没有考虑value为{}的情