Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positi ...
分类:
编程语言 时间:
2018-10-07 14:35:27
阅读次数:
222
题目:最长子串 Minimum Window Substring Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexit ...
分类:
其他好文 时间:
2018-10-06 13:12:30
阅读次数:
182
题意 "题目链接" Sol 非常妙的一道题。。 可以这样想,在BFS序中较早出现的一定是先访问的,所以把每个点连出去的边按出现的前后顺序排个序 看一下按顺序遍历出来的序列与给出的是否相同就行了 cpp include using namespace std; const int MAXN = 2e5 ...
分类:
其他好文 时间:
2018-10-05 12:25:49
阅读次数:
117
https://www.careercup.com/question?id=5103530547347456 Given a list of nodes, each with a left child and a right child (they can be null), determine i ...
分类:
其他好文 时间:
2018-10-05 12:14:07
阅读次数:
107
步骤: 1.定义注解: import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.ElementType; import java.lang.annotation. ...
分类:
Web程序 时间:
2018-10-04 10:05:41
阅读次数:
209
Given a linked list, remove the n-th node from the end of list and return its head. Example: Note: Given n will always be valid. Follow up: Could you ...
分类:
其他好文 时间:
2018-10-04 08:50:55
阅读次数:
135
服务器:阿里云服务器 master:120.79.23.226 node:39.108.131.246 系统:Centos 7.4 node节点加入集群中是报错: x509: certificate is valid for 10.96.0.1, 172.18.255.243, not 120.79 ...
分类:
其他好文 时间:
2018-10-03 00:28:55
阅读次数:
2110
[题目链接] http://codeforces.com/problemset/problem/1037/D [算法] 首先求出每个点的父节点 , 每棵子树的大小 然后判断BFS序是否合法即可 时间复杂度 : O(N) [代码] ...
分类:
其他好文 时间:
2018-10-02 20:14:10
阅读次数:
155
Given two binary strings, return their sum (also a binary string). The input strings are both non empty and contains only characters 1 or 0. Example 1 ...
分类:
其他好文 时间:
2018-10-02 17:36:11
阅读次数:
189
Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, "helloworld" can be printed as: h d e l ...
分类:
其他好文 时间:
2018-10-02 17:27:27
阅读次数:
108