Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and r Read More
题目描述: Given a non-empty array of integers, return the k most frequent elements. For example, Given [1,1,1,2,2,3] and k = 2, return [1,2]. Note: You ma Read More
This page is meant to be a central repository of decorator code pieces, whether useful or not <wink>. It is NOT a page to discuss decorator syntax! Fe Read More
#介绍tmux是一个优秀的终端复用软件,即使非正常掉线,也能保证当前的任务运行,这一点对于 远程SSH访问特别有用,网络不好的情况下仍然能保证工作现场不丢失!此外,tmux完全使用键盘 控制窗口,实现窗口的切换功能。简单地说,tmux对于我主要有两个功能(这应该也是tmux的主要功能):split窗 Read More
今天再ubuntu下安装libevent,下载源码 自动安装在/usr/local/lib目录下面,如果如下链接错误,或者编译成功运行可执行文件提示can't open share object什么的,请在~/.profile中添加 自己看着修改,编译文件的时候,比如我想编译libevent下tes Read More