OFFER+++++++++++++ level
获赞
37
粉丝
4
关注
0
看过 TA
29
北京理工大学
2020
C++
IP属地:未知
暂未填写个人简介
私信
关注
2019-10-11 11:20
已编辑
北京理工大学 C++
签约了华为  试用期是6个月  想问问大家华为有没有转正不了的情况啊 
小红书校招内推:https://www.nowcoder.com/discuss/301211?type=all&order=time&pos=&page=2
投递华为等公司8个岗位 >
0 点赞 评论 收藏
分享
2019-09-09 19:59
已编辑
北京理工大学 C++
路过的一只NCRer:第一题一样 public static void main(String[] args){         Scanner in = new Scanner(System.in);         String[] A = in.nextLine().split(" ");         String[] B = in.nextLine().split(" ");         int target = in.nextInt();         int[] sons = new int[A.length];         int[] parents = new int[B.length];         for (int i=0;i<A.length;i++){             sons[i] = Integer.valueOf(A[i]);             parents[i] = Integer.valueOf(B[i]);         }         Queue<Integer> queue = new LinkedList<>();         queue.offer(target);         int sum = 0;         while (!queue.isEmpty()){             int par = queue.poll();             for (int i=0;i<parents.length;i++){                 if (parents[i] == par){                     queue.offer(sons[i]);                     sum++;                 }             }         }         if (sum == 0) {             for (int i=0;i<sons.length;i++){                 if (sons[i] == target){                     sum++;                 }             }             System.out.println(sum);         } else {             System.out.println(sum + 1);         }     }
投递奇安信等公司8个岗位 >
0 点赞 评论 收藏
分享
2019-09-08 22:55
已编辑
北京理工大学 C++
0 点赞 评论 收藏
分享
2019-09-04 17:20
已编辑
北京理工大学 C++
0 点赞 评论 收藏
分享

创作者周榜

更多
关注他的用户也关注了:
牛客网
牛客企业服务