V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  qwertyegg  ›  全部回复第 10 页 / 共 22 页
回复总数  432
1 ... 6  7  8  9  10  11  12  13  14  15 ... 22  
2019-07-19 23:52:26 +08:00
回复了 liuxingchina 创建的主题 Java Java 中如何优雅的使用线程池
forJoinPool?

~~~java
val forkJoinPool = ForkJoinPool(PARALLELISM)
forkJoinPool.submit{
some_parallel_stream_job
}.get()
~~~
2019-07-19 13:09:13 +08:00
回复了 qwertyegg 创建的主题 Java Java 里面有没有类似于 js 的 Function.length 方法,返回参数个数
多谢 @bumz @jaylee4869
2019-07-08 00:49:10 +08:00
回复了 skinny 创建的主题 Android Google Play 不能边下载应用边安装应用这个设计好蠢啊!
不觉得有什么问题,最大的不满就是现在的公司都搞什么 ci/cd,结果两天一个新版本,升级有点烦

另外 playstore 的速度比 app store 快多了!
2019-07-05 01:43:18 +08:00
回复了 Acceml 创建的主题 LeetCode [Leetcode] 137.只出现一次的数字 II
orz,跪了!
2019-07-05 01:42:58 +08:00
回复了 Acceml 创建的主题 LeetCode [Leetcode] 137.只出现一次的数字 II
也写了个 solution(上面的 markdown 错了)
```
public class Solution137 {
public int singleNumber(int[] nums) {
int[] bits = new int[32];
for(int n : nums)
addBits(n, bits);
StringBuilder binarySB = new StringBuilder();
for(int i = 31; i >= 0; i--) {
binarySB.append(bits[i] % 3);
}
return (int)Long.parseLong(binarySB.toString(), 2);
}
private void addBits(int n, int[] bits){
int i = 0;
while(n != 0){
bits[i] += n % 2;
i++;
n = n >>> 1;
}
}

public static void main(String[] args) {
System.out.println(new Solution137().singleNumber(new int[]{-2,-2,1,1,-3,1,-3,-3,-4,-2}));

}
}
```
2019-07-05 01:42:31 +08:00
回复了 Acceml 创建的主题 LeetCode [Leetcode] 137.只出现一次的数字 II
也写了个 solution
~~~
public class Solution137 {
public int singleNumber(int[] nums) {
int[] bits = new int[32];
for(int n : nums)
addBits(n, bits);
StringBuilder binarySB = new StringBuilder();
for(int i = 31; i >= 0; i--) {
binarySB.append(bits[i] % 3);
}
return (int)Long.parseLong(binarySB.toString(), 2);
}
private void addBits(int n, int[] bits){
int i = 0;
while(n != 0){
bits[i] += n % 2;
i++;
n = n >>> 1;
}
}
}
~~~
2019-07-01 03:58:54 +08:00
回复了 947211232 创建的主题 程序员 根据逻辑判断,说说令人深刻的广告词
You know you are not the first one, but do you really care?
改 user-agent?
2019-06-17 02:34:19 +08:00
回复了 qwertyegg 创建的主题 程序员 国内能访问 zippyshare 吗?
@shanlan 不知道你的网速多少,这个看起来还凑合?
@LuoLuoKaka 北京联通太惨了吧,这个网站我知道是不限速也不限量的,我这里大多数情况网速多少就能下载多快
@liuzhiyong RIP
买一对 20 斤的哑铃,回家后只需要练一练就能很好的效果,不是说要 bodybuilding,而是能明显的感到体力,睡眠变好,注意力更集中
2019-06-07 05:11:01 +08:00
回复了 xiaojinmaolove 创建的主题 程序员 求教关于程序员一般有哪些解压方式呢
7zip, winrar, unzip, tar, winzip...
2019-06-03 23:12:40 +08:00
回复了 6uIKZF 创建的主题 问与答 问下现在国内的人会接受 PayPal 打钱吗
你是做什么?

我做过联想 outlet monitor http://loutlet.asuscomm.com:8888/

mitbbs bot blocker https://chrome.google.com/webstore/detail/mitbbs-toolbox/bjplkbcbiifinbfkhmpbodndhjodnamh

想不想私下交流下?
最烦这种不带单位和乱写单位的文章

你上过初中至少就应该知道数和量的区别吧
体验好个屁,要返回只能按左上角简直反人类

app store 比 play store 不管是设计还是速度也是差了老远

国内安🐖体验不好很大原因是这帮大厂做的 app 没带好头,除了微信外什么京东淘宝咸鱼都是一个比一个烂。play store 上的其它 app 有不少都不错
2019-05-29 19:20:49 +08:00
回复了 aker1986 创建的主题 问与答 有人吃过褪黑素吗?我吃了竟然不管用,一点都没有犯困阿.
亲身体验锻炼才是催眠的最好办法
2019-05-28 07:59:13 +08:00
回复了 pingpingping 创建的主题 健康 西方的饮食结构是否更加的合理(排除可乐署条)?
健身达人都是吃蛋白粉的
2019-05-20 10:40:18 +08:00
回复了 13192262269 创建的主题 程序员 有什么好看有死贵死贵的那种双肩包?●ω●
瑞士齿轮,很舒服也很能装
2019-05-18 00:59:33 +08:00
回复了 NeedforV2 创建的主题 Android Google play 商店的家庭组究竟怎么才能建好?一直提示失败!
惊呆了,用了才知道有这种操作
2019-05-18 00:03:03 +08:00
回复了 shikimoon 创建的主题 程序员 求推荐背包,单肩或者斜跨的
瑞士齿轮 swiss gear 以前有过,很舒服还能装

后来换过各种都没有那个满意
1 ... 6  7  8  9  10  11  12  13  14  15 ... 22  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4871 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
Developed with CodeLauncher
♥ Do have faith in what you're doing.