Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justif ...
分类:
其他好文 时间:
2019-04-25 22:42:01
阅读次数:
188
1.PKIX:unable to find valid certification path to requested target解决办法:我原来是JDK8,后来升级为11,但是很多工程之前就已经建立,所以环境配置还是JDK8。如果不改成11,就会发生上述问题。见下:改成: ...
分类:
微信 时间:
2019-04-24 00:13:54
阅读次数:
678
网上找了很久,说什么NDS1=8.8.8.8,DNS2=4.2.2.2 也有说改ifcfg-eth0文件的 总之我都改了,但都没用 现在我把我修改的流程发上来 1.https://blog.csdn.net/zwx19921215/article/details/41823753 解决方法如下(修改 ...
分类:
Web程序 时间:
2019-04-23 13:07:56
阅读次数:
155
问题:给定一个9*9的二维数组,数组元素为1~9的字符串,“,”代表为空,判断其数据的排列是否符合九宫格的规则 示例: 解决思路:分别以行、列、3*3的小九宫格为单位,使用字典对元素进行计数,初始化全部为0;对输入数组的每一个元素进行遍历,“,”跳过,数字字符则判断其在对应行、列、小九宫格中的计数是 ...
分类:
其他好文 时间:
2019-04-22 12:42:09
阅读次数:
148
1. 原始题目 判断一个 9x9 的数独是否有效。只需要根据以下规则,验证已经填入的数字是否有效即可。 上图是一个部分填充的有效的数独。 数独部分空格内已填入了数字,空白格用 '.' 表示。 示例 1: 示例 2: 说明: 一个有效的数独(部分已被填充)不一定是可解的。 只需要根据以上规则,验证已经 ...
分类:
其他好文 时间:
2019-04-20 13:16:16
阅读次数:
166
在日常开发中,Hibernate Validator经常用来验证bean的字段,基于注解,方便快捷高效。 1. Bean Validation 中内置的 constraint 注解 作用 @Valid被注释的元素是一个对象,需要检查此对象的所有字段值 @Null 被注释的元素必须为 null @No ...
分类:
编程语言 时间:
2019-04-19 18:12:45
阅读次数:
337
题目: You are given a string representing an attendance record for a student. The record only contains the following three characters: A student could b ...
分类:
编程语言 时间:
2019-04-18 00:45:25
阅读次数:
165
Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f ...
分类:
其他好文 时间:
2019-04-15 19:54:13
阅读次数:
112
1.Algorithm 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度 https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 2.Review https://mp.weixi ...
分类:
其他好文 时间:
2019-04-14 18:12:31
阅读次数:
257
一、 磁盘阵列 RAID 5 二、 STRRPE 三、 LAT 四、 [root@localhost ~]# fdisk /dev/sdjDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabe ...
分类:
其他好文 时间:
2019-04-13 12:21:50
阅读次数:
170