(一)题目: 求两个乘积最小的数 题目: 输入一个递增排序的数组和一个数字S,在数组中查找两个数, 使得他们的和正好是S,如果有多对数字的和等于S,输出乘积最小的两个数 思路: 定义两个指针,分别从前面和后面进行遍历,间隔越远的乘积越小,所以是最先出现的两个数乘积最小 (二)代码及测试 packag ...
分类:
其他好文 时间:
2020-06-28 11:20:24
阅读次数:
60
反向代理(Reverse Proxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到的结果返回给internet上请求连接的客户端,此时代理服务器对外就表现为一个反向代理服务器。 简单来说,你的反向代理服务器会接收请求,但其自身不处理该 ...
分类:
编程语言 时间:
2020-06-28 09:48:29
阅读次数:
169
在开始之前,我先卖个关子提一个问题:我们现在有一个Employee员工类。 @Data @AllArgsConstructor public class Employee { private Integer id; private Integer age; //年龄 private String g ...
分类:
数据库 时间:
2020-06-28 09:32:26
阅读次数:
74
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
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Input: n = 12 O ...
分类:
其他好文 时间:
2020-06-28 09:27:41
阅读次数:
56
Integer Break (M) 题目 Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. R ...
分类:
其他好文 时间:
2020-06-28 09:27:07
阅读次数:
43
偶遇需求,大表中需要删除部分数据。分批删除。 declare TYPE type_table_rowid IS TABLE OF ROWID INDEX BY BINARY_INTEGER;table_rowid type_table_rowid;CURSOR cur_tmp IS select r ...
分类:
其他好文 时间:
2020-06-28 09:23:19
阅读次数:
65
Flatten Nested List Iterator (M) 题目 Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list ...
分类:
其他好文 时间:
2020-06-28 09:23:02
阅读次数:
45
计算属性 将函数当做变量使用 用的时候喜欢变量,因为简洁 但更多的时候更喜欢他是一个函数,因为函数调用的时候许多地方是我们可以控制的 而一个变量你改动了它,或其他操作,没人知道,后面回用到watch 此时有个东西叫计算属性 字符串反向输出 {{msg.split("").reverse().join ...
分类:
其他好文 时间:
2020-06-28 00:20:01
阅读次数:
66
ArrayList<String> arrayList = new ArrayList<String>(); <String>指泛型,规定这里存储什么类型数据 存储int型用Integer 存储double型用Double public class ArrayListTest { public st ...
分类:
编程语言 时间:
2020-06-27 22:46:21
阅读次数:
58