- 博客(14)
- 资源 (5)
- 收藏
- 关注
原创 LeetCode Problems #797
2018年9月30日#797. All Paths From Source to Target问题描述:Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order.The graph is give...
2018-09-30 15:43:52 172
转载 Python之sorted
sortedsorted() 函数对所有可迭代的对象进行排序操作。sort 与 sorted 区别:sort 是应用在 list 上的方法,sorted 可以对所有可迭代的对象进行排序操作。list 的 sort 方法返回的是对已经存在的列表进行操作,无返回值,而内建函数 sorted 方法返回的是一个新的 list,而不是在原来的基础上进行的操作。引用自:Python so...
2018-09-26 00:01:10 349
原创 LeetCode Problems #785
2018年9月23日#785 Is Graph Bipartite?问题描述:Given an undirected graph, return true if and only if it is bipartite.Recall that a graph is bipartite if we can split it's set of nodes into two indepen...
2018-09-23 20:53:57 265
转载 Windows无法安装到GPT分区形式磁盘 - 解决方案
有时候用原版系统镜像安装windows系统时,会提示“windows无法安装到这个磁盘。选中的磁盘采用GPT分区形式”,导致安装失败,下面就来讲解一下如何解决。 解决步骤:在系统提示无法安装的那一步,按住“shift+f10”,呼出“cmd”命令符,即小黑窗。输入:diskpart,回车;进入diskpart。输入:list disk,回车;显示磁盘信息。...
2018-09-19 12:44:38 79497 2
原创 macOS的Traceroute
macOS下的Tracerout打开系统信息软件然后点击左上角窗口选项,点击网络实用工具选择Traceroute则可以在对应输入框输入ip或域名,然后点击跟踪即可开始跟踪路径 以下为跟踪www.csdn.net(47.95.164.112)的路径信息 如果源从任何给定的路由器接收到少于3条报文(由于网络中的丢包),Traceroute在该路由器号码后面...
2018-09-17 11:40:18 4012
原创 LeetCode Problems #890
2018年9月16日#890. Find and Replace Pattern 问题描述:You have a list of words and a pattern, and you want to know which words in words matches the pattern.A word matches the pattern if there exists...
2018-09-16 22:31:35 216
转载 MATLAB的save用法
save将工作区变量保存到文件中语法save(filename)save(filename,variables)save(filename,variables,fmt)save(filename,variables,version)save(filename,variables,version,'-nocompression')save(filename,va...
2018-09-11 22:37:09 70355
转载 MATLAB的clear和clc用法
clear clear命令可以用来清除工作空间的内容。MATLAB有个基本的工作空间,用base标识,此外,当打开一个函数m文件时,可能会产生很多工作空间。每一个函数对应一个工作空间。例如,一个图形用户界面程序test,可能有test、gui_mainfcn、pushbutton1_callback等工作空间。这时,如果调用clear命令时,需要注意了:如果在pushbutton1_call...
2018-09-11 22:01:24 32264
原创 LeetCode Problems #3
2018年9月9日#3. Longest Substring Without Repeating Characters问题描述:Given a string, find the length of the longest substring without repeating characters.样例:Given "abcabcbb", the answer is "abc"...
2018-09-09 19:49:56 152
原创 LeetCode Problem #2
2018年9月9日#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 contain a single ...
2018-09-09 17:35:09 109
原创 LeetCode Problem #1
2018年9月9日 周日#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 exactly one solut...
2018-09-09 15:58:02 142
原创 如何在python文件中包含中文
程序中出现有使用中文的地方,但是代码中并没有声明采用的编码格式。print("中文")由于代码中没有指定编码方式,执行这段程序时会出现如下错误。 File "/Users/apple/test.py", line 2SyntaxError: Non-ASCII character '\xe4' in file /Users/apple/test.py on line 2, bu...
2018-09-06 00:08:19 3403
原创 MacOS下切换python2和python3
安装python一般在原装MacOS上已经装好了python2,以下路径是根据官网pkg安装的路径设置,若来源为其他,则设置路径需要调整。控制台输入:which python 可以查看python的安装路径。官网pkg链接下载后根据安装提示走就好下载python2下载python3python路径问题来源 python安装路径 系统默认 /Syste...
2018-09-05 22:38:36 925
PKCS #11 v2.11密码令牌接口标准(中英文)
2018-11-14
深度学习入门:基于Python的理论与实现(pdf+源码)
2018-10-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人