Redian新闻
>
Online SR (TSC center) ?
avatar
Online SR (TSC center) ?# EB23 - 劳工卡
c*p
1
没人理了,只好又发一次。。。
http://www.mitbbs.com/article_t0/Java/31140155.html
这回我按网友建议把求hashtable size改成直接count删去的个数了,还是不能通过大
oj。所以又跑来问问我到底哪里出了问题?!
http://www.mitbbs.com/article_t0/JobHunting/32465791.html
原帖在这里。
我新的代码:
import java.util.*;
public class Solution {
public int longestConsecutive(int[] num) {

if(num == null || num.length == 0){
return 0;
}
int max = 1;
int count = 1;
Hashtable hash = new Hashtable();
for(int i = 0; i < num.length; i++){
if(!hash.containsKey(num[i])){
hash.put(num[i], 1);
}
}

for(int i = 0; i < num.length; i++){
if(hash.containsKey(num[i])){
int value = num[i];
count = 1 + check(hash, value + 1, 1) + check(hash,
value - 1, -1);
hash.remove(num[i]);
max = Math.max(max, count);
}
}
return max;
}
public int check(Hashtable hash, int value, int flag){
if(hash.containsKey(value)){
if(flag == 1){
hash.remove(value);
return 1 + check(hash, value + 1, flag);
}else if(flag == -1){
hash.remove(value);
return 1 + check(hash, value - 1, flag);
}
}
return 0;
}
}
avatar
d*m
2
RD是五月初的case,今天试了试online SR,理由是out of normal processing time.
结果如下:
整整五个月多了, TSC还算是normal processing time内, TSC真是慢啊.
NSC一般是4个月为期限.
TSC如何催?不知有没有好的建议?
Your application or petition is currently within the posted processing times
. An inquiry may not be created at this time. Further information about
recent processing times can be viewed on the uscis.gov webpage.
If you have other questions regarding your application or petition, contact
USCIS Customer Service at 1-800-375-5283 or 1-800-767-1833 (TTY).
Return to Main Customer Inquiry Page View all USCIS Customer Service
Online Tools
avatar
h*3
3


【在 c********p 的大作中提到】
: 没人理了,只好又发一次。。。
: http://www.mitbbs.com/article_t0/Java/31140155.html
: 这回我按网友建议把求hashtable size改成直接count删去的个数了,还是不能通过大
: oj。所以又跑来问问我到底哪里出了问题?!
: http://www.mitbbs.com/article_t0/JobHunting/32465791.html
: 原帖在这里。
: 我新的代码:
: import java.util.*;
: public class Solution {
: public int longestConsecutive(int[] num) {

avatar
l*u
4
同求 估计是没什么好办法 安心等吧
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。