2018年6月24日

Leetcode---3. Longest Substring Without Repeating Characters

摘要: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文

posted @ 2018-06-24 13:10 Hugh_Sun 阅读(92) 评论(0) 推荐(0) 编辑

Leetcode---2. Add Two Numbers

摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文

posted @ 2018-06-24 11:55 Hugh_Sun 阅读(125) 评论(0) 推荐(0) 编辑

Leetcode---1. Two Sum

摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文

posted @ 2018-06-24 09:56 Hugh_Sun 阅读(117) 评论(0) 推荐(0) 编辑

2017年12月23日

dpkg:处理 xxx (--configure)时出错解决方案

摘要: 出现问题如下: 正在设置 nfs-common (1:1.2.2-4ubuntu5) ... dpkg:处理 nfs-common (--configure)时出错: 子进程 已安装 post-installation 脚本 返回了错误号 10 正在设置 samba-common (2:3.5.8~ 阅读全文

posted @ 2017-12-23 10:44 Hugh_Sun 阅读(1884) 评论(0) 推荐(0) 编辑

ubuntu 14.04搭建tensorflow-gpu开发环境

摘要: 一、安装nvidia显卡驱动 去navidia官网查看最新的驱动版本号:navidia官网:http://www.geforce.cn/drivers 找到显卡对应的驱动下载,例如下载的驱动为 NVIDIA-Linux-x86_64-375.82.run ubuntu桌面环境下,按ctrl + al 阅读全文

posted @ 2017-12-23 09:59 Hugh_Sun 阅读(1752) 评论(0) 推荐(0) 编辑

2017年10月22日

Leetcode---35. Search Insert Position

摘要: Description: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were i 阅读全文

posted @ 2017-10-22 10:09 Hugh_Sun 阅读(147) 评论(0) 推荐(0) 编辑

2017年7月13日

Leetcode---21. Merge Two Sorted Lists

摘要: Description: 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 li 阅读全文

posted @ 2017-07-13 23:27 Hugh_Sun 阅读(100) 评论(0) 推荐(0) 编辑

2017年7月8日

Leetcode----26. Remove Duplicates from Sorted Array

摘要: Description Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate ex 阅读全文

posted @ 2017-07-08 10:22 Hugh_Sun 阅读(105) 评论(0) 推荐(0) 编辑

Leetcode---28. Implement strStr()

摘要: Description Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Solution htt 阅读全文

posted @ 2017-07-08 08:05 Hugh_Sun 阅读(120) 评论(0) 推荐(0) 编辑

Leetcode----27 Remove Element

摘要: Description Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another 阅读全文

posted @ 2017-07-08 06:45 Hugh_Sun 阅读(128) 评论(0) 推荐(0) 编辑

导航