lllue's recent timeline updates
lllue

lllue

V2EX member #260080, joined on 2017-10-16 20:44:18 +08:00
Per lllue's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
lllue's recent replies
for (int i = 0; i < 20; i++) {
int first = i+1;
for (int j = 0; j < 20 ; j=j+1+i%2) {
int second = j+1;
//如果同时为偶数,则跳出本次循环
System.out.println("首当其冲:"+first +"退而求次:"+ second +",结果等于"+ String.format("%.3f", first / new Double(second)));
}
}
有个想法
1 、分组合计一下,可以筛选掉一下(如果一定有重复数据,就不走这趴)
2 、分组内 distinct 后合计一下与 A 表对上了,再筛选掉一些
3 、步骤 2 中过滤后的数据,递归合计,得到一条以上的结果,输出

主要是不要一上来就排列,实际需要的应该是组合,建议贪心算法试试?
Jul 15, 2020
Replied to a topic by dovme 算法 想问一道昨天面试的算法题
```
ans=0;
dp[10]//十位数组
for(i from 0 to 9) dp[i]=1;//一位数
for(i from 1 to 15) //二位数及以上
for(j from 1 to 9)
dp[j]=dp[j]+dp[j-1];
for(i from 0 to 9) ans+=dp[i];
```
https://time.is/
但需要搭配广告拦截的工具使用...
Feb 13, 2020
Replied to a topic by derekdong 酷工作 新加坡 Garena 求简历
一本以上是啥? 0 本?
Nov 21, 2019
Replied to a topic by aulay 问与答 想办张手机卡,有没有可以推荐的
移动小号,可接电话、短信,不用另外办卡,一个月五块,非双卡优选(个人觉得)
@deepreader 朋友,不要这么燥,我只是想说,没注释以后您以后自个儿看燥不燥
@deepreader 看了一下,不光代码没注释,连 commits 也只有个题号啥的。。。。
Jun 11, 2019
Replied to a topic by dltsgl 问与答 有哪些比较硬的书和电影推荐
mad max?
Mar 4, 2019
Replied to a topic by Raphael96 职场话题 如果不做开发,你会换个什么职业?
幼师
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5671 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 06:49 · PVG 14:49 · LAX 23:49 · JFK 02:49
♥ Do have faith in what you're doing.