原题地址: 来源:力扣(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
计算属性 将函数当做变量使用 用的时候喜欢变量,因为简洁 但更多的时候更喜欢他是一个函数,因为函数调用的时候许多地方是我们可以控制的 而一个变量你改动了它,或其他操作,没人知道,后面回用到watch 此时有个东西叫计算属性 字符串反向输出 {{msg.split("").reverse().join ...
分类:
其他好文 时间:
2020-06-28 00:20:01
阅读次数:
66
#内建函数 ###sorted sorted(iterable,*,key=None,reverse=False) 返回一个 新已排序的列表 key 指定带有单个参数的函数,用于从 iterable 的每个元素中提取用于比较的键 (例如 key=str.lower)。 默认值为 None (直接比较 ...
分类:
其他好文 时间:
2020-06-27 16:11:27
阅读次数:
51