Repeatedly remove all adjacent, repeated characters in a given string from left to right. No adjacent characters should be identified in the final str ...
分类:
其他好文 时间:
2020-02-19 13:15:33
阅读次数:
57
Problem : Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node con ...
分类:
其他好文 时间:
2020-02-17 21:21:48
阅读次数:
105
Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output: "eert" Explanation: 'e' appears twi ...
分类:
其他好文 时间:
2020-02-16 01:05:54
阅读次数:
61
[toc] 0215 algo ? 1002. 查找常用字符 https://leetcode cn.com/problems/find common characters 描述 解答 本来的思路是 两个 array: book1 book2 book1 保存 的 里面的 所有出现的字符的; 如下图 ...
分类:
其他好文 时间:
2020-02-15 13:06:52
阅读次数:
82
报错:UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-3: ordinal not in range(128) 问题是在练习爬虫的时候,抓取api接口的json数据转换时出现的,后面参考python格式化 ...
分类:
编程语言 时间:
2020-02-14 22:43:26
阅读次数:
90
删除字符的镜像问题,状态转移方程一样~ #include<bits/stdc++.h> using namespace std; const int maxn=1014; const int mod=1e9+7; string s; long long dp[maxn][maxn]; int mai ...
分类:
其他好文 时间:
2020-02-14 22:16:51
阅读次数:
104
ID: 新闻的唯一标示 title:新闻的标题 content: 新闻的内容 created_at: 新闻添加的时间types: 新闻的类型 image: 新闻的缩略图 author: 作者 view_count: 浏览量 is_valid: 删除标记 物理删除 逻辑删除 CREATE TABLE ...
分类:
数据库 时间:
2020-02-14 18:49:36
阅读次数:
178
题目内容 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this probl ...
分类:
其他好文 时间:
2020-02-14 12:47:11
阅读次数:
54
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Op ...
分类:
其他好文 时间:
2020-02-13 21:05:49
阅读次数:
52
方法一:/** * 文件上传临时路径 * 在Spring Boot下配置location,可以在main()方法所在文件中添加如下代码: */ @Bean MultipartConfigElement multipartConfigElement() { MultipartConfigFactory ...
分类:
其他好文 时间:
2020-02-12 20:34:05
阅读次数:
111