摘要: 最近学习Golang,总想体验下并发到底有多叼,必我大 python强势多少。 学习了官方教程的http 服务,用性能测试工具wrk测试了下,发现结果很令人惊讶~ wrk可以参考我的博客,有基本用法说明:http://blog.yuanzhaoyi.cn/2018/01/12/test.html 测 阅读全文
posted @ 2018-04-01 05:54 PolarBearInterest 阅读(3133) 评论(0) 推荐(0) 编辑
摘要: 最近想复习下C++,很久没怎么用了,毕业时的一些经典排序算法也忘差不多了,所以刚好一起再学习一遍。 除了冒泡、插入、选择这几个复杂度O(n^2)的基本排序算法,希尔、归并、快速、堆排序,多多少少还有些晦涩难懂,幸好又博客园大神dreamcatcher-cx都总结成了图解,一步步很详细,十分感谢。 而 阅读全文
posted @ 2018-03-27 02:19 PolarBearInterest 阅读(776) 评论(0) 推荐(0) 编辑
摘要: 题目: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, ca 阅读全文
posted @ 2016-12-23 18:57 PolarBearInterest 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sin 阅读全文
posted @ 2016-12-06 11:07 PolarBearInterest 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 没事来做 阅读全文
posted @ 2016-12-02 00:19 PolarBearInterest 阅读(2060) 评论(0) 推荐(0) 编辑
摘要: 今天面试,遇到面试官询求最大公约数。小学就学过的奥数题,居然忘了!只好回答分解质因数再求解! 回来果断复习下,常用方法辗转相除法和更相减损法,小学奥数都学过,很简单,就不细说了,忘了的话可以百度:http://baike.baidu.com/link?url=Ba106RbHkMjZm3rolmCH 阅读全文
posted @ 2016-11-28 21:26 PolarBearInterest 阅读(5339) 评论(0) 推荐(0) 编辑
摘要: 1.题目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close i 阅读全文
posted @ 2016-11-24 16:09 PolarBearInterest 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 主要尝试了3种列表去除重复元素 阅读全文
posted @ 2016-11-24 01:43 PolarBearInterest 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: 首先,简单介绍:Redis是一个基于内存的键值对存储系统,常用作数据库、缓存和消息代理。 支持:字符串,字典,列表,集合,有序集合,位图(bitmaps),地理位置,HyperLogLog等多种数据结构。 支持事务、分片、主从复之、支持RDB(内存数据保存的文件)和AOF(类似于MySQL的binl 阅读全文
posted @ 2016-11-23 20:37 PolarBearInterest 阅读(5152) 评论(0) 推荐(0) 编辑
摘要: 最近用Python时,遇到了序列化对象的问题,传统的json和新型序列化工具包msgpack都有涉及,于是做一个简单的总结: 通俗的讲:序列化:将对象信息转化为可以存储或传输的形式;反序列化:把这个存储的内容还原成对象。 json就不用多做解释了,是一种轻量级的数据交换格式,广泛应用于web开发中。 阅读全文
posted @ 2016-11-23 13:49 PolarBearInterest 阅读(5890) 评论(3) 推荐(0) 编辑