Maximum Product of Two Elements in an Array 给一个数组, 都是正数, 求其中两个数最大的乘积. 就是找到最大和第二大的数. 直接用两个变量表示就可以了. Date June 4, 2020 Category Leetcode Comments No Comments
Make Two Arrays Equal by Reversing Sub-arrays 给两个数组, 问其中一个能不能通过多次移动一个子数组, 变成另一个. 注意这里是多次移动, 所以其实都可以变成的, 前提是两个数组里面的元素一样(数量 and 数字). Date June 1, 2020 Category Leetcode Comments No Comments