题目描述: Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: Note: 要完成的函数 ...
分类:
其他好文 时间:
2018-05-12 02:42:33
阅读次数:
169
题目链接: https://cn.vjudge.net/problem/POJ-1159 题目大意: 题意很明确,给你一个字符串,可在任意位置添加字符,最少再添加几个字符,可以使这个字符串成为回文字符串。 解题思路: 设原序列S的逆序列为S' 最少需要补充的字母数 = 原序列S的长度 — S和S'的 ...
分类:
其他好文 时间:
2018-05-08 19:32:00
阅读次数:
175
简介 Zuul是Spring Cloud提供的api网关和过滤组件,它提供如下功能: 认证 过滤 压力测试 Canary测试 动态路由 服务迁移 负载均衡 安全 静态请求处理 动态流量管理 在本教程中,我们将用zuul,把web端的请求 转发到对应的产品服务上,并且定义一个pre过滤器来验证是否经过 ...
分类:
编程语言 时间:
2018-05-06 13:30:03
阅读次数:
159
如果给定的字符串是回文,返回true,反之,返回false。 palindrome(回文)是指一个字符串忽略标点符号、大小写和空格,正着读和反着读一模一样。 注意:您需要删除字符串多余的标点符号和空格,然后把字符串转化成小写来验证此字符串是不是回文。 使用的方法: replace() 方法返回一个由 ...
分类:
编程语言 时间:
2018-05-03 12:08:01
阅读次数:
214
[抄题]: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Examp ...
分类:
其他好文 时间:
2018-05-01 12:34:12
阅读次数:
118
使用自定义视图的AlertDialog主要分为以下几个步骤: 1)利用XML文件构建自己的的视图 2)将视图添加到AlertDialog中 * 在进行第二步之前,有时需要对对话框窗口进行额外的设置 下面分步骤叙述: 1)写XML文件 后四个参数的作用就是用来显式的声明从view代表的内容区域空间向上 ...
分类:
其他好文 时间:
2018-04-28 11:50:14
阅读次数:
191
1.windows server 2008 start "srvRegistry" java -jar srvRegistry-1.0-SNAPSHOT.jar --spring.profiles.active=test start "apiGetway" java -jar apiGetway-1 ...
分类:
编程语言 时间:
2018-04-26 19:53:36
阅读次数:
174
[抄题]: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters ...
分类:
其他好文 时间:
2018-04-25 22:09:20
阅读次数:
159
题目描述: There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. If a pig drinks that p ...
分类:
其他好文 时间:
2018-04-24 15:33:58
阅读次数:
259
https://leetcode.com/problems/palindrome-number/description/ 题意 判断一个数字是否是回文 分析 32132132100 /100 删去0的部分 %100 留下0的部分 代码 class Solution { public boolean ...
分类:
其他好文 时间:
2018-04-22 13:07:43
阅读次数:
152