摘要: /** * 453. Minimum Moves to Equal Array Elements * https://leetcode.com/problems/minimum-moves-to-equal-array-elements/ * https://www.cnblogs.com/gran 阅读全文
posted @ 2019-04-10 02:21 johnny_zhao 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1.根据https://help.aliyun.com/document_detail/32190.html所提示的,在linux下安装oss ftp,执行bash start.sh后出现: 2.处理No module named pygtk 执行命令行: apt-get install pytho 阅读全文
posted @ 2019-04-09 19:57 johnny_zhao 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: /** * https://www.lintcode.com/problem/two-sum-iii-data-structure-design/description * * Design and implement a TwoSum class. * It should support the following operations: add and find. add - Ad... 阅读全文
posted @ 2019-04-07 13:43 johnny_zhao 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 测试: 输出: 阅读全文
posted @ 2019-03-29 21:03 johnny_zhao 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 解决方法为以下命令: 阅读全文
posted @ 2019-03-28 19:50 johnny_zhao 阅读(331) 评论(0) 推荐(0) 编辑
摘要: /** * 1002. Find Common Characters * https://leetcode.com/problems/find-common-characters/submissions/ * Given an array A of strings made only from lowercase letters, * return a list of all chara... 阅读全文
posted @ 2019-03-27 01:03 johnny_zhao 阅读(142) 评论(0) 推荐(0) 编辑
摘要: /** * 1. Two Sum * https://leetcode.com/problems/two-sum/description/ * Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume tha... 阅读全文
posted @ 2019-03-26 20:54 johnny_zhao 阅读(80) 评论(0) 推荐(0) 编辑
摘要: brew的安装: 因为max os x上自带了ruby, 执行以下命令: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brer安装成功后,就可以用它用安装其它软件了 阅读全文
posted @ 2019-03-14 14:30 johnny_zhao 阅读(1244) 评论(0) 推荐(0) 编辑
摘要: 步骤如下: 执行命令 sudo gedit ~/.local/share/applications/potatodesktop.desktop 打开potatodesktop.desktop文件; 修改Exce行,添加环境变量 env QT_IM_MODULE=ibus 如果使用fcitx的用户,把 阅读全文
posted @ 2019-03-11 19:52 johnny_zhao 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 什么是git? git是目前世界上最先进的分布式版本控制系统。 一、创建版本库 什么是版本库?版本库又名仓库,英文名repository,你可以简单的理解一个目录,这个目录里面的所有文件都可以被Git管理起来,每个文件的修改,删除,Git都能跟踪,以便任何时刻都可以追踪历史,或者在将来某个时刻还可以 阅读全文
posted @ 2019-03-08 15:03 johnny_zhao 阅读(287) 评论(0) 推荐(0) 编辑