- 博客(84)
- 收藏
- 关注
原创 Java开发神器IDEA使用技巧
本片文章所用idea的版本是2019.2.1系统是Windows,其他版本的配置可能会有稍许差别,但大多都差不多,Mac的配置也与此类似1.注释1.1class注释File-settings-Editor-File and Code Templates默认是这样的#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")pac...
2019-09-06 11:26:56 788
原创 33. Search in Rotated Sorted Array
题目:33. Search in Rotated Sorted Array难度:中等Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e.,[0,1,2,4,5,6,7]might become[4,5,6,7,0,1,2]).You...
2019-07-08 11:14:16 289
原创 32. Longest Valid Parentheses
题目:32. Longest Valid Parentheses 最长有效括号难度:困难Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.Example 1:Input...
2019-06-03 15:18:50 219
原创 31. Next Permutation
题目:31. Next Permutation 下一个排列难度:中等Implementnext permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must...
2019-05-24 09:51:32 177
原创 30. Substring with Concatenation of All Words
题目:30.Substring with Concatenation of All Words 串联所有单词的子串难度:困难You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) in...
2019-05-21 10:51:10 206
原创 一篇文章带你彻底了解Maven
1.简介Maven是一个项目管理工具,在当今社会是应用最广泛的项目构建工具之一,其强大的依赖管理功能和它全套的项目打包测试等使其成为了当下项目构建的首选工具。此外,Maven能够很方便的帮你管理项目报告,生成站点,管理JAR文件,等等。2.安装maven是属于Apache下的一个顶级开源项目,在浏览器搜索即可进行下载。进入官网中,左边的那一栏是导航菜单,主要是描述了什么是maven...
2019-05-19 15:47:17 352
原创 29. Divide Two Integers
题目:29. Divide Two Integers 两数相除难度:中等Given two integersdividendanddivisor, divide two integers without using multiplication, division and mod operator.Return the quotient after dividingdivide...
2019-05-17 09:05:11 192
原创 28. Implement strStr()
题目:28. Implement strStr() 实现strStr()难度:简单ImplementstrStr().Return the index of the first occurrence of needle in haystack, or-1if needle is not part of haystack.Example 1:Input: haystack...
2019-05-16 09:41:51 179
原创 27. Remove Element
题目:27. Remove Element 移除元素难度:简单Given an arraynumsand a valueval, remove all instances of that valuein-placeand return the new length.Do not allocate extra space for another array, you must ...
2019-05-16 09:34:46 121
原创 26. Remove Duplicates from Sorted Array
题目:26. Remove Duplicates from Sorted Array 从有序数组中移除重复元素难度:简单Given a sorted arraynums, remove the duplicatesin-placesuch that each element appear onlyonceand return the new length.Do not all...
2019-05-16 09:14:37 284
原创 25. Reverse Nodes in k-Group
题目:25. Reverse Nodes in k-Group k个一组翻转链表难度:困难Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.kis a positive integer and is less than or equal to...
2019-05-15 11:00:01 232
原创 24. Swap Nodes in Pairs
题目:24. Swap Nodes in Pairs 成对反转节点难度:中等Given alinked list, swap every two adjacent nodes and return its head.You maynotmodify the values in the list's nodes, only nodes itself may be changed....
2019-05-14 15:23:51 119
原创 23. Merge k Sorted Lists
题目:23. Merge k Sorted Lists 合并k个排序的list难度:困难Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.Example:Input:[ 1->4->5, 1->3->4...
2019-05-13 10:26:54 153
原创 使用Python爬取微博高清美女大图
打开微博官网,这里以爬取美女博主Duebass的所有图片为例,首先打开她的主页主页中显示的都是一些小图,我们点击其中的某一张图片,就可以查看她的大图了。打开F12查看图片的地址信息,//wx4.sinaimg.cn/mw690/75614297ly1g2sq66raswj21vl2qae82.jpg复制这个地址去源代码中搜索,我们发现搜索不到这个url,那么狠明显,图片...
2019-05-12 16:44:23 6036 5
原创 22. Generate Parentheses
题目:Generate Parentheses 生成括号难度:中等Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:[ "((()))...
2019-05-05 16:18:27 141
原创 ModuleNotFoundError: No module named 'pip'
今天在运行python -m pip install --upgrade pip进行pip更新的时候,当运行到卸载当前pip版本成功的时候,突然报错,权限不足不能访问,导致原先的pip卸载了,而新的pip确没有安装,经过查找用以下方法解决了我的问题。首先执行:python -m ensurepip然后执行python -m pip install --upgrade pip即可成...
2019-05-05 09:18:43 763
原创 21. Merge Two Sorted Lists
题目:Merge Two Sorted Lists 合并两个有序的链表难度:简单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 lists.Example:In...
2019-04-25 08:58:45 214
原创 20. Valid Parentheses
题目:Valid Parentheses 有效的括号难度:简单Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.An input string is valid if:Open brackets m...
2019-04-24 09:12:37 135
原创 19. Remove Nth Node From End of List
题目:Remove Nth Node From End of List 移除list中倒数第n个节点难度:中等Given a linked list, remove then-th node from the end of list and return its head.Example:Given linked list: 1->2->3->4->5,...
2019-04-23 09:30:52 134
原创 18. 4Sum
题目:3Sum 4个数的和难度:中等Given an arraynumsofnintegers and an integertarget, are there elementsa,b,c, anddinnumssuch thata+b+c+d=target? Find all unique quadruplets in the array whic...
2019-04-18 14:38:49 153
原创 爬取小鸟高清美女壁纸
有装了360安全软件的小伙伴对小鸟壁纸相信都会比较熟悉,里面拥有非常丰富的壁纸,包括动态壁纸和视频壁纸。今天我们就来利用python来爬取一下其中的高清美女壁纸吧。百度搜索小鸟壁纸,进入官网后我们发现,这里只有一个下载客户端的按钮,那么很显然不能通过网页来抓取,这时很自然想到我们的抓包工具,这里使用Fliddler抓包工具进行分析。首先在电脑上面打开小鸟壁纸,点击其中的静态壁纸然后点击下方...
2019-04-17 15:26:34 3578 3
原创 17. Letter Combinations of a Phone Number
题目:Letter Combinations of a Phone Number 电话号码的数字组合难度:中等Given a string containing digits from2-9inclusive, return all possible letter combinations that the number could represent.A mapping of d...
2019-04-17 15:15:05 144
原创 30分钟精通mybatis-plus插件开发
mybatis-plus项目地址:https://github.com/baomidou/mybatis-plusmybatis-plus使用实例地址:https://github.com/baomidou/mybatis-plus-samplesmybatis-plus使用文档地址:https://mybatis.plus/简介MyBatis-Plus(简称 MP)是一个MyB...
2019-04-17 14:27:01 2018 2
原创 16. 3Sum Closest
题目:3Sum 最相近的3个数字的和难度:中等Given an arraynumsofnintegers and an integertarget, find three integers innumssuch that the sum is closest totarget. Return the sum of the three integers. You may as...
2019-04-16 10:29:18 145
原创 15. 3Sum 3个数字的和
题目:3Sum3个数字的和难度:中等Given an arraynumsofnintegers, are there elementsa,b,cinnumssuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:The sol...
2019-04-15 09:52:09 136
原创 14. Longest Common Prefix 最长公共前缀
题目:Roman to Integer 罗马字符转整数难度:简单Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string"".Example 1:Input...
2019-04-12 09:22:56 128
原创 13. Roman to Integer 罗马字符转整数
题目:Roman to Integer 罗马字符转整数难度:简单Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM.Symbol ValueI 1V 5X 10L ...
2019-04-11 09:55:44 161
原创 12.Integer to Roman 整数转罗马数字
题目:Integer to Roman 整数转罗马数字难度:中等Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM.Symbol ValueI 1V 5X 10L ...
2019-04-10 09:47:42 127
原创 11.Container With Most Water 装最多水的容器
题目:Container With Most Water 装最多水的容器难度:中等Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints...
2019-04-09 10:16:35 167
原创 10. Regular Expression Matching 正则表达式匹配
题目:Regular Expression Matching 正则表达式匹配难度:困难Given an input string (s) and a pattern (p), implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' ...
2019-04-08 12:48:11 231
原创 9. Palindrome Number 回文数
题目:Palindrome Number 回文数难度:简单Determine whether an integer is a palindrome. An integerisapalindrome when itreads the same backward as forward.Example 1:Input: 121Output: trueExample 2:...
2019-03-28 09:48:57 146
原创 8. String to Integer (atoi) 字符串转整数
题目:String to Integer (atoi) 字符串转整数难度:中等Implementatoiwhichconverts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace ...
2019-03-27 10:22:25 153
原创 Centos7安装mysql8
打开mysql的官网下载地址https://dev.mysql.com/downloads/mysql/,下拉至底部。选择红帽版本,下面选择Linux7 64位,然后点击第一个进行下载此时会进入到一个界面叫你登录,我们点击下面的不用登录直接下载,然后将下载完的rpm包传到linux系统中(如果你的linux系统可以联网的话,也可以直接复制下面的链接地址。鼠标右键NO Thanks点击复...
2019-03-26 12:38:33 120
原创 7.Reverse Integer 反转整型数据
题目:Reverse Integer 反转整型数据难度:Easy 简单Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120...
2019-03-26 11:47:11 187
原创 6.ZigZag Conversion Z字形字符转换
题目:Longest Substring Without Repeating Characters 不重复的最长子串难度:中等The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern...
2019-03-25 12:33:23 121
原创 Centos安装java8
1.下载linux版本的jdk1.8打开Oracle的jdk8的下载页面https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html,点击接受协议,然后下载64位版本的后缀名是.tar.gz格式的jdk。2.打开linux系统,检测系统是否自带openjdk,如果是最小化安装则没...
2019-03-25 10:07:08 4571
原创 vmvare安装centos7超详细图文教程
1.下载centos7的镜像文件打开浏览器,进入到centos的下载页面https://www.centos.org/download/,点击DVD ISO进入镜像的选择列表页面,这里会有许多的镜像路径,选择其中的一个进行下载即可,建议选择上面那排,速度较快。打开vmvare,点击文件点击新建虚拟机。在向导界面点击典型,选择下一步选择稍后安装操作西永,点击...
2019-03-24 22:21:06 6106 2
原创 5. Longest Palindromic Substring 最长的回文子串
题目:Longest Palindromic Substring 最长的回文子串难度:中等Given a strings, find the longest palindromic substring ins. You may assume that the maximum length ofsis 1000.Example 1:Input: "babad"Output...
2019-03-22 15:46:15 92
原创 从0开始搭建Scala开发环境
Scala是一门基于jvm的函数式的面向对象编程语言,拥有比java更加简洁的语法。是实现spark的底层语言,在操作spark上面有着得天独厚的优势。下面我们将一起来从0开始搭建一个Scala的开发环境。首先你需要有一个java的开发环境。在Oracle官网的jdk的下载页面找到jdk8的下载jdk8官网下载根据自己的系统选择对应的版本,32位的系统下载32位的,64位下载6...
2019-03-22 10:43:33 467
原创 4. Median of Two Sorted Arrays 两个有序数组的中位数
题目:Median of Two Sorted Arrays 两个有序数组的中位数难度:hard 困难There are two sorted arraysnums1andnums2of size m and n respectively.Find the median of the two sorted arrays. The overall run time complex...
2019-03-21 15:15:53 129
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人