Redian新闻
>
DOL Session Reveals Vital Information Regarding PERM Reforms
avatar
DOL Session Reveals Vital Information Regarding PERM Reforms# EB23 - 劳工卡
l*d
1
尝试过许多解法,但老是 TLE. 有高人能帮忙看一下这一段代码吗?
基本上就是 double queue + backtracking,跟这里的http://blog.csdn.net/niaokedaoren/article/details/8884938
很相似。但是问题出在哪里呢?
提前谢谢了!
------------------------------------------------------------------------
import java.util.Map;
public class Solution {

public void fillPaths(String start, String cur, Map>
map,
ArrayList> result, LinkedList post
) {
post.addFirst(cur);
if (start.equals(cur)) {
result.add(new ArrayList(post));
} else {
for (String prev : map.get(cur)) {
fillPaths(start,prev,map,result,post);
}
}
post.removeFirst();
}
public ArrayList> findLadders(String start, String end
, HashSet dict) {
dict.add(start);
dict.add(end);
Map> visited = new HashMap>();
ArrayList> result = new ArrayList>>();
Queue next, current;
current = new LinkedList();
next = new LinkedList();
next.offer(start);
visited.put(start, new HashSet());
while (true) {
Queue temp = current;
current = next;
next = temp;
next.clear();
for (String n : current) dict.remove(n);
for (String s : current) {
for (int i = 0; i < s.length(); i++) {
StringBuilder sb = new StringBuilder(s);
for (char c = 'a'; c <= 'z'; c++) {
if (c == s.charAt(i)) continue;
sb.setCharAt(i, c);
String s1 = sb.toString();
if (dict.contains(s1)) {
next.add(s1);
Set set;
if (visited.containsKey(s1)) set = visited.get(
s1);
else set = new HashSet();
set.add(s);
visited.put(s1,set);
}
}
}
}

if (next.isEmpty()) return result;
if (next.contains(end)) break;
}
fillPaths(start,end,visited,result,new LinkedList());
return result;
}
------------------------------------------------------------------------
avatar
A*y
2
Sorry, I do not know the details, republish my previous post again and
hoping this can help out others to be aware of the situation. Hopefully it
will be easier for us.
Mr. XX (the attorney i use) returned from the national NAFSA Conference in
Denver with big news
from the US Department of Labor. Bill Rabung, incoming Chief of Operations,
admitted that changes to the PERM labor certification process, which will
be published in the Federal Register this month, with include both a remedy
for "harmless error" in the application, as well as vital changes to the
recruitment process.
avatar
A*y
3
Hi, wzlove26 (Simon), i reposted your comment in this new thread. thanks.
发信人: wzlove26 (Simon), 信区: EB23
标 题: Re: update on EAD renewal, filed 4/28, approved today when che
发信站: BBS 未名空间站 (Wed Jun 8 15:19:13 2016, 美东)
就是说申请表上面有些小错误也没关系咯。貌似是现在是表填错直接被拒。那就是说以
后会RFE之类的,或者REMEDIATION LETTER之类的?
招聘启事难道会变得更严?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。