自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 收藏
  • 关注

原创 使用navicat连接阿里云服务器的MySQL

将阿里云服务器中的安全组添加上Mysql的端口3306在实例中点击“管理”选择“本实例安全组”点击“安全组列表”-“配置规则”点击“添加安全组规则”点“确定”完成 在服务器中设置为可以远程连接mysql -u root -pupdate user set host = '%' where user = 'root' and host = localh...

2018-11-21 19:39:17 1168

原创 Ubuntu16.04服务器安装ftp

apt-get install vsftpd创建用户useradd -d /home/ftpdir -s /bin/bash ftpuserftpuser填自己想要的用户名为创建的用户设置密码passwd ftpuser设置ftp目录权限chown ftpuser:ftpuser /home/ftpdir重启vsftpd服务 service vsftp...

2018-11-15 11:12:33 300

原创 Ubuntu16.04服务器安装WordPress

一、安装Apache安装apacheapt-get install apache2查看状态service apache2 restart/status/start/stop关闭防火墙80限制ufw allow 80测试:在浏览器中访问服务器,出现it works二、安装MySQLapt-get install mysql-server mysql-c...

2018-11-15 00:17:32 805

原创 Ubuntu16.04服务器安装tomcat

下载地址:https://tomcat.apache.org/download-90.cgi这里选择的是9.0.13版本tar.gz下载apache-tomcat-9.0.13.tar.gz用mobaXterm上传到 /usr/java文件夹下cd /usr/javatar -xvf apache-tomcat-9.0.13.tar.gz -C /usr/java/tomcat...

2018-11-14 21:14:54 537

原创 Ubuntu16.04服务器安装java

下载java jdk 地址:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html这里选择的是jdk-8u191-linux-x64.tar.gz 使用mobaXterm将下载好的文件上传到 /usr/java 文件夹下输入cd /usr/javasud...

2018-11-14 20:13:38 998

原创 5. Longest Palindromic Substring

 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example 1:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.Ex...

2018-08-23 01:57:10 205

原创 22. Generate Parentheses

    Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[ "((()))", "(()())", "(())()"...

2018-07-23 17:45:08 399

原创 写出语句的四元式序列

(1) (2)

2018-07-21 17:13:06 18142 1

原创 20. 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 must be closed by the same type of b...

2018-07-21 15:30:38 249

原创 EL语句字符串

<c:choose> <c:when test="<boolean>"> ... </c:when> <c:when test="<boolean>"> ... </c:when> ... ...

2018-07-04 12:20:36 318

原创 mybatis配置mapperLocations多个路径

需要用到通配符<property name="mapperLocations" value="classpath:mapper/*.xml"/>注意需要将mapper分类到文件夹中

2018-06-25 15:55:32 13086

原创 13. Roman to Integer

Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol ValueI 1V 5X 10L 50C 100D 5...

2018-05-30 13:03:20 175

原创 15. 3Sum

Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:The solution set must not contain ...

2018-05-27 21:09:17 182

原创 6. ZigZag Conversion

The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I I G...

2018-05-21 09:13:37 179

原创 9. Palindrome Number

Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.Example 1:Input: 121Output: trueExample 2:Input: -121Output: falseExplanation: F...

2018-05-18 15:28:34 182

原创 mysql serverTimezone

jdbc:mysql://localhost:3306/ssh?serverTimezone=UTCservertime=UTC导致时间差8个小时(MySQL jdbc 6.0 版本以上必须配置此参数)虽然上面加上时区程序不出错了,但是我们在用java代码插入到数据库时间的时候却出现了问题。比如在java代码里面插入的时间为:2017-08-21 17:29:56但是在数据库里面显示的时间却为:2...

2018-05-04 22:45:49 64592 5

原创 存储器的容量扩展

例:16K*2的芯片扩展成24KB主存,字长为61.    芯片总数=主存容量/芯片容量=24K*8/16K*2=62.    片内位长=23.    一组芯片数=字长/片内位长=6/2=34.    组数=芯片总数/每组芯片数=6/3=25.    公用地址线数:16K=2^14(14根)6.    片选信号:2组(00、01) 1根7.    总地址线数=公用地址线+片选线=14+1=15根 ...

2018-04-10 20:46:54 7128

原创 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 length is 3.Given "bbbbb", the answer is "b", with the l...

2018-04-03 13:39:05 235

原创 7. Reverse Integer

Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are dealing with an environ...

2018-04-02 19:33:57 250

原创 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 digit. Add the two numbers and return i...

2018-04-02 18:33:56 273

原创 HashSet

HashSet是外部STL中的类,用于向收集器中存储或快速检索数据。收集器中的这些数据唯一,且数值充当关键字。添加元素:hashset.add(E e):返回boolean型,如果此 set 中尚未包含指定元素,则添加指定元素;如果此 set 已包含该元素,则该调用不更改 set 并返回 false。删除元素:hashset.clear():从此 set 中移除所有元素。hashset.remov...

2018-03-31 11:24:35 224

原创 804. Unique Morse Code Words

International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a"maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on.For

2018-03-31 11:15:10 577

原创 657. Judge Route Circle

Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place.The move sequence is represented by a...

2018-03-30 19:24:05 159

原创 771. Jewels and Stones

You're given strings J representing the types of stones that are jewels, and S representing the stones you have.  Each character in Sis a type of stone you have.  You want to know how many of the ston...

2018-03-30 18:29:14 167

原创 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 solution, and you may not use the same el...

2018-03-29 23:57:28 152

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除