For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2. Input The first line ...
分类:
其他好文 时间:
2020-05-25 19:26:17
阅读次数:
61
基础篇 1、int和Integer的区别 1、Integer是int的包装类,int则是java的一种基本数据类型 2、Integer变量必须实例化后才能使用,而int变量不需要 3、Integer实际是对象的引用,当new一个Integer时,实际上是生成一个指针指向此对象;而int则是直接存储数 ...
分类:
其他好文 时间:
2020-05-25 12:33:35
阅读次数:
50
class Solution { public List<Integer> diffWaysToCompute(String input) { List<Integer> ways = new ArrayList<>(); for (int i = 0; i < input.length(); i+ ...
分类:
其他好文 时间:
2020-05-25 12:25:22
阅读次数:
59
看一下题目大意: For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2.。 自己翻译一下,不难 ...
分类:
其他好文 时间:
2020-05-25 12:06:37
阅读次数:
75
报错:No cache could be resolved for 'Builder[public abstract com.example.cache.generate.Department com.example.cache.generate.DepartmentDao.selectByPrim ...
分类:
系统相关 时间:
2020-05-25 00:27:12
阅读次数:
315
function largeCount(f, t) { f += ""; t += ""; let fl = f.length, tl = t.length, arr = [], i = 0, spacing = fl - tl, len = 0, lastMan = [], fr = f.spli ...
分类:
其他好文 时间:
2020-05-25 00:20:57
阅读次数:
74
一、什么是队列 队列是一种特殊的线性表,只能在头尾两端进行操作,特点是先进先出;就像排队买票一样,先来的先买 二、接口设计 三、代码实现 可以使用动态数组、链表等实现;这里两种实现栈与双向链表 1、栈 public class Queue { private Stack<Integer> inSta ...
分类:
编程语言 时间:
2020-05-25 00:08:12
阅读次数:
52
链接:https://leetcode-cn.com/problems/reverse-linked-list/ 代码: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; ...
分类:
其他好文 时间:
2020-05-24 23:53:03
阅读次数:
71
String型转基本类型: 1.转换成Int型 int/Integer num = Integer.parseInt(String str); 2.转换成long型 long/Long num = Long.parseLong(String str); 3.转换成short型 short/Short ...
分类:
编程语言 时间:
2020-05-24 22:35:27
阅读次数:
92
############################################################ # 列表基本方法用法说明 vocaloid = ['miku', 'rin', 'ran', 'ruka'] # # append();向列表最后添加一个新的元素 # vocal ...
分类:
编程语言 时间:
2020-05-24 20:44:06
阅读次数:
68