<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/cheneykl</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; cheneykl]]></copyright><item><title><![CDATA[MAC 查看已连接的WI-FI密码]]></title><link>https://blog.csdn.net/cheneykl/article/details/85880848</link><guid>https://blog.csdn.net/cheneykl/article/details/85880848</guid><author>cheneykl</author><pubDate>Sat, 05 Jan 2019 22:15:25 +0800</pubDate><description><![CDATA[直接来：

finder ---&amp;gt; 前往 ---&amp;gt; 实用工具  



找到“钥匙串访问”



搜索框里搜你的Wi-Fi名关键字：



双击：复制粘贴到剪贴板上即可显示

]]></description><category></category></item><item><title><![CDATA[mac给ps安装字体包]]></title><link>https://blog.csdn.net/cheneykl/article/details/85787523</link><guid>https://blog.csdn.net/cheneykl/article/details/85787523</guid><author>cheneykl</author><pubDate>Fri, 04 Jan 2019 17:33:46 +0800</pubDate><description><![CDATA[随便下载一个字体包

下载之后解压，选择打开方式为字体册



 

选择想要安装的字体，右上角有下载的选项，直接下载安装。重新打开ps，字体就有了

...]]></description><category></category></item><item><title><![CDATA[Linux非root用户服务器安装cudnn5.1]]></title><link>https://blog.csdn.net/cheneykl/article/details/85786211</link><guid>https://blog.csdn.net/cheneykl/article/details/85786211</guid><author>cheneykl</author><pubDate>Fri, 04 Jan 2019 17:13:54 +0800</pubDate><description><![CDATA[下载后解压：



copy



检查版本

]]></description><category></category></item><item><title><![CDATA[Linux非root用户在服务器安装cuda8.0]]></title><link>https://blog.csdn.net/cheneykl/article/details/85785558</link><guid>https://blog.csdn.net/cheneykl/article/details/85785558</guid><author>cheneykl</author><pubDate>Fri, 04 Jan 2019 17:10:32 +0800</pubDate><description><![CDATA[ubuntu 16.04安装cuda8.0

一、下载cuda文件

安装：


sh cuda_8.0.61_375.26_linux.run





这里因为是非root用户，所以要写入自己的安装目录，而不是用默认的路径：









配置环境：



按‘i&quot;进入编辑模式。在空白处添加如下：



检查版本：



 ...]]></description><category></category></item><item><title><![CDATA[Linux非root用户在服务器安装Anaconda]]></title><link>https://blog.csdn.net/cheneykl/article/details/85237669</link><guid>https://blog.csdn.net/cheneykl/article/details/85237669</guid><author>cheneykl</author><pubDate>Mon, 24 Dec 2018 19:07:20 +0800</pubDate><description><![CDATA[# Python 3.5


$ wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh  # 64位系统
$ wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86.sh     # 32位系统

# Python 2.7


$ wge...]]></description><category></category></item><item><title><![CDATA[Linux上创建虚拟环境 Virtualenv]]></title><link>https://blog.csdn.net/cheneykl/article/details/85124475</link><guid>https://blog.csdn.net/cheneykl/article/details/85124475</guid><author>cheneykl</author><pubDate>Thu, 20 Dec 2018 16:06:25 +0800</pubDate><description><![CDATA[1.安装virtualenv


pip3 install virtualenv



2.创建环境


mkdir myproject
cd myproject
virtualenv venv



在创建virtualenv时增加 --no-site-packages 选项的virtualenv就不会读取系统包，如下：


virtualenv nowamagic_venv --no-site...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】链表中环的入口结点]]></title><link>https://blog.csdn.net/cheneykl/article/details/83662150</link><guid>https://blog.csdn.net/cheneykl/article/details/83662150</guid><author>cheneykl</author><pubDate>Fri, 02 Nov 2018 21:57:24 +0800</pubDate><description><![CDATA[题目链接

链表中环的入口结点

题目描述

给一个链表，若其中包含环，请找出该链表的环的入口结点，否则，输出null。

solution


class Solution:
    def EntryNodeOfLoop(self, pHead):
        list = []
        p = pHead
        while p:
            if p in ...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】翻转单词顺序列]]></title><link>https://blog.csdn.net/cheneykl/article/details/83547309</link><guid>https://blog.csdn.net/cheneykl/article/details/83547309</guid><author>cheneykl</author><pubDate>Tue, 30 Oct 2018 19:25:43 +0800</pubDate><description><![CDATA[题目链接

翻转单词顺序列

题目描述

牛客最近来了一个新员工Fish，每天早晨总是会拿着一本英文杂志，写些句子在本子上。同事Cat对Fish写的内容颇感兴趣，有一天他向Fish借来翻看，但却读不懂它的意思。例如，“student. a am I”。后来才意识到，这家伙原来把句子单词的顺序翻转了，正确的句子应该是“I am a student.”。Cat对一一的翻转这些单词顺序可不在行，你能帮助...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】左旋转字符串]]></title><link>https://blog.csdn.net/cheneykl/article/details/83547179</link><guid>https://blog.csdn.net/cheneykl/article/details/83547179</guid><author>cheneykl</author><pubDate>Tue, 30 Oct 2018 19:16:03 +0800</pubDate><description><![CDATA[题目链接

左旋转字符串

题目描述

汇编语言中有一种移位指令叫做循环左移（ROL），现在有个简单的任务，就是用字符串模拟这个指令的运算结果。对于一个给定的字符序列S，请你把其循环左移K位后的序列输出。例如，字符序列S=”abcXYZdef”,要求输出循环左移3位后的结果，即“XYZdefabc”。是不是很简单？OK，搞定它！

 

solution


class Solution:
   ...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】和为S的两个数字]]></title><link>https://blog.csdn.net/cheneykl/article/details/83545716</link><guid>https://blog.csdn.net/cheneykl/article/details/83545716</guid><author>cheneykl</author><pubDate>Tue, 30 Oct 2018 17:36:51 +0800</pubDate><description><![CDATA[题目链接

和为S的两个数字

题目描述

输入一个递增排序的数组和一个数字S，在数组中查找两个数，使得他们的和正好是S，如果有多对数字的和等于S，输出两个数的乘积最小的。

输出描述:

对应每个测试案例，输出两个数，小的先输出。

 

思路：

若array[left] + array[right] == tsum，就是答案（相差越远乘积越小）

若array[left] + array[r...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】数组中只出现一次的数字]]></title><link>https://blog.csdn.net/cheneykl/article/details/83543975</link><guid>https://blog.csdn.net/cheneykl/article/details/83543975</guid><author>cheneykl</author><pubDate>Tue, 30 Oct 2018 16:21:47 +0800</pubDate><description><![CDATA[题目链接

数组中只出现一次的数字

题目描述

一个整型数组里除了两个数字之外，其他的数字都出现了偶数次。请写程序找出这两个只出现一次的数字。

solution


class Solution:
    # 返回[a,b] 其中ab是出现一次的两个数字
    def FindNumsAppearOnce(self, array):
        l = []
        for i ...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】判断平衡二叉树]]></title><link>https://blog.csdn.net/cheneykl/article/details/83539351</link><guid>https://blog.csdn.net/cheneykl/article/details/83539351</guid><author>cheneykl</author><pubDate>Tue, 30 Oct 2018 11:36:39 +0800</pubDate><description><![CDATA[题目链接

判断平衡二叉树

题目描述

输入一棵二叉树，判断该二叉树是否是平衡二叉树。

solution


class Solution:
    def TreeDepth(self,pRoot):
        if pRoot == None:
            return True
        return max(self.TreeDepth(pRoot.left) ...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】二叉树的深度]]></title><link>https://blog.csdn.net/cheneykl/article/details/83536243</link><guid>https://blog.csdn.net/cheneykl/article/details/83536243</guid><author>cheneykl</author><pubDate>Tue, 30 Oct 2018 08:45:31 +0800</pubDate><description><![CDATA[题目链接

二叉树的深度

题目描述

输入一棵二叉树，求该树的深度。从根结点到叶结点依次经过的结点（含根、叶结点）形成树的一条路径，最长路径的长度为树的深度。

solution


class Solution:
    def TreeDepth(self, pRoot):
        if not pRoot:
            return 0
        else:
  ...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】数字在排序数组中出现的次数]]></title><link>https://blog.csdn.net/cheneykl/article/details/83536151</link><guid>https://blog.csdn.net/cheneykl/article/details/83536151</guid><author>cheneykl</author><pubDate>Tue, 30 Oct 2018 08:29:29 +0800</pubDate><description><![CDATA[题目链接

数字在排序数组中出现的次数

题目描述

统计一个数字在排序数组中出现的次数。

 solution


class Solution:
    def GetNumberOfK(self, data, k):
        return data.count(k)

 ...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】面试题19：二叉树的镜像]]></title><link>https://blog.csdn.net/cheneykl/article/details/83512005</link><guid>https://blog.csdn.net/cheneykl/article/details/83512005</guid><author>cheneykl</author><pubDate>Mon, 29 Oct 2018 19:48:55 +0800</pubDate><description><![CDATA[题目链接

二叉树的镜像

题目描述

操作给定的二叉树，将其变换为源二叉树的镜像。

输入描述:


二叉树的镜像定义：源二叉树 
    	    8
    	   /  \
    	  6   10
    	 / \  / \
    	5  7 9 11
    	镜像二叉树
    	    8
    	   /  \
    	  10   6
    	 / \  / \
 ...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】面试题15：链表中倒数第k个结点]]></title><link>https://blog.csdn.net/cheneykl/article/details/83501379</link><guid>https://blog.csdn.net/cheneykl/article/details/83501379</guid><author>cheneykl</author><pubDate>Mon, 29 Oct 2018 10:54:34 +0800</pubDate><description><![CDATA[题目链接

链表中倒数第k个结点

题目描述

输入一个链表，输出该链表中倒数第k个结点。

solution 1

遍历一次链表获得链表长度，再次遍历链表，至n-k+1出输出


class Solution:
    def FindKthToTail(self, head, k):
        if head == None or k &amp;lt; 0:
            return...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】面试题14：调整数组顺序使奇数位于偶数前面]]></title><link>https://blog.csdn.net/cheneykl/article/details/83476360</link><guid>https://blog.csdn.net/cheneykl/article/details/83476360</guid><author>cheneykl</author><pubDate>Sun, 28 Oct 2018 17:28:18 +0800</pubDate><description><![CDATA[题目链接

调整数组顺序使奇数位于偶数前面

题目描述

输入一个整数数组，实现一个函数来调整该数组中数字的顺序，使得所有的奇数位于数组的前半部分，所有的偶数位于数组的后半部分，并保证奇数和奇数，偶数和偶数之间的相对位置不变。

solution


class Solution:
    def reOrderArray(self, array):
        lj = []
       ...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】面试题11：数值的整数次方]]></title><link>https://blog.csdn.net/cheneykl/article/details/83473311</link><guid>https://blog.csdn.net/cheneykl/article/details/83473311</guid><author>cheneykl</author><pubDate>Sun, 28 Oct 2018 11:47:21 +0800</pubDate><description><![CDATA[题目链接

数值的整数次方

题目描述

给定一个double类型的浮点数base和int类型的整数exponent。求base的exponent次方。

solution


class Solution:
    def Power(self, base, exponent):
        if exponent == 0:
            return 1
        ans...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】面试题9：斐波那契数列]]></title><link>https://blog.csdn.net/cheneykl/article/details/83448490</link><guid>https://blog.csdn.net/cheneykl/article/details/83448490</guid><author>cheneykl</author><pubDate>Sat, 27 Oct 2018 18:23:41 +0800</pubDate><description><![CDATA[ 

题目链接

斐波那契数列

题目描述

大家都知道斐波那契数列，现在要求输入一个整数n，请你输出斐波那契数列的第n项（从0开始，第0项为0）。

n&amp;lt;=39

solution


 class Solution:
    def Fibonacci(self, n):
        if n &amp;lt;= 1:
            return n
        f0 = 0
...]]></description><category></category></item><item><title><![CDATA[【剑指offer python】面试题8：旋转数组的最小数字]]></title><link>https://blog.csdn.net/cheneykl/article/details/83448364</link><guid>https://blog.csdn.net/cheneykl/article/details/83448364</guid><author>cheneykl</author><pubDate>Sat, 27 Oct 2018 18:05:04 +0800</pubDate><description><![CDATA[ 

题目链接

旋转数组的最小数字

题目描述

把一个数组最开始的若干个元素搬到数组的末尾，我们称之为数组的旋转。 输入一个非减排序的数组的一个旋转，输出旋转数组的最小元素。 例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转，该数组的最小值为1。 NOTE：给出的所有元素都大于0，若数组大小为0，请返回0。

 

solution


class Solution:
    ...]]></description><category></category></item></channel></rss>