10 xyqzki

尚未进行身份认证

wahahahaahahahahah

等级
博文 627
排名 1k+

CENTOS7安装VIM插件YOUCOMPLETEME

来自:Dreamlike博客,本文链接:CentOS7安装Vim插件YouCompleteMeYouCompleteMe这个Vim插件还真不好安装,挺多坑的,折腾了挺久终于最后用上了。测试环境:[broly@localhost~]$cat/etc/redhat-releaseCentOSLinuxrelease7.4.1708(Core)一、更新Vim我安装这个插件的时候,提示

2018-01-22 16:34:48

leetcode -- Two Sum II - Input array is sorted

https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/description/http://blog.csdn.net/coder_orz/article/details/52388066

2017-11-14 23:15:46

notes for setting up my new homepage

godaddyhttp://blog.csdn.net/xyqzki/article/details/22808961?locationNum=1digitaloceanhttps://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04https://www.digitalocean.co

2016-09-28 23:37:43

call back回调函数理解

回调函数对应着request以及response。例如一个spider会首先生成一个request对象,然后将request对象传给下载器,并且为request对象指定一个回调函数,i.e.即callbackfunction。其中有个参数肯定就是response,用来处理请求之后的response.

2016-07-03 20:54:16

mac osx 安装mysql步骤

step1brewinstallmysqlstep2entermysql,会遇到ERROR2002(HY000):Can'tconnecttolocalMySQLserverthroughsocket'/tmp/mysql.sock'(2)因为没有开启mysql服务。step3开启mysql服务mysql.serverstart关闭mysql服务mysql.se

2016-07-03 16:40:24

crawl facebook public group page notes

howtoextractawebelement?howtousedocument.querySelectAllhowtoclickthatelement?注意使用延迟。untilvisible..usethatfunction还要注意visible,整个浏览器的view窗口中如果没有你想click的element,那么就会notclickable.所

2016-07-03 16:37:47

eclipse c++如果debug的时候,遇到no source for main

这个原因就是没有在makefile里面加上debug的symbols.参考http://stackoverflow.com/questions/1079832/how-can-i-configure-my-makefile-for-debug-and-release-builds做一个makedebug

2016-03-28 11:42:36

eclipse c++ 遇到error while loading .....某某lib的问题

在project->property里面加上includePath还不够。要在run->environment里面加上LD_LIBRARY_PATH这个变量,然后把变量值给定。参考:https://www.eclipse.org/forums/index.php/t/59955/

2016-03-28 11:41:21

c++ 用new动态申请数组初始化的问题

ref:http://www.cnblogs.com/mywebname/articles/2291540.html注意括号的使用注意:C++使用new和delete在堆(自由存储区)上分配和释放动态数组。动态数组初始化:1.元素只能初始化为元素类型的默认值,而不能像数组变量一样,用初始化列表为数组元素提供各不相同的初值。2.对于内置数据类型元素的数组,必须使用()来显示指定程序执行初始化操作,

2016-03-21 16:46:20

Codility K complementary pairs

codelitykcomplementarypairsAnon-emptyzero-indexedarrayAconsistingofNintegersisgiven.Apairofintegers(P,Q)iscalledK-complementaryinarrayAif0≤P,

2016-03-20 16:04:37

leetcode总结-- 排序算法(内部排序)

包括quick_sort(不稳定),merge_sort(稳定),bubble_sort(稳定),selection_sort(不稳定),insertion_sort(稳定)code整理如下,我们可以发现所有的O(n2n^2)方法,都是foriinxrange(len(nums)-1):说明它们都要进行len(nums)-1次循环,例如bubble_sort要冒泡len(num

2016-01-18 15:36:29

leetcode总结 -- 关于merget k sorted list问题。heap

MergekSortedListshttp://blog.csdn.net/xyqzki/article/details/50265013superuglynumberhttp://blog.csdn.net/xyqzki/article/details/50379007

2016-01-17 22:39:51

leetcode总结 -- 对于一个给定的matrix,每个元素是0 or 1

GameofLifebitmanipulationhttp://blog.csdn.net/xyqzki/article/details/50254081MaximalSquaredphttp://blog.csdn.net/xyqzki/article/details/50252829MaximalRectangleincreasingstackhttp://b

2016-01-17 21:29:40

leetcode总结 -- 关于tree path的题目

pathsumhttp://blog.csdn.net/xyqzki/article/details/50206683pathsumIIhttp://blog.csdn.net/xyqzki/article/details/50207855binarytreepathhttp://blog.csdn.net/xyqzki/article/details/50208535Lowe

2016-01-17 17:26:29

single number 系列 参考

位操作总结http://blog.csdn.net/morewindows/article/details/7354571singlenumber题目http://blog.csdn.net/MoreWindows/article/details/12684497http://blog.csdn.net/MoreWindows/article/details/8214003

2016-01-16 16:21:06

leetcode总结-- heapq运用,关于super ugly number, merge k sorted list

相关题目mergeksortedlisthttp://blog.csdn.net/xyqzki/article/details/50265013superuglynumberhttp://blog.csdn.net/xyqzki/article/details/50379007heapq这里关于heapq的运用,对于lista,我们可以in-place,将其transform

2016-01-14 12:16:42

leetcode -- Range Sum Query - Mutable -- 重点,有线段树

https://leetcode.com/problems/range-sum-query-mutable/线段树的典型题目,参考http://bookshadow.com/weblog/2015/08/13/segment-tree-set-1-sum-of-given-range/http://bookshadow.com/weblog/2015/11/18/leetcode-range-s

2016-01-14 10:35:09

leetcode总结 -- 收缩window

leetcode–MinimumSizeSubarraySum–重点http://blog.csdn.net/xyqzki/article/details/50354111leetcode–MinimumWindowSubstring–重点,应该会考http://blog.csdn.net/xyqzki/article/details/50382435

2016-01-13 20:40:19

leetcode总结4 -- 关于two pointers两个容易考的题目

RemoveElementhttp://blog.csdn.net/xyqzki/article/details/50154553用数组尾部的index来接收thegivenelement.这里不用保持relativeorderMoveZeroshttp://blog.csdn.net/xyqzki/article/details/50154157可以看成上面题目的翻版,从数组头部开始接

2016-01-12 21:31:37

leetcode总结3 -- rotated array search

findmininrotatedarrayhttp://blog.csdn.net/xyqzki/article/details/50248589searchinrotatedarrayhttp://blog.csdn.net/xyqzki/article/details/50321563

2016-01-12 16:24:19
奖章
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!