文章
[LeetCode] Encode and Decode Strings
ProblemDesignanalgorithmtoencodealistofstringstoastring.Theencodedstringisthensentoverthenetworkandisdecodedbacktothe
redis系列:通过日志案例学习string命令
前言该文章将通过一个小demo将讲述Redis中的string类型命令。demo将以springboot为后台框架快速开发,iview前端框架进行简单的页面设计,为了方便就不使用DB存储数据了,直接采用Redis作为存储。文中不会讲述springboot用法及项目搭建部分。直接根据功
从构建分布式秒杀系统聊聊分布式锁
<blockquote<strong摘要:</strong前言最近懒成一坨屎,学不动系列一波接一波,大多还都是底层原理相关的。上周末抽时间重读了周志明大湿的JVM高效并发部分,每读一遍都有不同的感悟。路漫漫,借此,把前段时间搞着玩的秒杀案例中的分布式锁深入了解一下。</blockqu
代码整洁之道(二)优雅注释之道
一、BestPractice注释应该声明代码的高层次意图,而非明显的细节反例!clipboard.png(/img/bVbeMOT?w520&h601)说明上文方法用于根据参数生成签名,注释中详细描述了签名算法的实现步骤,这其实就是过度描述代码明显细节
高效客户端持续集成实践之路
<blockquote——安心提交代码,让需求发布不再加班</blockquote背景敏捷开发以用户的需求进化为核心,采用迭代、循序渐进的方法进行软件开发。闲鱼目前采用泳道任务模式进行迭代开发,开发周期是两周一个版本,发版频率比较高,并行开发的业务需求又很多,怎么才能高效的迭
[LintCode/LeetCode] Minimum Time Difference
ProblemGivenalistof24hourclocktimepointsin&34;Hour:Minutes&34;format,findtheminimumminutesdifferencebetweenanytwotimepoi
[LintCode/LeetCode] Count Binary Substrings
ProblemGiveastrings,countthenumberofnonempty(contiguous)substringsthathavethesamenumberof0&39;sand1&39;s,andallthe0&
LeetCode65. Valid Number -- 判断合法数字
描述Validateifagivenstringisnumeric.Someexamples:<code&34;0&34;</code><codetrue</code<code&34;0.1&34;</code><co
LeetCode541. Reverse String II -- 按步长反转字符串
描述Givenastringandanintegerk,youneedtoreversethefirstkcharactersforevery2kcharacterscountingfromthestartofthestring.I
[LintCode] Baseball Game
ProblemYou&39;renowabaseballgamepointrecorder.Givenalistofstrings,eachstringcanbeoneofthe4followingtypes:Integer(one
已加载文章中没有匹配内容,试试其他关键词或清空搜索。