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
Based on Oracle, processing an English character takes 1 byte, but 3 bytes for a Chinese character. For example: select ename, length(ename), lengthb( ...
分类:
数据库 时间:
2020-06-27 20:30:11
阅读次数:
74
##Question Analysis Introduction Example // Website.java public abstract class Website { public abstract void use(); } //ConcreteWebsite.java public c ...
分类:
其他好文 时间:
2020-06-27 20:01:58
阅读次数:
71
Adapter An Example // Voltage220V.java public class Voltage220V { public int output220V(){ int src = 220; System.out.println("Voltage = " + src +"V"); ...
分类:
其他好文 时间:
2020-06-27 13:16:53
阅读次数:
52
问题: 给出数对构成的数组dominoes,若其中一对数对dominoes[i]和另一对数对dominoes[j]包含两个数字相同(忽略顺序),那么称这两对数对等价, 求给定数组dominoes,有多少对(i,j)为等价数对。 Example 1: Input: dominoes = [[1,2], ...
分类:
其他好文 时间:
2020-06-27 11:49:35
阅读次数:
59
在安卓工程根目录下命令行下编译模块 $ mmm path/module 编译APP也是使用mmm命令 构建一个APP 可以参照development/samples/ApiDemos来进行布局 Android.mk AndroidManifest.xml assets/ README.txt res ...
分类:
移动开发 时间:
2020-06-27 11:33:55
阅读次数:
70
事情经过: 今天把一份以前自己打的的App基础模板拿下来的时候,发现页面没有报红,但是错误了 报错信息: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.yijie/com.example. ...
分类:
移动开发 时间:
2020-06-27 11:33:38
阅读次数:
94
Range Sum Query - Immutable (E) 题目 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Give ...
分类:
其他好文 时间:
2020-06-27 09:44:58
阅读次数:
46
First Missing Positive (H) 题目 Given an unsorted integer array, find the smallest missing positive integer. Example 1: Input: [1,2,0] Output: 3 Example ...
分类:
其他好文 时间:
2020-06-27 09:31:04
阅读次数:
53
报错信息:java.lang.ClassCastException: com.example.yijie.MainData cannot be cast to androidx.fragment.app.Fragment 报错关键点:XXXX cannot be cast to XXXXX 报错说明 ...
分类:
移动开发 时间:
2020-06-26 21:50:03
阅读次数:
85