摘要: #week8 Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one tran 阅读全文
posted @ 2018-01-13 02:59 小预备 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #week7 You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stop 阅读全文
posted @ 2018-01-13 02:40 小预备 阅读(198) 评论(0) 推荐(0) 编辑
摘要: #week6 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 分析: 动态规划类型 代码: 超时版本: 修改为一维 阅读全文
posted @ 2018-01-13 02:23 小预备 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #week5 问题: On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or t 阅读全文
posted @ 2018-01-13 02:01 小预备 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #week4# #from leetcode# Description You are given a data structure of employee information, which includes the employee's unique id, his importance va 阅读全文
posted @ 2017-09-29 21:07 小预备 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 通过PPA安装Atom 安装Golang 在https://golangtc.com/download下载最新的linux版本压缩包,如我下载的是 go1.9.linux-amd64.tar.gz 解压该压缩包 打开etc/profile修改环境变量,可以用vim也可以用图形化界面方法,注意要sud 阅读全文
posted @ 2017-09-29 13:57 小预备 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: github中下载hosts文件 https://github.com/lennylxx/ipv6-hosts 克隆或者下载都可以,把里面的hosts文件打开 修改本地hosts文件 记得提前备份hosts文件,或者直接将修改的语句加在最后面注释好 直接图像界面修改或者用vim修改都可以 将刚刚下载 阅读全文
posted @ 2017-09-29 13:11 小预备 阅读(403) 评论(0) 推荐(0) 编辑
摘要: #week3# #from leetcode# Description Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real n 阅读全文
posted @ 2017-09-24 21:23 小预备 阅读(233) 评论(0) 推荐(0) 编辑
摘要: #week2# #from leetcode# Description Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For examp 阅读全文
posted @ 2017-09-17 23:29 小预备 阅读(287) 评论(0) 推荐(0) 编辑
摘要: #Week_1# #From LeetCode# Description: Given an array of size n, find the majority element. The majority element is the element that appears more than  阅读全文
posted @ 2017-09-08 20:48 小预备 阅读(246) 评论(0) 推荐(0) 编辑