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: 思路: 代码: ...
分类:
其他好文 时间:
2018-10-18 10:58:59
阅读次数:
180
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont ...
分类:
其他好文 时间:
2018-10-18 10:54:41
阅读次数:
175
本节课程大纲: Model: -数据库操作 -验证 Form: class LoginForm(): email = fields.EmailField() -is_valid ->每一个字段进行正则(字段内置正则) + clean_字段 -> clean(__all__) -> _post_cle ...
分类:
编程语言 时间:
2018-10-15 14:54:00
阅读次数:
155
@Valid @RequestBody CustomerDto customerBean @RequestMapping(value="/customerDataSync.do",method=RequestMethod.POST) public BaseResultMessage customer ...
分类:
编程语言 时间:
2018-10-15 12:08:02
阅读次数:
419
题目 Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" Output: true Exam ...
分类:
其他好文 时间:
2018-10-14 14:14:27
阅读次数:
133
from PIL import Image from PIL import ImageDraw, ImageFont import random def get_valid_img(request): def get_random_color(): return (random.randint(0,... ...
分类:
其他好文 时间:
2018-10-14 13:38:24
阅读次数:
221
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: No ...
分类:
其他好文 时间:
2018-10-13 11:43:02
阅读次数:
113
https://leetcode.com/problems/longest-valid-parentheses/description/ 来回做了好几遍,虽然AC 了但是这个解发肯定不是最优的。思路是把问题分两步解决:1. 把字符串转换成一个匹配括号的id 序列,比如第0 个和第3 个匹配了,则把0 ...
分类:
其他好文 时间:
2018-10-12 16:07:49
阅读次数:
106
Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only ...
分类:
其他好文 时间:
2018-10-11 15:44:25
阅读次数:
181
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl ...
分类:
其他好文 时间:
2018-10-11 01:35:51
阅读次数:
147