- 博客(17)
- 资源 (5)
- 收藏
- 关注
原创 安装ubantu和vmtools
之前我通过百度经验上的过程来安装Ubuntu16,但是每次安装的时候没有什么问题,就是安装好了Tools,也设置好了共享文件夹,但是在路径:/mnt/hgfs 下每次都找不到共享文件夹。后来我研究了好久,应该是安装的时候出了问题。下面是正确可行的安装方法:一、下载Ubuntu镜像:Ubuntu官网下载地址二、创建虚拟机打开VMware Workstation,点击创建新的虚拟机
2017-04-29 13:11:13 2082
转载 VMWare虚拟机提示:锁定文件失败,打不开磁盘的解决办法+查看虚拟机安装目录
以下相关内容转载网上资源VMWare虚拟机提示:锁定文件失败,打不开磁盘的解决办法(1)今天做实验电脑垃圾用到虚拟机Ubuntu 卡出了翔, 无奈只能强制关机,重开机但是开机之后就出错了:找了好久 ,这是因为虚拟机在运行的时候,会锁定文件,防止被修改,而如果突然系统崩溃了,虚拟机就来不急把已经锁定的文件解锁,所以你在启动的时候,就会提示无法锁定文件。
2017-04-23 20:25:20 5007 3
原创 leetocode 541. Reverse String II
字符串求逆Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters left, revers
2017-04-20 12:37:27 527
原创 leetcode 447. Number of Boomerangs
Python leetcode447. Number of Boomerangs给定n个二维坐标点,存在这样的坐标点三元组(i,j,k),就是i到j的距离等于i到k的距离,其中i,j,k都是坐标点。同时,i到k的距离等于i到j的距离,那么就有两种形式[i,j,k]和[i,k,j],都表示这样特点的三元组。那么根据题意,这就是boomerang。每个符合的三个
2017-04-20 10:05:35 570
原创 leetcode 350. Intersection of Two Arrays II
python leetcode 求两个数组的交集350. Intersection of Two Arrays IIGiven two arrays, write a function to compute their intersection.Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2],
2017-04-18 12:15:58 287
原创 leetcode 409. Longest Palindrome
409. Longest Palindrome求给定一个字符串的最长回文字符串的长度。Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with th
2017-04-16 14:12:48 340
原创 leetcode 504. Base 7
python leetcode504. Base 7Given an integer, return its base 7 string representation.将十进制转为7进制,其他进制的转换类似。记住几个常见的内置函数。bin(),hex(),oct()....分别是十进制数转二进制,十六机制,和八进制。Example 1:
2017-04-16 12:25:49 379
原创 leetcode 242. Valid Anagram
Python leetcode242. Valid Anagram242. Valid AnagramGiven two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram"
2017-04-16 10:54:47 356
原创 leetcode 122. Best Time to Buy and Sell Stock II
python leetcode 122. Best Time to Buy and Sell Stock IISay you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximu
2017-04-15 12:00:36 574
原创 leetcode 387. First Unique Character in a String
Python leetcode387. First Unique Character in a StringGiven a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1.Examples:
2017-04-15 10:24:32 665
原创 leetcode 404. Sum of Left Leaves
Python leetcode404. Sum of Left LeavesFind the sum of all left leaves in a given binary tree.Example: 3 / \ 9 20 / \ 15 7There are two left leaves in
2017-04-15 09:35:20 735
原创 leetcode 453. Minimum Moves to Equal Array Elements
Python leetcode453. Minimum Moves to Equal Array ElementsGiven a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a
2017-04-14 19:01:30 386
原创 leetcode 383. Ransom Note
Python leetcodeleetcode 383. Ransom NoteGiven an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ran
2017-04-14 18:58:52 470
原创 leetcode 506. Relative Ranks
leetcode 506. Relative Ranks#coding=utf-8'''Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal",
2017-04-04 23:16:33 603
原创 leetcode 530. Minimum Absolute Difference in BST
leetcode 530. Minimum Absolute Difference in BST#coding=utf-8'''Given a binary search tree with non-negative values,find the minimum absolute difference between values of any two nod
2017-04-04 22:46:53 823
转载 python之string.maketrans和str.translate
转载地址:http://blog.csdn.net/skyin333/article/details/8661131示例:[python] view plain copyimport string s = 'abcd--dcba' # 参数from和to的长度必须一致 table = st
2017-04-04 15:51:47 1130
转载 Python的sys.argv学习
转载地址http://blog.csdn.net/guoguoshizhuo/article/details/52539967@guoguoshizhuo首先看一个例子:[html] view plain copy #!/usr/bin/env python import sys def main(ar
2017-04-04 14:48:40 728
Spark升级后无Logging类
2018-11-06
(Yoav Goldberg)Neural Network Methods for Natural Language Processing适合nlp进阶
2018-01-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人