1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You …
283. Move Zeroes
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of…
美国F1身份申请英国签证攻略
先介绍下背景,刚来美国3个月,英语不溜只会点菜那种,无驾照,无SSN,无工作,F1签证。 一般有美国签证申请英国签证是不会被拒签的,除非你的材料有大问题,所以认真准备都是可以过的 去英国玩是个很仓促的决定,所以我是提前一…
53.Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For e…
35. Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index whe…
python 画柱状图
数据统计是科研中很重要的一部分,所以我们老师老是让我搞各种数据可视化的工作………… 首先要安装 matplotlib
python操作Mongodb
先安装 pymongo ~~~bash pip install pymongo ~~~ ~~~python from pymongo import MongoClient ~~~ ~~~python client = M…
pip和easy_install
有句话这么说的: Don't use easy install, unless you like stabbing yourself in the face. Use pip. easy install 诞生于2004年…
通过公钥登录阿里云
好久没写博客了,因为中间发生了很多事,心情很乱,没有心思写博客,改写日记。。。现在又来了美帝开始读研究生,感觉博客还是要继续写。虽然这写东西并不能称作为博客,因为自己写的几乎就是照搬网上的一些东西,更像是一堆技术笔记。不…
pdfMiner UnicodeEncodeError
用pdfMiner读取中文pdf内容的时候,会遇到这个错误 UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 0: …