Fork me on GitHub
摘要: 一.安装 1. 官方github:https://github.com/pytorch/pytorch CondaError: CondaHTTPError When conda install -c soumith magma-cuda80=2.1.0 #1214 - 出现网络错误 - 根据:Pr 阅读全文
posted @ 2018-01-30 20:07 ranjiewen 阅读(7200) 评论(0) 推荐(0) 编辑
摘要: "欢迎fork and star:Nowcoder Repository github" 33. Search in Rotated Sorted Array 题目 解析 C++ // 33. Search in Rotated Sorted Array class Solution_33 { pu 阅读全文
posted @ 2018-01-30 17:13 ranjiewen 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 32. Longest Valid Parentheses 题目 解析 对于括号匹配,和Valid Parentheses同样的思路,用栈维护左括号,即在读取字符串的时候,遇到左括号就入栈。遇到右括号就出栈,同时判断当前括号匹配的子串是否为最长子串。不过在判断括号匹配的子串的长度的时候,有一些值得注 阅读全文
posted @ 2018-01-30 10:59 ranjiewen 阅读(141) 评论(0) 推荐(0) 编辑