上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页
摘要: import java.util.*; /* 盒子里有n个小球,A、B两人轮流从盒中取球,每个人都可以看到另一个人取了多少个,也可以看到盒中还剩下多少个, 并且两人都很聪明,不会做出错误的判断。 我们约定: 每个人从盒子中取出的球的数目必须是:n1,n2,n3……nr 轮到某一方取球时不能弃权! A 阅读全文
posted @ 2019-03-20 20:07 Moliay 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 原题链接https://leetcode.com/problems/evaluate-division/ 题目描述 Equations are given in the format A / B = k, where A and B are variables represented as stri 阅读全文
posted @ 2019-03-19 15:07 Moliay 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 文章目录 常用互动方法1. document.write() 直接向页面输出内容2. `alert();`弹出消息对话框3. confirm消息对话框4. prompt弹出消息对话框,用于需要与用户进行交互的情形5. window.open();打开新窗口6.window.close()关闭窗口 D 阅读全文
posted @ 2019-03-18 16:50 Moliay 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 原题链接https://leetcode.com/problems/number-of-islands/ 题目描述 Given a 2d grid map of '1’s (land) and '0’s (water), count the number of islands. An island 阅读全文
posted @ 2019-03-17 21:26 Moliay 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 原题链接https://leetcode.com/problems/surrounded-regions/ 题目描述 Given a 2D board containing ‘X’ and ‘O’ (the letter O), capture all regions surrounded by ‘ 阅读全文
posted @ 2019-03-15 21:06 Moliay 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 辗转相除法又名欧几里德算法。 他是已知最古老的的算法哦~ 文章目录 原理* 引入* 正题 代码实现 原理 * 引入 设有整数a,b,他们可以表示为: a = m1k+n1 b = m2k+n2 易得 (a+b) % k = (m1k+m2k) % k + (n1+n2) % k = (n1+n2) 阅读全文
posted @ 2019-03-14 11:44 Moliay 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 原题链接https://leetcode.com/problems/longest-consecutive-sequence/ 题目描述 Given an unsorted array of integers, find the length of the longest consecutive e 阅读全文
posted @ 2019-03-13 11:57 Moliay 阅读(7) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/b644ROfP20z37485O35M/article/details/84207709#t3 本文为方便自己日后再找啥的,如有不妥,还望指教 //本文只有两个快捷配置,笔者觉得现在需要设的,更全面的快捷键见链接文章 自动编译 File→settings 阅读全文
posted @ 2019-03-13 11:03 Moliay 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 下载地址https://git-scm.com/download 然后一路默认,除了路径修改,以及图标的有无(见下图),其余一路默认就好 查看说明view release notes看君心情咯~ https://www.cnblogs.com/xiaoliu66/p/9404963.html大神的详 阅读全文
posted @ 2019-03-12 20:56 Moliay 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 基础差的报应 集合为空null 未分配内存,只是说有这么一个变量 就像是赐你封号大将军,但是手上却半个兵符都没有。想打仗的话还是要先让“系统”这个君主给你兵符才OK 集合长度为0 系统分配内存,只是还没有元素而已 不仅赐了你大将军的封号,还给了你个兵符,虽尚无小兵,但是可以纳人才入麾下 阅读全文
posted @ 2019-03-12 17:55 Moliay 阅读(6) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页