找bug 看例子: test_scores = [100, 97, 76, 84, 93, 98, 86, 92, 76, 88, 95, 90, 95, 93] new_scores = test_scores.sort() new_scores = new_scores.reverse() pr ...
分类:
其他好文 时间:
2020-07-04 13:11:41
阅读次数:
80
给你一个长度为 $n$ 的长字符串,完美子串既是它的前缀也是它的后缀,求完美子串的个数且统计这些子串的在长字符串中出现的次数。 ...
分类:
其他好文 时间:
2020-07-03 21:13:13
阅读次数:
50
原题地址: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/evaluate-reverse-polish-notation 根据 逆波兰表示法,求表达式的值。 有效的运算符包括 +, -, *, / 。每个运算对象可以是整数,也可以是另一个逆波 ...
分类:
编程语言 时间:
2020-07-03 19:47:36
阅读次数:
61
1用Reverse方法反转一个字符串 1 2 3 string funnyMan = "Roscoe Arbuckle"; string backwardsGuy = new string(funnyMan.Reverse().ToArray()); //backwardsGuy="elkcubrA ...
k临近算法(解决分类问题): 已知数据集,以及该数据对应类型 给出一个数据x,在已知数据集中选择最接近x的k条数据,根据这k条数据的类型判断x的类型 具体实现: from numpy import * import operator def createDataSet(): group = arra ...
分类:
编程语言 时间:
2020-07-01 23:41:49
阅读次数:
60
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0 ...
分类:
移动开发 时间:
2020-06-30 14:52:40
阅读次数:
138
24. Swap Nodes in Pairs https://leetcode.com/problems/linked-list-cycle/ Given a linked list, swap every two adjacent nodes and return its head. You m ...
分类:
其他好文 时间:
2020-06-29 22:41:37
阅读次数:
55
1:找个容器: .container { display: flex | inline-flex; //可以有两种取值:块元素,行内元素 } 2:容器的设置: .container { flex-direction: row | row-reverse | column | column-rever ...
分类:
其他好文 时间:
2020-06-29 13:17:23
阅读次数:
63
反向代理(Reverse Proxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到的结果返回给internet上请求连接的客户端,此时代理服务器对外就表现为一个反向代理服务器。 简单来说,你的反向代理服务器会接收请求,但其自身不处理该 ...
分类:
编程语言 时间:
2020-06-28 09:48:29
阅读次数:
169
Reverse Vowels of a String (E) 题目 Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hello" Out ...
分类:
其他好文 时间:
2020-06-28 09:27:54
阅读次数:
41